pecl
What’s the difference between “extension” and “zend_extension” in php.ini?
Zend_extentions are extensions that are built into the Zend engine itself. The engine parses, interprets and executes PHP script. Changing the engine changes the way that PHP works. The included diagram will describe the main difference between an extension and a zend_extension. Both types of extensions share lots of functionality. The difference between both types … Read more
sudo pecl install apc returns error
PCRE is a dependency for installing APC. You can install it pretty quick with yum install pcre-devel or apt-get install libpcre3-dev once it’s installed, re-run sudo pecl install apc
How to install php extension using pecl for specific php version, when several php versions installed in system?
Here’s what worked best for me when trying to script this (in case anyone else comes across this like I did): $ pecl -d php_suffix=5.6 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.0 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.1 install <package> $ pecl uninstall -r <package> The … Read more
Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)
There’s a much easier way — no need to disable SIP or download your own copy: sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
Howto: Install Imagick (for php) on Ubuntu 11.10
The package has a different name in Ubuntu. sudo apt-get install php5-imagick The error with building via PECL means you must install libmagickwand-dev, libmagickcore3, libmagickwand3 probably (there are alternatives: graphicsmagick-imagemagick-compat, see Synaptic).