PHP extensions installation in Centos 6

Below is my note on installing the common extensions (assuming php-pear has been yum installed):


$ 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 "" > /etc/php.d/imagick.ini

# restart httpd 
$ sudo service httpd restart


# install Epel repo for yum
$ sudo rpm -ivh
$ yum install php-mcrypt


# 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


$ sudo yum -y install php-pecl-apc


$ sudo yum install php-soap
comments powered by Disqus