Results 1 to 2 of 2

Thread: Upgrading to PHP 5.4

  1. #1
    Registered Member
    Join Date
    Oct 2012
    cPanel Access Level

    Root Administrator

    Default Upgrading to PHP 5.4

    Hey Everyone,

    I thought I would post this because I just spent a few hours tracking this down: If you currently have a version of PHP 5 configured on your server with register_globals enabled in php.ini, PHP 5.4 will fail silently. I had PHP 5.3 with register_globals enabled (had an osCommerce install), and after I built PHP 5.4.9 through EasyApache, WHM did not detect any version of PHP, and so I couldn't activate it in the Confiure PHP screen. Running `php --version` from the command line produced no output.

    Eventually I found that /home/cpeasyapache/src/error_log contained "[11-Dec-2012 01:47:54 America/Los_Angeles] PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0". I edited /usr/local/lib/php.ini, removed register_globals, and everything started working perfectly.

    Just a heads up!

  2. #2
    Registered Member
    Join Date
    Jul 2004
    cPanel Access Level

    Root Administrator

    Default Re: Upgrading to PHP 5.4

    Just upgraded to php 5.4 using suhosin dev version but getting error about missing imagick
    PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/
    pecl install imagick
    fails with loads of errors.
    So found it in no-debug-non-zts-20090626 and cp to no-debug-non-zts-20100525 restarted Apache, but no error still there.
    Last edited by kernow; 12-11-2012 at 10:10 AM.
    Get professional cpanel hosting from
    Advertise your site in our business directory

Similar Threads

  1. Upgrading PHP
    By drhamad in forum General Discussion
    Replies: 4
    Last Post: 08-11-2008, 02:40 PM
  2. Upgrading to PHP 5.2.6?
    By Lucas in forum General Discussion
    Replies: 5
    Last Post: 05-03-2008, 07:02 AM
  3. Upgrading to PHP 5.2.5
    By webdr in forum General Discussion
    Replies: 1
    Last Post: 01-08-2008, 09:59 AM
  4. Upgrading WHM PHP not Apache Server PHP
    By PuReWebDev in forum EasyApache
    Replies: 3
    Last Post: 12-14-2006, 12:07 AM
  5. Upgrading to PHP 4.3.3?
    By N9ne in forum General Discussion
    Replies: 7
    Last Post: 08-26-2003, 12:47 AM