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.

Upgrading to PHP 5.2.6?

Discussion in 'General Discussion' started by Lucas, May 2, 2008.

  1. Lucas

    Lucas Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    125
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Around the world
    cPanel Access Level:
    Root Administrator
    Is it possible to update to PHP 5.2.6 without causing any harm to compatibility or cPanel even thought it is not yet listed on EasyApache2?

    Regards
     
  2. Underbelly

    Underbelly Registered

    Joined:
    Mar 12, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Don't upgrade yet. I went ahead and did it in easyapache and my server is now F*CKED. Your sites will get white pages now. Its gonna cost me $$100 a hour to get it fixed. Waiting for ken to reply to my email :D
     
  3. Lucas

    Lucas Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    125
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Around the world
    cPanel Access Level:
    Root Administrator
    I just upgraded with easyapache to 5.2.6 without any problems.
     
  4. whplus

    whplus Well-Known Member

    Joined:
    Dec 8, 2007
    Messages:
    66
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Behind your business
    Is it possible to upgrade only php without recompiling apache?
     
  5. drhost

    drhost Member

    Joined:
    Jan 19, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    try with /scripts/phpup

    regards
     
  6. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    You can compile and install the latest version of php (I presume you have php 5 installed as a module DSO without suPHP)

    First, backup the old php module:
    /usr/local/apache/modules/libphp5.so (for apache 2.x)
    or /usr/local/apache/libexec/libphp5.so (for apache 1.x)

    If the installation failed, you can always copy the file back and restart the apache.

    Then download the latest php sources in easyapache / apachebuild directory from cPanel
    /home/cpapachebuild/buildapache or /home/cpeasyapache/src/

    Untar and apply some patches (like http://choon.net/php-mail-header.php )
    Configure php using the same settings as previous version. You can get the configure command line arguments from phpinfo() function. make, make install and restart apache.

    Note: php installer add itself in httpd.conf. In cPanel, if apache was installed from easyapache wizard, the php module is loaded from a separate config file. So, you need to comment/remove the line added in /usr/local/apache/conf/httpd.conf
    #LoadModule php5_module modules/libphp5.so
     
    #6 d_t, May 3, 2008
    Last edited: May 3, 2008
Loading...

Share This Page