PDA

View Full Version : install php4 and php5



santovito
11-24-2008, 04:26 PM
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

smtalk
11-25-2008, 02:11 AM
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).

santovito
11-25-2008, 04:09 AM
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!

smtalk
11-25-2008, 04:19 AM
./build php n


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

santovito
11-25-2008, 10:13 AM
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

smtalk
11-25-2008, 10:15 AM
http://directadmin.com/forum/showthread.php?t=19221 read #12, it doesn't do that in this way, that's why it's not working for you.

santovito
11-26-2008, 08:08 AM
Thank You!!! the htaccess generated by PHP SELECT VERSION was wrong.

Thank You very very very very much!!!

santovito
11-26-2008, 11:43 AM
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

smtalk
11-26-2008, 11:59 AM
Open /etc/httpd/conf/extra/httpd-suphp.conf.

Find:


suPHP_ConfigPath /usr/local/etc/php5/cgi/


Replace with:


#suPHP_ConfigPath /usr/local/etc/php5/cgi/


Restart apache now.