Re: Re: two php installations

From: Date: Thu, 19 Jun 2003 19:02:28 +0000
Subject: Re: Re: two php installations
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-152218@lists.php.net to get a copy of this message
ok.. thanx ive looked at it a little, and havent tested this yet as my server "broke" down recently. but i thought this might work: the php4 and php5 modules have different modules name, if i dont remember totaly wrong, so writing LoadModule php4_module modules/libphp4.so LoadModule php5_module modules/libphp5.so should work. Then by changing the mime type of php5 to "application/x-httpd-php5" ( in the main/php.h file at line 228 this is defined ) on can add to different virtualhost with different mime types: <virtualhost 123.123.123.123> DocumentRoot /var/www/html ServerName www.domain.com AddType application/x-httpd-php .php #php4 </virtualhost> <virtualhost 123.123.123.123> DocumentRoot /var/www/html ServerName www.domain.com AddType application/x-httpd-php5 .php #php5 </virtualhost> but then again i havent tested this, its just a thought i was gonna try as soon as i get my server online again... Terje On Tue, 17 Jun 2003 3:23:08 +0200, Dvdmandt wrote (in message <20030617010513.60884.qmail@pb1.pair.com>): > Hehe, ok... I can't even count the number of servers I use at different > ports... But I prefer to use the one on port 80... > // DvDmanDT > > <daniel@electroteque.org> skrev i meddelandet > > news:57287.203.15.102.65.1055809162.squirrel@www.electroteque.org... >> hmm to spare the pain i run another instance of apache on a different >> port , one runs php4.3 one runs php5 :D >>> If you bug the PHP team some, they might rename the PHP5 module so you >>> can use both... I have PHP3, 4 and 5 (can someone please give me a >>> working binary PHP1 and PHP2 for windows? PLEASE!!!) installed and >>> working on the same server... Simply use the CGI version... But server >>> gets slower and slower on every request (well, maybe not _every_ >>> request but)... >>> >>> // DvDmanDT >>> "Terje Torkelsen" <terjeto@stud.ntnu.no> skrev i meddelandet >>> news:0001HW.BB13DED3007D3952F0305600@news.php.net... >>>> is there a way to install two phps on one apache server? want a stable >>> php4 >>>> on my production site and a php5-dev to test on.. just use different >>>> virtualhosts, like php5.domain.com for the one with php5 installed. >>>> looked >>> in >>>> the apache docs, seems like LoadModule cant be used inside >>>> <VirtualHost>, >>> its >>>> a global var. >>>> >>>> thanx >>>> >>> >>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> > >

« previous php.general (#152218) next »