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.

downgrading php 5.4 to 5.3

Discussion in 'General Discussion' started by xploitedheart, Oct 9, 2013.

  1. xploitedheart

    xploitedheart Registered

    Joined:
    Oct 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi
    the new installation of whm/cpanel installing the php 5.4 with package. But our site is not compatible with php 5.4 . The vendor has advised us to downgrade to php 5.3 to make it work properly.
    We have tried to downgrade php 5.3 but some of cpanel function seems stop working after it.
    Is there any possible to downgrade php 5.4 to 5.3 without any further changes in cpanel, or is there any way to download cpanel that installs the package of php 5.3 automatically.
    Kindly advise.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,452
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What stopped working for you after you downgraded via EasyApache?
     
  3. xploitedheart

    xploitedheart Registered

    Joined:
    Oct 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We did not downgrade it via EasyApache.

    it's yum downgrade php-x

    Can you please advise the hassle free steps to downgrade php 5.4 to php 5.3.
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Doing anything involving httpd or php RPM packages using yum, can and will break httpd and PHP. cPanel does not use RPM packages for httpd or PHP. What you are doing is unsupported. You need to remove all of the httpd and php packages using yum, then run EasyApache. EasyApache will build the versions of httpd and PHP you want from source.

    What you have done using yum circumvents the normal cPanel installation of httpd and PHP, and puts your server into a state we cannot and do not support. The hassle-free steps are to undo what you have done, and build httpd and PHP the cPanel-supported way, using EasyApache.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,452
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I downgraded one of my servers yesterday to test, after reading this thread, via EasyApache PHP 5.4 to PHP 5.3 without issue.
     
  6. xploitedheart

    xploitedheart Registered

    Joined:
    Oct 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    Can you please advise me step by step. Because I do not want to take any risk or chance.

    Thank you.
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,452
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Assuming you've used EasyApache previously:

    -WHM »Software »EasyApache (Apache Update)
    -Previously saved config selected
    -Start Customizing based on profile
    -Select Apache version
    -Next Step
    -Select PHP Version
    -Next Step
    -Scroll to bottom, select Save and Build


    Overly simplified of course, but gets you going I think.
     
  8. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    In addition, I would ask your developer to update his/her software to work with PHP 5.4 (rather than asking you to downgrade)....
    There are known security issues with 5.3 that are fixed in 5.4 and not updating because the developer doesn't wish to be bothered with updating his/her software is not an ideal solution.
     
Loading...

Share This Page