Centos
Install Apache
# yum install httpdCentos httpd package already includes mod_rewrite and mod_proxy
Install MySQL
# yum install mysql-server mysql php-mysqlAfter installation, you probably want to make it start at boot
# chkconfig --levels 235 mysqld onand start the service
# service mysqld startIn order to secure your MySQL installation, you can run
# mysql_secure_installationInstall PHP
# yum install php php-cli php-common php-curl php-imap php-mbstring php-mcrypt php-pear php-soap php-xmlTo install some additional libraries from pecl, you also need to install the following packages
# yum install php-devel gcc makeThen you can compile json library
# pecl install jsonand activate it
# echo "extension=json.so" >> /etc/php.d/json.iniRestart Apache to activate new PHP libraries and configuration
# service httpd restartInstall ImageMagick (this command will pull lots of additional dependencies)
# yum install ImageMagickPlease note that ImageMagick version shipped with Centos is quite old and it may fail some non-critical installation test run by PhPeace
Install CURL
# yum install curl