php4 and php 5 both CGI with suphp possible?

mangelot

Verified User
Joined
Jan 11, 2007
Messages
70
Location
Enschede, Netherlands
Hello,

I'm wondering if it's possible to install php4 and php5 both as CGI with suphp?
I've some customers complaining about the fact that httpd is running as user apache on php5. so i would like to change php5 to use cgi and suphp to force httpd run as user.
or change php4 to cli en php to cgi with suphp without breaking things up.

my custombuild options:

Apache: 2.2.21
Dovecot: 2.0.16
AWstats: 6.95
Exim: no
exim.conf update: no
SpamAssassin: 3.3.2
ClamAV: no
Mailman: no
MySQL: 5.5.18
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
PHP: 5.2.17 as CLI and 4.4.9 as CGI (default: PHP 5.2.17) with mail() header patch
phpMyAdmin: 3.4.8-all-languages
ProFTPD: no
Pure-FTPd: no
Atmail webmail: 1.04
RoundCube webmail: 0.6
Cron for notifications and (or) updates: yes
Auto notifications: yes
Auto notifications email address: [email protected]
Auto updates: yes
Run "clean" every time: yes
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: no
Show texts in bold: yes
SquirrelMail: 1.4.22
UebiMiau: no
Zend Optimizer: no
ionCube loader: 4.0.10

any suggestions? on howto do this?

regards,
 
When custombuild 2.0 will come out you will be able to use php 4 and 5 with suphp i suppose.

Maybe now you should be only able to use 4 as cgi with suphp and 5 as cli with mod_ruid2.

Atm im using php 5.2 as cgi suphp and php 5.3 as cli mod_ruid2 without issue, just need a little work for installation.

Regards
 
Hello,

I'm wondering if it's possible to install php4 and php5 both as CGI with suphp?


Hello,

Yes, it works with both custombuild 1.1 and 1.2

Code:
cd /usr/local/directadmin/custombuild
./build set php4_cli no
./build set php4_cgi yes
./build set php5_cli no
./build set php5_cgi yes
./build php d

my options.conf

Code:
# head options.conf
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
zend=yes
 
Back
Top