Centos 6.4 uses Yum to quickly build a lamp Environment
Install Apache
[[Email protected] ~] # Yum-y install httpd
Start
[[Email protected] ~] # Chkconfig httpd on
Enable Service
[[Email protected] ~] # Service httpd start
Install some extensions
[[Email protected] ~] # Yum install-y httpd-manual mod_ssl mod_perl mod_auth_mysql
Check whether the port is enabled
[[Email protected] ~] # Netstat-lnpt
Access through a browser
Http: // ip address
Install MySQL database
Client Server Development Library
[[Email protected] ~] # Yum install MySQL mysql-server mysql-devel-y
Start
[[Email protected] ~] # Chkconfig mysqld on
Enable MySQL Service
[[Email protected] ~] # Service mysqld start
View MySQL running Port
[[Email protected] ~] # Netstat-nlpt | grep MySQL
Install PHP
To allow PHP to support MySQL, we can install the PHP-mysql package, or use the following command to search for available PHP modules.
[[Email protected] ~] # Yum install PHP-mysql-y
Install common PHP extensions
[[Email protected] ~] # Yum search PHP
[[Email protected] ~] # Yum-y install gd php-Gd-devel PHP-xml php-common PHP-mbstring PHP-ldap php-pear PHP-xmlrpc php-imap
Restart httpd
[[Email protected] ~] # Service httpd restart
Write test page
[[Email protected] ~] # Cd/var/www/html/
[[Email protected] HTML] # Vim index. php
<? PHP
Phpinfo ();
?>
Browser http: // test the local IP Address
Install and configure phpMyAdmin
Official website download the latest version: http://www.phpmyadmin.net/home_page/
This article from the "technical revolution life" blog, please be sure to keep this source http://6769120.blog.51cto.com/6759120/1562183
Centos 6.4 uses Yum to quickly build a lamp Environment