RE: [PHP4BETA] Thanks guys

From: Date: Thu, 23 Sep 1999 08:12:15 +0000
Subject: RE: [PHP4BETA] Thanks guys
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4817@lists.php.net to get a copy of this message
> -----Original Message----- > From: Mike Robinson [mailto:mgrphp3@cgocable.net] > Sent: Thursday, September 23, 1999 01:51 AM > To: php4beta@lists.php.net > Subject: Re: [PHP4BETA] Thanks guys > > > At 04:17 PM 22/09/99 +0100, you wrote: > > >Now I am running php3 and php4 on the same web server, with > goodness knows > >how many modules built in > > I would cut my arm off to get some idiot proof instructions on compiling > both versions as modules. I'd cut it off and send it right to you, wet. > Well, someone's arm, anyways. If you use rpms, go to http://www.csluk.demon.co.uk/rpm/ and get the apache srpm and build from that. Also get the php3/4 srpms (updated from cvs 5 minutes ago) and make and install those. [Edit the spec file to suit your options] Build and install apache and apache-dev build and install both php then edit your /usr/lib/php.ini and /usr/lib/php3.ini and add this lines in your httpd.conf: LoadModule php3_module /usr/lib/apache/libphp3.so LoadModule php4_module /usr/lib/apache/libphp4.so and AddModule mod_php3.c AddModule mod_php4.c <IfModule mod_php3.c> AddType application/x-httpd-php3 .phtml AddType application/x-httpd-php3 .php3 #AddType application/x-httpd-php3 .asp #AddType application/x-httpd-php3-source .phps </IfModule> <IfModule mod_php4.c> # for php4 AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php AddType application/x-httpd-php .asp AddType application/x-httpd-php-source .phps </IfModule> and whatever else you like. BTW the rpms also install /usr/bin/php and /usr/bin/php3 as cgi's which you can get with: AddType php-script3 .phpx3 AddType php-script .phpx Action php-script3 /cgi-bin/php3 Action php-script /cgi-bin/php [warning, the php .spec file relies on my copy of the apache rpm still existing in the build dir, and on being built afterwards - so it can get the xpat-lite from it::: Just build and install apache first, then the php and you will be fine] Sam

« previous php.version4 (#4817) next »