apache + php3 + php4 + extensions working simultaneously
| From: | Evelio Martinez | Date: | Thu, 30 Nov 2000 19:15:12 +0000 |
| Subject: | apache + php3 + php4 + extensions working simultaneously | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28102@lists.php.net to get a copy of this message | ||
Hi!
I have installed apache 1.3.12 and php 4.0.3.pl1 on RH 6.2
I am new in the php world.
How can I make a .php3 extension to be interpreted as a .php extension ?
Do I have to modify apache conf, php conf or both ?
I have made some test with the AddType directive, but they didn't work.
I have taken a look to the php install file and I have followed the
steps suggested below (***)
(configure , make , make install ), but still the same result.
If I add the commented line in httpd.conf file, apache issues a
download window instead of
executing the php3 script.
<IfModule mod_php4.c>
AddType application/x-httpd-php4 .php
# AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php .php
</IfModule>
(***)
USING PHP 3 AND PHP 4 AS CONCURRENT APACHE MODULES
Recent operating systems provide the ability to perform versioning
and
scoping. This features make it possible to let PHP 3 and PHP 4 run as
concurrent modules in one Apache server.
This feature is known to work on the following platforms:
- Linux with recent binutils (binutils 2.9.1.0.25 tested)
- Solaris 2.5 or better
- FreeBSD (3.2, 4.0 tested)
To enable it, configure PHP 3 and PHP 4 to use APXS (--with-apxs) and
the
necessary link extensions (--enable-versioning). Otherwise, all
standard
installations instructions apply. For example:
$ ./configure \
--with-apxs=/apache/bin/apxs \
--enable-versioning \
--with-mysql \
--enable-track-vars
Any help will be appreciated
Thanks in advance
Evelio