CentOS源码安装Apache+PHP+MySQL
1.安装Apache
CentOS源码安装Apache2.2.17
2.安装MySQL
CentOS源码安装MySQL5.1.41
3.安装PHP
vi /usr/local/apache2/conf/httpd.conf#DirectoryIndex index.html后增加index.phpDirectoryIndex index.html index.php#<IfModule mime_module>中增加:AddType application/x-httpd-php .php .phtmlAddType application/x-httpd-php-source .phps/usr/local/apache2/bin/apachectl restart#若遇到错误如:/usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied#解决办法:setenforce 0chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/apache2/modules/libphp5.so/usr/local/apache2/bin/apachectl restartsetenforce 1/usr/local/apache2/bin/apachectl restart?