How do I upgrade to php 5 on my dedicated server?

Discussion in 'Apache' started by netpox, Oct 1, 2007.

  1. #1
    I need help upgrading from php 4 to php 5 on my dedicated server. The script i have required php 5 and it wont let me install the script on php 4. In my WHM when i login and go to Apache Build/Upgrade I see there are many version of php 5.x to choose from. So i picked one and ran the upgrade. When i'm done and go to my site it won't open. It makes me download the pages that i try to open.

    Can someone tell me how to have your server set up so it runs php 5.
     
    netpox, Oct 1, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hire a pro, it's your best bet
     
    cyanide, Oct 1, 2007 IP
  3. chickens

    chickens Peon

    Messages:
    242
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    When I upgraded php5 to the latest version in WHM I received an error. To resolve the error you can either use a slightly older version of php5, such as php5.1.x or create a symlink of /usr/bin/php-cgi from /usr/bin/php

    From a super user account (root) run the following from SSH
    ln -s /usr/bin/php /usr/bin/php-cgi
    Code (markup):
    After you run this restart apache. This resovled my issues with the latest version of php5 thats in WHM11.

    If this does not work you can try to compile another version of PHP5, or get someone to work on it who knows what they are doing.
     
    chickens, Oct 1, 2007 IP
  4. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #4
    I vote for this also.

    I recommend www.platinumservermanagement.com

    They dont do a one time fee, but somewhere o website they say, to setup an account, and if you want cancel it after one month.

    They charge 29$ per month for first server for unlimited work on server. Then its 19$ a month for additionnal servers.
     
    Camay123, Oct 1, 2007 IP
  5. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #5

    It is very easy to upgrade to php 5 if you have cPanel in your sever.
    In WHM Root control panel , you can see Apache Update.

    There you can select the php version. I am now using php 5.2.3 , the latest one.No problem at all.

    Also, update your cPanel version to STABLE or CURRENT build.
    The current build now contains EasyApache 3.

    If you need help, then let me know, I can do it for you for free.

    PM me with the details

    Vivek, SunTex Hosting, www.suntexhosting.com
     
    qualityhostings, Oct 12, 2007 IP
  6. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #6
    When you request a php page and your browser asks you where to save the file "index.php" it usually means that PHP is segfaulting and Apache isn't setting the correct mime-type, hence your browser doesn't know what to do with the file.

    It's likely there will be a message in one of the error logs, most likely the Apache error log (PHP is crashing so it won't have a chance to write out any error message). If you do find the error message, it will give you a clue as to what you need to do to fix it.
     
    Ladadadada, Oct 14, 2007 IP