Anyone have experience using php4 and php5 on the same apache server under unix?
I want to try it out, but have only server computer. I would like to have both systems on the same apache server.
How can I do that?
Anyone done that and run into problems?
php5 and php4 on the same server
Moderator: General Moderators
-
Cruzado_Mainfrm
- Forum Contributor
- Posts: 346
- Joined: Sun Jun 15, 2003 11:22 pm
- Location: Miami, FL
i think you can,
in the httpd.conf, where you have your directives that specify where is the PHP interpreter located, use something like this:
and i think that's it 
edit it to fit your needs of course
in the httpd.conf, where you have your directives that specify where is the PHP interpreter located, use something like this:
Code: Select all
# Specify both php4 and php5 locations
ScriptAlias /php4/ "C:/usr/local/php4/"
ScriptAlias /php5/ "C:/usr/local/php5/"
# Only a little modification
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
# Note the end of the line below
AddType application/x-httpd-php .php .php4 .php5
AddType application/x-httpd-php-source .phps
# Script Handlers
AddHandler php3-script .php3
AddHandler php5-script .php5
AddHandler php-script .php .php4
# Leave this two with php4 if you want
Action php3-script /php4/php.exe
Action php-script /php4/php.exe
# Modification for php5
Action php5-script /php5/php.exeedit it to fit your needs of course
-
Cruzado_Mainfrm
- Forum Contributor
- Posts: 346
- Joined: Sun Jun 15, 2003 11:22 pm
- Location: Miami, FL