Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    12

    Default PHP Upgrading

    Hi,

    My WHM/Cpanel is currently running PHP 4.4.7, I want to upgrade it to PHP 5.2.1 or similar but am concerned I could mess everything up.

    Is it easy to do via the WHM Panel? I'm concerned I may break the server completely.

    Thanks

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Go through this carefully :-
    Login to server as root.
    Execute the script :-
    /scripts/easyapache >>> after few minutes it will display 8 options.
    Select 7th
    Select 'PHP Module ---->' and hit enter.
    Select PHP version using space bar.
    Select 'Exit', again select 'Exit' and then say 'Yes' to save.
    Let the script execute completely.

    After completion, restart apache:
    service httpd stop
    service httpd start

    OR

    You can also install it from WHM if you wish to.
    Goto Software >> Apache update >> click on "Load Previous Config"
    Select the PHP version you wish to.
    Click Save.


    Execute php -v to check the version.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by VISL View Post
    Hi,

    My WHM/Cpanel is currently running PHP 4.4.7, I want to upgrade it to PHP 5.2.1 or similar but am concerned I could mess everything up.

    Is it easy to do via the WHM Panel? I'm concerned I may break the server completely.

    Thanks
    I usually use WHM and have recompiled/upgraded PHP a few times myself. It's easy, just read carefully as there are some things that can adversely interact with PHP (such as mod_perl).

    In EA3 we are separating the items that are experimental and more clearly indicating the modules that may cause issues so you wont need to worry as much. EA3 will be available in cPanel 11 Stage 2.

  4. #4
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Quote Originally Posted by Shekhar View Post
    Execute php -v to check the version.
    and php -m to be sure your modules were compiled.

  5. #5
    Member
    Join Date
    Jul 2007
    Posts
    12

    Default

    Just tried an upgrade from WHM.

    Httpd failed Reverting back to 4.47 to see if I can at least get web pages working again.

  6. #6
    Member
    Join Date
    May 2006
    Location
    Morocco
    Posts
    158
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    the same isseu
    ....


    any other suggestion ?

  7. #7
    Member
    Join Date
    Jul 2007
    Posts
    12

    Default

    Glad to know I'm not the only one!

    I was thinking .... 'I can't even click a few buttons!!'

  8. #8
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Quote Originally Posted by VISL View Post
    Just tried an upgrade from WHM.

    Httpd failed Reverting back to 4.47 to see if I can at least get web pages working again.
    If the compile completed without errors, then apache needs some small adjustments to start. This could be something as simple as extensions listed in php.ini needing updates or even httpd.conf commenting out php5 instead of 4, etc.


    I would suggest hiring someone to upgrade for you if you do not know what to look for or ask your data center if you are on a managed box. Feel free to PM me if you need assistance.

  9. #9
    Member
    Join Date
    Jul 2007
    Posts
    5

    Default

    Worth checking when upgrading from PHP4 to PHP5 - look at which version of Ioncube is installed and upgrade/downgrade Ioncube to the most suitable version for your PHP install

Similar Threads & Tags
Similar threads

  1. Upgrading Php
    By ezytrak in forum New User Questions
    Replies: 2
    Last Post: 09-16-2008, 07:34 AM
  2. Upgrading PHP from 4 to 5
    By superfly_by in forum New User Questions
    Replies: 7
    Last Post: 03-13-2008, 06:45 PM
  3. Upgrading to PHP 5.2.5
    By webdr in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-08-2008, 08:59 AM
  4. Upgrading WHM PHP not Apache Server PHP
    By PuReWebDev in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-13-2006, 11:07 PM
  5. upgrading php and gd
    By bgldsmth in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-23-2004, 02:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube