Easy Apache - Missing PHP extensions and auto updating
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:
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.
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.
-
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. 0 -
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 0 -
[quote="Phincy, post: 1547131"> 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
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.0 -
[quote="monkey64, post: 1547341">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.
Were you able to open a support ticket to allow us to take a closer look? Thank you.0 -
Fast Question Michael: Whats the difference between the Apache module and installing via PECL? which is best? 0 -
[quote="luigidelgado, post: 1746842">Whats the difference between the Apache module and installing via PECL? which is best?
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.0
Please sign in to leave a comment.
Comments
6 comments