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.

Easy Apache - Missing PHP extensions and auto updating

Discussion in 'EasyApache' started by monkey64, Jan 10, 2014.

  1. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I have updated my test server to PHP 5.5.7. Whenever I try to install a PHP PECL extension (Home » Software » Module Installers » PHP Pecl » Manage), I get a similar error to this one:

    Code:
    downloading memcached-2.1.0.tgz ...
    Starting to download memcached-2.1.0.tgz (39,095 bytes)
    ..........done: 39,095 bytes
    could not extract the package.xml file from "/root/tmp/pear/cache/memcached-2.1.0.tgz"
    Download of "pecl/memcached" succeeded, but it is not a valid package archive
    Error: cannot download "pecl/memcached"
    Download failed
    install failed
    extension memcached.so installed in /usr/local/lib/php.ini
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/53/etc/php.ini...
    No changes
    
    I am fairly sure that this is because PHP 5.5 changed the way unpack works.

    My question relates to Easy Apache.
    After the PHP update, Memcached, Timezonedb and Imagmagick PHP extensions no longer worked and I had to re-install them from source. I couldn't use PECL (see above). It took several hours before I had everything working.

    I currently let Easy Apache auto update my production server as it sees fit and I have never encountered a problem. Firstly I don't understand why I lost my extensions and secondly, would this have gone wrong if I let Easy Apache automatically update PHP to 5.5.7? Excuse the newbie question.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you open a support ticket using the link in my signature so we can take a closer look and open an internal case if necessary? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  3. Phincy

    Phincy Member

    Joined:
    Feb 11, 2012
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Please try the following steps via a root terminal.

    # pecl download memcached

    # tar -zxvf memcached-2.1.0.tgz

    # cd mecached*

    # phpize

    # ./configure

    # make && make install

    # echo "extension=memcached.so" >> /usr/local/lib/php.ini

    # service httpd restart

    Make sure that you have the memcached service installed in the server and is running. The memcached package is available in EPEL repository.

    The same steps can be used for any pecl based extensions
     
  4. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thanks for the post and yes I can manually install from source using the above.
    But why does the PECL installer no longer work since I upgraded to PHP 5.5.7? My installed extensions used to show up under "Home » Software » Module Installers" as blue buttons under the "Installed PHP Pecl(s)" section.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Were you able to open a support ticket to allow us to take a closer look?

    Thank you.
     
  6. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    109
    Likes Received:
    2
    Trophy Points:
    16
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:
    Fast Question Michael:

    Whats the difference between the Apache module and installing via PECL? which is best?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can often find PECL modules that are not available via EasyApache. However, keep in mind that you should only install stable PECL modules, as EasyApache builds do not retain beta or alpha PECL modules. I suggest using EasyApache as the primary method of enabling PHP modules.

    Thank you.
     
Loading...

Share This Page