PHP 4 and PHP 5 (.htaccess)

ATN Networks

Verified User
Joined
Jul 17, 2006
Messages
26
Location
The Netherlands, Rotterdam
Hi All,

Somebody told me it's porsable to use PHP 4 and PHP 5 without rename extentions to .php4 or .php5. He told me that I have to edit the .htaccess file for this option.

Now I installed Custombuild (Working great, thanks to smtalk :D), PHP 4, PHP 5 and Apache 2. PHP 5 is default PHP version now.

Some users want to use PHP 4. Witch rules I have to add to the .htaccess file that they can use this version??

Thanks for all replies and help!
 
Code:
<FilesMatch "\.(php|inc|phtml)$">
AddHandler application/x-httpd-php .inc .php .phtml
AddHandler application/x-httpd-php-source .phps
</FilesMatch>
 
Just add this to your .htaccess:
Code:
AddHandler x-httpd-php4 .php
 
I realy become crasy

(sorry for my englih)

I have an old phpbb 2.0x who's not working fine with php5 and mysql5 as you can test here (just clic inside) http://www.cultureco.com/forum/

I did this to have both php4 and php5
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no
zend=no

./build php n

and restart apache
http://www.cultureco.com/php.php

My forum is not working.


On the second serveur, also with directadmin I have se same configuration
http://www.bts-muc.com/php.php

and there, the forum is working perfectly (archive)
http://www.bts-muc.com/forum/

Please, what can I do ?

I tried htaccess solutions, but it gave me error 500

Thank you for your help.
 
Back
Top