Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default strange PHP behaviour after Apache upgrade in WHM

    Hi all

    I have upgraded Apache in WHM > Software > Apache Upgrade

    From here I chose PHP 5.0.5, and running a phpinfo page, http://www.softdux.com/phpinfo.php confirmed this.

    But, now I'm trying to install eaccelerator, and while I'm in SSH, php tells me it's v.4

    And it seems both are running as "cli". Can someone please assist me with this?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    That goes back to the versions where php doesnt actually update. This has to do with your mysql version. Downgrade to mysql 4.0 or 4.1 then your php5.05 will install fine then revert back to your desired mysql. There are many other work-arounds but this is the simplest.

  3. #3
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I'm using the MySQL from cPanel, didn't upgrade it, don't even know where / how to?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  4. #4
    Member picoleto's Avatar
    Join Date
    Aug 2006
    Posts
    22

    Default

    If you plan on upgrading mysql/php you wanna update mysql first by doing the following

    log into WHM => Tweak Settings => MySQL = Choose version etc. => Save

    Normally I like to wait around 10-15 minutes after hitting save then run

    Code:
    /scripts/perlinstaller --force Bundle::DBD::mysql
    Not really optional, WHM is supposed to run this command when you hit save however there are some slight cases when it doesn't.

    After that just recompile Apache with PHP5

    if you're already at mysql5 and need to downgrade you might have to edit your /var/cpanel/cpanel.config

    search for mysql-version=

    http://forums.cpanel.net/showthread....owngrade+mysql
    Last edited by picoleto; 02-27-2007 at 04:32 AM.

  5. #5
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    MySQL 4.1 is ticket there. I don't want to upgrade downgrade MySQL, only PHP
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  6. #6
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    running php -v via SSH, I get this:

    root@gandalf [~]# php -v
    PHP 4.4.4 (cli) (built: Oct 18 2006 04:00:41)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with the ionCube PHP Loader v3.1.28, Copyright (c) 2002-2007, by ionCube Ltd., and
    with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.0.1, Copyright (c) 1998-2006, by Zend Technologies
    root@gandalf [~]# which php
    /usr/local/bin/php

    And then, looking at the environment variables from the phpinfo() file:

    Environment
    Variable Value
    PATH /usr/local/bin:/usr/bin:/bin
    I have run the command you suggested, I updated to the latest RELEASE built, and then re-ran the Apache update, chooing PHP 5.0.5, which the phpinfo() page confirms, but not php -v in SSH, so I cannot install other stuff like eaccalerator, PHP JSON, PHP PECL Mailparse, etc.
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  7. #7
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    I had this problem before on a development box, but can't remember exactly how I solved it. Do locate and find all binaries relating to php. Find the one that is truly php5 (run /usr/local/bin/php -v, /usr/bin/php -v, etc). Symlink all the others to that one that is truly php5. See how that works for you. It basically comes down to where shell is finding the php binary when you simply type "php -v". If your shell finds the old php4 binary in your path directory, it will run that first.

    Back then I believe I actually cleaned off EVERYTHING relating to php then reinstalled. The recompiled apache and things came back in check.
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

Similar Threads & Tags
Similar threads

  1. can I upgrade php,apache,mysql using WHM?
    By phparion in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-16-2008, 06:21 AM
  2. strange phpmyadmin behaviour
    By Rooney in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-06-2008, 08:35 AM
  3. phpMyAdmin Strange behaviour
    By stevewalsh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-22-2005, 09:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube