install php4 and php5

santovito

Verified User
Joined
Nov 23, 2008
Messages
143
Hello,

now I have installed php5 in cli mod.

How can I install php4, php6 and reinstall php5 in the cgi mode?


Thank You for your help

Santovito
 
At the moment there is no way to do that automatically, because CustomBuild is only able to install 2 different versions of PHP (not 3 as you mentioned).
 
mmmm, ok.

if I want to install php4 in CGI mode and reinstall php5 in CGI mode? that would give command?


than you for your help smtalk!
 
Code:
./build php n

But make sure you have set them in the options.conf file before running it.
 
THAN YOU smtalk!!!!

I have installed php4 and php5 in CGI mode.

I would use the PHP SELECT VERSION (http://www.outservices.net/phpvs.php) to select version of php for my domains. But if I setting version of php to php4, the phpinfo () I have another php5. How can I resolv the problem?

Thank You
 
Thank You!!! the htaccess generated by PHP SELECT VERSION was wrong.

Thank You very very very very much!!!
 
mmm...

in phpinfo() (for test I have set php4 to default php version for a domain) the configurations file path (php.ini) is set to: /usr/local/etc/php5/cgi/php.ini and all parameters are set with settings from that file and not with those of the files in / usr/local/etc/php4/cgi/php.ini :confused::confused::eek::eek:

we do not understand anything. Have I unlucky? :p
 
Open /etc/httpd/conf/extra/httpd-suphp.conf.

Find:
Code:
suPHP_ConfigPath /usr/local/etc/php5/cgi/

Replace with:
Code:
#suPHP_ConfigPath /usr/local/etc/php5/cgi/

Restart apache now.
 
Back
Top