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.

cPanel Question on PHP4

Discussion in 'General Discussion' started by vlee, Mar 26, 2012.

  1. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
    I know this a topic that been talked about in the past but now since PHP4 is at the end of it's life and soon or will be no longer supported by cPanel.

    PHP 4 End of Life announcement - cPanel Inc.

    My question is that should be a way for those servers that are running both PHP4 and PHP5 to safely remove PHP4 from the servers.

    If some one out there has removed PHP4 safely please post how to.

    Otherwise I think this should be a topic that should be talked about since PHP4 is at end it's life and will be discontinued on cPanel Easy Apache.
     
  2. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
    UPDATED

    I found a safe and easy way to remove PHP4 from the server

    To remove PHP4 totally from the server, I do the following things you mentioned below.

    1. Change the PHP 4 Handler cgi to PHP 4 Handler none via WHM >> Main >> Service Configuration >> Configure PHP and SuExec.

    2. Uncheck PHP4 in EasyApache and recompile PHP5 instead.

    3. Run the command "find /usr -name php4* | xargs rm -rvf" to delete the following files and folders regarding PHP4 in the server.

    /usr/local/php4
    /usr/local/apache/conf/php4.version
    /usr/bin/php4-cli
    /usr/bin/php4-cgi
    /usr/bin/php4
    /usr/php4

    I hope this helps those people out wanting this information.
     
    #2 vlee, Mar 26, 2012
    Last edited: Mar 27, 2012
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    We also have a case opened about disabling PHP 4 on running EasyApache with it de-selected (when previously it had been enabled) to where it no longer allows PHP 4 files to run. That internal case is 58376
     
Loading...

Share This Page