The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP 4 and PHP 5 Question

Discussion in 'General Discussion' started by deastwood, Oct 1, 2006.

  1. deastwood

    deastwood Member

    Joined:
    Sep 22, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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!!!!!!!
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    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
     
  3. deastwood

    deastwood Member

    Joined:
    Sep 22, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    its already renamed, i used a mass renamer, thanks anyway, tried some of the tutorials on this site but it didnt seem to work :(
     
Loading...

Share This Page