[PHP] Setting up PHP5 alongside PHP4 on apache
Hi everyone I'd like to set up PHP5 to parse php files with a .php5 extension on Apache 1.3.28. Anybody know how to do this? Regards Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting up PHP5 alongside PHP4 on apache
On Tue, Nov 04, 2003 at 10:30:39AM +0200, Luke van Blerk wrote: : : I'd like to set up PHP5 to parse php files with a .php5 extension on Apache : 1.3.28. Anybody know how to do this? I don't know about loading PHP4 and PHP5 modules in the same Apache server. It may be easier to build a separate Apache server just for PHP5 testing and development, and run it off another port. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting up PHP5 alongside PHP4 on apache
I currently have Apache 2 (port 8080) setup with PHP 5 which can run simultaneously with the Apache 1.3.28 (port 80) and PHP4, but I'd like to find out if they can both run on the same Apache. I don't think its possible to specify diferrent locations of your php.ini file though for each PHP (on Windows that is). My machine is for development only but we'll be setting up PHP 5 on a live box soon for testing. - Luke Eugene Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, Nov 04, 2003 at 10:30:39AM +0200, Luke van Blerk wrote: : : I'd like to set up PHP5 to parse php files with a .php5 extension on Apache : 1.3.28. Anybody know how to do this? I don't know about loading PHP4 and PHP5 modules in the same Apache server. It may be easier to build a separate Apache server just for PHP5 testing and development, and run it off another port. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting up PHP5 alongside PHP4 on apache
Comex uses this configuration to run php4 and php5 side by side. One version must be run as cgi so there are no symbol conflicts. LoadModule php5_module C:/php5/sapi/php4apache2.dll ScriptAlias /php/ C:/php/ AddType application/x-httpd-php .php5 AddType application/x-httpd-php4 .php Action application/x-httpd-php4 /php/php.exe Luke van Blerk wrote: Hi everyone I'd like to set up PHP5 to parse php files with a .php5 extension on Apache 1.3.28. Anybody know how to do this? Regards Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting up PHP5 alongside PHP4 on apache
On Tue, Nov 04, 2003 at 11:41:45AM +0200, Luke van Blerk wrote: : : I currently have Apache 2 (port 8080) setup with PHP 5 which can run : simultaneously with the Apache 1.3.28 (port 80) and PHP4, but I'd like to : find out if they can both run on the same Apache. I don't think its possible : to specify diferrent locations of your php.ini file though for each PHP (on : Windows that is). I don't know if this is possible as there are probably lots of symbol conflicts between PHP4 and PHP5. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting up PHP5 alongside PHP4 on apache
[EMAIL PROTECTED] Eugene Lee: On Tue, Nov 04, 2003 at 11:41:45AM +0200, Luke van Blerk wrote: I currently have Apache 2 (port 8080) setup with PHP 5 which can run simultaneously with the Apache 1.3.28 (port 80) and PHP4, but I'd like to find out if they can both run on the same Apache. I don't think its possible to specify diferrent locations of your php.ini file though for each PHP (on Windows that is). I don't know if this is possible as there are probably lots of symbol conflicts between PHP4 and PHP5. It is. I have it set up on Windows. See this post: [EMAIL PROTECTED] Adam Plocher: Hello, I'm using Apache 2.0 on a Linux box and I'm trying to figure out how to run PHP5 (beta2) and PHP4 co-existantly. I have compiled both of them with --enable-versioning, but I can't figure out what I need to put in my httpd.conf to make it differentiate the two versions. Ideally I would like php5 to be enabled for certain virtualhosts, and php4 for others. But using .php5 file extensions would be acceptable too. I have compiled PHP4 and PHP5 with the following configure options: './configure' '--with-apxs2=/home/httpd/bin/apxs' '--with-mysql=/home/mysql' '--enable-track-vars' '--enable-versioning' Thanks in advance -Adam I have this set up... LoadModule php5_module C:/php5/sapi/php4apache2.dll ScriptAlias php C:php AddType application/x-httpd-php .php5 AddType application/x-httpd-php4 .php Action application/x-httpd-php4 /php/php.exe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting up PHP5 alongside PHP4 on apache
[EMAIL PROTECTED] Marek Kilimajer: Comex uses this configuration Oops. I didn't see this post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Setting up PHP5 alongside PHP4 on apache
[EMAIL PROTECTED] Comex: ScriptAlias php C:php It copied wrong: ScriptAlias php C:/php/ Sorry for the triple post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php