The simplest and most brutal approach: yum install php
will automatically download dependent packages, including Apache, default directory/var/www/html;
If you need to install MySQL you need to use yum-y install httpd php mysql mysql-server php-mysql
Start command: Service httpd start
If a firewall is required to configure the port: Vi/etc/sysconfig/iptables
Reference: http://blog.csdn.net/phpboy005/article/details/4352436
Custom configuration:
Apr and apr-util Download Address http://apr.apache.org/download.cgi
Pcre Download Address http://www.pcre.org/
LIBXML2 Download Address http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html
PHP Download Address Http://php.net/get/php-5.5.30.tar.gz/from/a/mirror
Apache Download Address http://httpd.apache.org/download.cgi
Installation process is more, but more introduction, reference: http://www.2cto.com/kf/201505/401216.html
Note: Download pcre do not download pcre2, download response time can use the Thunderbolt copy URL to download, installation LIBXML2 error , should be an operating system problem.
The above describes the Linux build PHP environment, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.