deastwood

Member
Sep 22, 2006
16
0
151
Hi, sorry that i am now one of the million members asking this question but I had a look through the search and couldn't seem to find one that answered this exact question, help would be appeciated!

oN MY SERVER i have one program that uses php 4 which runs as .php and I have php 5 working as .php5.

However its time to change, I need to get PHP 4 to now run as .php4 (with phpsuexec) and PHP 5 to run as .php (with phpsuexec) now I know I can use easy apache to change .php to be running as PHP 5.

But what is the best way to get php 4 installed as .php4?

Thanks!!!!!!!
 

rhenderson

Well-Known Member
Apr 21, 2005
784
2
168
Oklahoma
cPanel Access Level
Root Administrator
deastwood said:
Hi, sorry that i am now one of the million members asking this question but I had a look through the search and couldn't seem to find one that answered this exact question, help would be appeciated!

oN MY SERVER i have one program that uses php 4 which runs as .php and I have php 5 working as .php5.

However its time to change, I need to get PHP 4 to now run as .php4 (with phpsuexec) and PHP 5 to run as .php (with phpsuexec) now I know I can use easy apache to change .php to be running as PHP 5.

But what is the best way to get php 4 installed as .php4?

Thanks!!!!!!!
You could use a .htaccess file instead of all that renaming. The contents would be:

Code:
AddHandler application/x-httpd-php4 .php .php4 .php3 .phtml .htm .html
Put in the php4 script folder
 

deastwood

Member
Sep 22, 2006
16
0
151
its already renamed, i used a mass renamer, thanks anyway, tried some of the tutorials on this site but it didnt seem to work :(