Results 1 to 2 of 2

Thread: Upgrading to PHP 5.4

  1. #1
    Registered Member
    Join Date
    Oct 2012
    Posts
    9
    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
    Posts
    725
    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/imagick.so
    Code:
    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 imagick.so error still there.
    Last edited by kernow; 12-11-2012 at 09:10 AM.
    Get professional cpanel hosting from 1uhost.com
    Advertise your site in our business directory frontiereconomy.com

Similar Threads

  1. upgrading PHP from 5.2 to 5.3
    By mccreare in forum General Discussion
    Replies: 6
    Last Post: 07-12-2011, 03:46 AM
  2. Upgrading WHM PHP not Apache Server PHP
    By PuReWebDev in forum EasyApache
    Replies: 3
    Last Post: 12-13-2006, 11:07 PM
  3. Upgrading PHP to 5
    By EchoHost in forum General Discussion
    Replies: 7
    Last Post: 09-23-2006, 03:51 PM
  4. upgrading php and gd
    By bgldsmth in forum General Discussion
    Replies: 1
    Last Post: 08-23-2004, 02:14 PM
  5. Upgrading to PHP 4.3.3?
    By N9ne in forum General Discussion
    Replies: 7
    Last Post: 08-25-2003, 11:47 PM
bargain