Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    11

    Default PHP5 not installing, just installs PHP 4.4.x

    I've just updated a server I haven't touched in months. Updated CPanel, mysql to 5.0.21, all server software etc.

    I was doing the Apache update, setting the PHP version to 5.1.4 but it just ALWAYS reverts to installing PHP 4.4.x

    Has anyone come across this issue or got a quick fix? This is on a mission critical application and I need to resolve the issue asap.

    Cheers

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Quote Originally Posted by xmlmania
    I've just updated a server I haven't touched in months. Updated CPanel, mysql to 5.0.21, all server software etc.

    I was doing the Apache update, setting the PHP version to 5.1.4 but it just ALWAYS reverts to installing PHP 4.4.x

    Has anyone come across this issue or got a quick fix? This is on a mission critical application and I need to resolve the issue asap.

    Cheers

    You might see what happens when you do:

    /usr/bin/php -v
    /usr/local/bin/php -v

    Also do you have any errors when apache updates?
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    3

    Default Upgrading Error

    I am getting the same thing. when i run those scripts i get 2 different versions.
    # /usr/bin/php -v
    PHP 5.0.4 (cgi) (built: Jun 13 2006 10:23:42)
    Copyright (c) 1997-2004 The PHP Group
    Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies

    # /usr/local/bin/php -v
    PHP 4.4.1 (cli) (built: May 8 2006 10:18:08)
    Copyright (c) 1997-2004 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    --------------------------------------------------------------------------------------------------
    Below are the errors that i receive.
    make [@php-5.0.4]...(-j 1 clean).... Done

    make [@php-5.0.4]...(-j 1).... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make: *** [libphp5.la] Error 1

    make [@php-5.0.4]...(install).... . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make: *** [libphp5.la] Error 1
    /etc/rc.d/init.d/httpd start: httpd started

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by bradlinux
    I am getting the same thing. when i run those scripts i get 2 different versions.
    # /usr/bin/php -v
    PHP 5.0.4 (cgi) (built: Jun 13 2006 10:23:42)

    # /usr/local/bin/php -v
    PHP 4.4.1 (cli) (built: May 8 2006 10:18:08)

    make [@php-5.0.4]...(install).... . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make: *** [libphp5.la] Error 1
    Fixing this issue can be a true Advil headache.

    cd /usr/lib/mysql
    rename .a .a_old *.a
    rename .la .la_old *.la

    Then Re-compile php. When done, rename all the files back again. See if that helps!
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    11

    Default

    bradlinux, I've had that problem in the past, but not for a long time.

    I've decided to do a format and install. Fedora C1 was past its best days, time to move to the latest CentOS -- hopefully I won't run into the same problem

  6. #6
    Registered User
    Join Date
    Apr 2006
    Posts
    3

    Default CentOS

    I am currently using centos... I had been reading about easyapache and was kinda sketchy about trying it... Well being the brave soul I went ahead and proceeded... Luckly it fixed my problem... It took it back to php4 but it is better then it not working... Thanks for the info on the fixes... I will try again at a later time...

  7. #7
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Quote Originally Posted by xmlmania
    bradlinux, I've had that problem in the past, but not for a long time.

    I've decided to do a format and install. Fedora C1 was past its best days, time to move to the latest CentOS -- hopefully I won't run into the same problem
    You most likely will, follow Andyreed's advice above if you have the error bradlinux had. We always have to rename the libs above and rename them back to compile php5.xx or above.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. php5 not installing
    By LuckDragon in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-03-2008, 07:07 AM
  2. Installing PHP5
    By HHastings in forum New User Questions
    Replies: 4
    Last Post: 10-12-2006, 09:54 AM
  3. Installing PHP5.0.5
    By MZmuda in forum New User Questions
    Replies: 0
    Last Post: 05-03-2006, 05:19 PM
  4. Installing PHP5.0.5
    By MZmuda in forum New User Questions
    Replies: 0
    Last Post: 05-03-2006, 05:19 PM
  5. PHP 5.0.3 Not Installing - Installs PHP 5.0.2!
    By jfxberns in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-05-2005, 12:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube