php3/php4 problem with apache
| From: | Asghar Nafarieh | Date: | Fri, 14 Apr 2000 21:18:08 +0000 |
| Subject: | php3/php4 problem with apache | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13568@lists.php.net to get a copy of this message | ||
hi,
I cannot run apache with both php3 and php4 RC1. Apache will not
start when I use both of them but they work fine individually. Your help
is appreciated.
Here what I did.
I Compiled both php3 and php4 with the option --with-versioning.
Then in my httpd.conf I added the following
-----------
## In the loadmodule section:
LoadModule php3_module lib/apache/libphp3.so
LoadModule php4_module lib/apache/libphp4.so
## In the addmodule section:
AddModule mod_php3.c
AddModule mod_php4.c
## In the typehandling section (you can change this as needed):
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3 .phtml
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .php4s
----------