Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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!!!!!!!
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    1
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. deastwood

    deastwood Member

    Joined:
    Sep 22, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    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 :(
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice