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.

Upgrade to PHP 5.2.1

Discussion in 'General Discussion' started by Fernis, Mar 2, 2007.

  1. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    I am currently running the following

    =============
    Operating system Linux
    Service Status Click to View
    Kernel version 2.6.9-42.0.10.ELsmp
    Machine Type i686
    Apache version 1.3.37 (Unix)
    PERL version 5.8.7
    Path to PERL /usr/bin/perl
    Path to sendmail /usr/sbin/sendmail
    Installed Perl Modules Click to View
    PHP version 5.2.0
    MySQL version 5.0.27-standard
    cPanel Build 10.9.0-RELEASE 139
    Theme cPanel X v2.6.0
    Documentation Click to View
    cPanel Pro 1.0 (RC36)

    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies
    ================

    When I attempt the upgrade to PHP 5.2.1 using apache update in WHM. It doesn't upgrade. It looks to doa basic version check and then restarts Apache. Is this a known bug or is there a way that this can be corrected? Any help would be appreciated.
     
  2. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    I would suggest to stay with PHP version 5.2.0 for the time being as there are some issues with 5.2.1
     
  3. Mysteerie

    Mysteerie Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    16
    What issues? Only issue I've seen were with memory_limit (with a board script), which can be simply fixed by raising it globablly or notifying customers to raise the limit via .htaccess or php.ini files.
     
  4. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    I just upgraded one of the server to 5.2.1 without any issue. if it is not upgrading the PHP then switch to cPanel STABLE build and run easyapache. You need to keep an eye on the easyapache because if any of the module that needs to be compiled with PHP fails then most of the time easyapache skips the compilation of PHP.
     
  5. montego

    montego Registered

    Joined:
    Feb 15, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Given that www.php.net considers 5.2.1 to be "These releases are major stability and security enhancements", I am concerned that cpanel is not supporting this as yet.

    I am with Mysteerie, shouldn't this be a "must have"?
     
  6. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    Has anyone else had this issue?
     
  7. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    I got it to upgrade to php 5.2.1 by checking the "php module" and then rebuilding. However, after the rebuild with php 5.2.1 Apache fails to restart. In order to get Apache to restart I have to go back to 5.2.0
     
  8. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    243
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    As always it is important to state which extensions are used with PHP and what errors you got.
     
  9. linuxman

    linuxman Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    There may be more to this, we just upgraded without incident.
     
  10. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    Linuxman, what version of cPanel are you using?
     
  11. linuxman

    linuxman Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Were are using 11.1-E365 on this particular server, have several sites already running on the server.
     
  12. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    EDGE? On a production server? That in itself explains the broken EasyApache, especially with the recent changes (the last few builds). Your best options at this point are likely:

    1. Open a support ticket; or

    2. Build Apache/PHP yourself, from source.
     
  13. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    Linuxman isn't the person with the problem. His upgrade went successfully. I am running the current build and the upgrade to php 5.2.1 doesnt go through. It doesnt error or give me any messages. It just acts like I didnt want to upgrade php.
     
  14. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    My apologies to both you and linuxman, I obviously mis-read the thread.

    You are using the CURRENT branch, correct? Does the contents of the build script (I think it's /home/cpeasyapache/buildapache/buildscript.sh) contain the commands necessary to compile/build PHP 5.2.1 (or any PHP)?

    You stated earlier that when it did build 5.2.1, Apache simply would not start. Were there any errors on the console or the error log?
     
  15. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    Here is the only thing in the buildscript that had 5.2.1 in it. I'm not sure this is what you were loking for.

    NEWPHP=0

    if [ "0" = "1" ]; then
    NEWPHP=1
    PHPVER=5.0.4
    PDFVER=6.0.0p1
    fi

    if [ "0" = "1" ]; then
    NEWPHP=1
    PHPVER=5.0.5
    PDFVER=6.0.0p1
    fi

    if [ "0" = "1" ]; then
    NEWPHP=1
    PHPVER=5.1.2
    PDFVER=6.0.0p1
    fi

    if [ "0" = "1" ]; then
    NEWPHP=1
    PHPVER=5.1.4
    PDFVER=6.0.0p1
    fi

    if [ "0" = "1" ]; then
    NEWPHP=1
    PHPVER=5.1.6
    PDFVER=6.0.0p1
    fi

    if [ "1" = "1" ]; then
    NEWPHP=1
    PHPVER=5.2.0
    PDFVER=6.0.0p1
    fi

    if [ "0" = "1" ]; then
    NEWPHP=1
    PHPVER=5.2.1
    PDFVER=6.0.0p1
    fi

    I dont remember if there were any erros. I would have to reproduce the event.
     
  16. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    I downgraded to the stable build of apache and tried to update to php 5.2.1. Aftyer updating no pages load and apache fails to restart. In order to get it to work again I have to rebuild apache and go back to php 5.2.0

    Here is the output from the Apache Update

    =============================================

    Building Apache Config.....Done
    Downloading and compiling apache+modules....


    Fetching http://......connected......receivi....93%...95%...96%...97%...99%...100%......Done
    Verifying archive integrity... All good.
    Uncompressing buildapache...........................................................................................................................................................................................................................................
    Checking Update System........Rpm Sanity Check PASSED!
    Verifying compiler and libs....Verifying installation....
    Fetching Obsoletes list for channel: rhel-i386-es-4...

    Fetching rpm headers...

    Name Version Rel
    ----------------------------------------------------------


    The following packages you requested are already updated:
    wget

    /scripts/ensurerpm [@buildapache]...(--quiet --safe libxpm4 ImageMagick libxpm4-devel libxpm4-dev ncurses ncurses-devel ncurses-dev libncurses5 libncurses5-devel libncurses5-dev gettext gdbm gdbm-devel libgdbm2-devel libgdbm2-dev db4 db4-devel db4-dev db1 db1-devel db1-dev db1-tools patch kernel-headers linux-headers glibc-kernheaders pam-devel pam-dev krb5-devel krb5-dev openssl openssl-devel ssl-dev libssl-dev openssl-dev libopenssl0 libopenssl0-devel libopenssl0-dev flex lex bison glibc-devel glibc-dev gcc gcc-c++ libgcc cpp libstdc++ libstdc++-devel libstdc++-dev jpeg libjpeg libjpeg-devel libjpeg-dev libjpeg62 libjpeg62-devel libjpeg62-dev png libpng libpng-devel libpng-dev libpng10 libpng10-devel libpng3 libpng3-devel libpng3-dev libtiff libtiff-devel libtiff-dev libtiff3 libtiff3-devel libtiff3-dev XFree86-libs XFree86-devel XFree86-dev libopenssl0.9.7-devel libopenssl0.9.7-static-devel libltdl xorg-x11-devel pspell pspell-devel zlib zlib-devel zlib1-devel libz-devel tdl aspell aspell-devel xorg-x11-devel libc-client-devel libtool automake libungif-devel libtool-libltdl-devel libtool-ltdl-devel libltdl-devel libltdl3-devel).... . Done
    Done
    Done
    ********************************
    This is buildapache version 1.5.402 (for cpanel <= 10.9.3) (ap=1.3.37)
    ********************************
    buildapache configured from Web Host Manager
    Apache configured from Web Host Manager!
    /etc/rc.d/init.d/httpd start: httpd started
    Setting /home permissions to 0711......Done
    Setting permissions for......Done
    Fetching http://httpupdate.cpanel.net/buildapache/1/mod_gzip-1.3.26.1a.tar.gz (0)....@198.66.92.150......connected......receiving...2%...5%...8%...11%...14%...17%...20%...23%...26%...29%...32%...35%...38%...41%...44%...47%...50%...53%...56%...59%...62%...65%...68%...71%...74%...77%...80%...83%...86%...89%...92%...95%...98%...100%......Done
    Untarring mod_gzip....Done

    make [@mod_gzip-1.3.26.1a]...(-j 2).... Done

    make [@mod_gzip-1.3.26.1a]...(install).... Done
    Fetching http://httpupdate.cpanel.net/buildapache/1/libxml2-2.6.22.tar.gz (0)....@198.66.92.150......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...12%...13%...14%...15%...16%...17%...18%...19%...20%...21%...22%...23%...24%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...37%...38%...39%...40%...41%...42%...43%...44%...45%...46%...47%...48%...49%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...61%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%...74%...75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...86%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...99%...100%......Done

    ./configure [@libxml2-2.6.22]...(--prefix=/usr).... . . . . . . . . . . Done

    make [@libxml2-2.6.22]...(-j 2).... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make [@libxml2-2.6.22]...(install).... . . Done
    Fetching http://httpupdate.cpanel.net/buildapache/1/curl-7.15.3.tar.gz (0)....@198.66.92.150......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...12%...13%...14%...15%...16%...17%...18%...19%...20%...21%...22%...23%...24%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...37%...38%...39%...40%...41%...42%...43%...44%...45%...46%...47%...48%...49%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...61%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%...74%...75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...86%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...99%...100%......Done
    Untarring curl......Done

    ./configure [@curl-7.15.3]...(--prefix=/usr).... . . . . . . . . . . . . . . . Done

    make [@curl-7.15.3]...(-j 2).... . . . . . . . . . . . . . . . Done

    make [@curl-7.15.3]...(install).... Done
    Fetching http://httpupdate.cpanel.net/buildapache/1/php-5.2.1.tar.gz (0)....@198.66.92.150......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...12%...13%...14%...15%...16%...17%...18%...19%...20%...21%...22%...23%...24%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...37%...38%...39%...40%...41%...42%...43%...44%...45%...46%...47%...48%...49%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...61%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%...74%...75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...86%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...99%...100%......Done
    Untarring php....Done
    Running configure:
    LDFLAGS="-L/usr/X11R6/lib64" /home/cpapachebuild/buildapache/callbacklog --prog configure --dir /home/cpapachebuild/buildapache/build-log -- --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib

    ./configure [@php-5.2.1]...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).... . . . . . . . . . . . . . . . . . . . . . . . . Done

    make [@php-5.2.1]...(-j 2 clean).... Done

    make [@php-5.2.1]...(-j 2).... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make [@php-5.2.1]...(install).... . . . . . . . Done
    /etc/rc.d/init.d/httpd start: httpd started

    ./configure [@php-5.2.1]...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).... . . . . . . . . . . Done

    make [@php-5.2.1]...(-j 2 clean).... Done

    make [@php-5.2.1]...(-j 2).... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make [@php-5.2.1]...(install).... . . . . . . Done
    initfpsuexec: using apache 1.x support
    PHP version file has been updated to 5.2.1
    Executing /scripts/postbuildapache (if exists)...Done
    /etc/rc.d/init.d/httpd start: httpd started
    initfpsuexec: using apache 1.x support
    Attempting to restart httpd
    Waiting for httpd to restart....
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    finished.


    httpd status



    httpd has failed, please contact the sysadmin.
    Build Complete
     
  17. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    I would have to agree with cpanelkenneth; it is crucial to dig the log files for any errors that might help in troubleshooting the problem, in your case. I suggest you re-compile Php, manually, at the prompt.
     
  18. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    I just upgraded with no problems, I would try again or try a different version and then try again.
     
  19. qwerty

    qwerty Well-Known Member

    Joined:
    Jan 21, 2003
    Messages:
    213
    Likes Received:
    0
    Trophy Points:
    16
    We have one server with PHP 5 and recently updated it to 5.2.1 using easyapache - no problems whatsoever..

    However, almost immediately a customer reported problems with her Sunshop shopping cart - random image upload/resizing issues etc. Unfortunately http error logs contain nothing in relation to her problems.

    Has anyone else noticed similar issues or knows what (new) setting in 5.2.1 might be causing it?
     
  20. afonic

    afonic Registered

    Joined:
    Feb 22, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I have read about quite a few problems with memory_limit setting, scripts that used to work suddenly fail and ask for more memory. I had such a problem with a client of mine using Joomla, he got that error after I updated 5.2.0 -> 5.2.1. I had to change memory_limit to 36M (it was 8M) for his site to work.
     
Loading...

Share This Page