1 #yum Remove httpd
2 #yum-y install httpd Php-common
Php-devel PHP-GD Php-mcrypt php-mbstring
Php-pear Php-bcmath php-dba Php-mhash PHP-MXL
3 #whereis httpd
4 #vi/etc/httpd/conf/httpd.conf
Find DocumentRoot modified to Documentroot/usr/local/htdocs
5#rpm-qa|grep-i MySQL
View MySQL
6 #yum remove-y mysql delete mysql
7#yum-y Install Php-mysql httpd-mannal mod_ssl mod_perl
Mod_auth_mysql Php-mcrypt PHP-GD Php-xml
Php-mbstring Php-idap php_pear Php_xmlrpc
MYQL-CONNECTOR-COBC Libdbi-dbd-mysql
8#yum Update Php-y <---Upgrade expansion pack
9 #yum update-y <--Upgrade Peripheral Resources
This command takes a long time.
Find Apache Location command
#whereis httpd
PHP configuration file
/etc/httpd/conf/httpd.conf
PHP Configuration file location
/etc/php.ini
View the CentOS version
Leb_release-a
Linux Learning notes Apache PHP mysql +linux