PHP extensions installation in Centos 6
Last Updated on Saturday, 17 August 2013 14:51 Written by tag Friday, 26 July 2013 18:10
Below is my note on installing the common extensions (assuming php-pear has been yum installed):
ImageMagick
$ yum install gcc $ yum -y install php-devel # install imagemagick binary $ yum install ImageMagick $ yum install ImageMagick-devel # install php extension $ pecl install imagick # update configuration file $ echo "extension=imagick.so" > /etc/php.d/imagick.ini # restart httpd $ sudo service httpd restart
MCrypt
# install Epel repo for yum $ sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm $ yum install php-mcrypt
Memcached
# install memcached library $ sudo yum install memcached # add to system startup $ sudo chkconfig memcached on $ sudo /etc/init.d/memcached start # install php extension $ sudo yum install php-pecl-memcached $ sudo service httpd restart
APC
$ sudo yum -y install php-pecl-apc
PHP-SOAP
$ sudo yum install php-soap