Lamp is a platform environment for Linux + Apache + MySQL + PHP.
It includes:
Linux operating system.
Apache website running software.
MySQL database.
PHP website editing software.
----------------------------------------------------------------------
Generally, lamp installation includes RPM installation and source code compilation and installation.
For RPM installation, you can use the front-end Yum to ignore dependencies and simplify the installation.
For source code compilation and installation, you must first install the compiling environment and manually specify the installation path and options.
The following is a brief introduction to Yum installation:
-----------------------------------------------------------------------
Prerequisite: Disable the firewall iptables-F
[LAMP conventional Yum installation]
# Yum-y install httpd MySQL mysql-server PHP-MySQL
Httpd Configuration]
# Service httpd start
# Cd/var/www/html
# Vim index. php
<? PHP
Phpinfo ();
?>
Test: http: // 192.168.200.1
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/45/CF/wKioL1Prfkqz8i8eAAOilTcKgpo486.jpg "Title =" image 000.png" alt = "wkiol1prfkqz8i8eaaoiltckgpo486.jpg"/>
[MySQL configuration]
Use the default settings without modification. The root user is created by default when the service is started, and an empty password is set.
# Service mysqld start
Blog Software Installation]
# Cd/var/www/html/WordPress
# Cp wp-config-sample.php wp-config.php
# Vi wp-config.php
Define ('db _ name', 'mysql ');
Define ('db _ user', 'root ');
Define ('db _ password ',");
Test: http: // 192.168.200.1/WordPress
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/45/CF/wKioL1PrfmLgb4GkAACprEtcgBo687.jpg "Title =" image 001.png" alt = "wkiol1prfmlgb4gkaacpretcgbo687.jpg"/>
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/45/CF/wKioL1PrfnmQaCFPAAKlZb-fVKU327.jpg "Title =" image 002.png" alt = "wKioL1PrfnmQaCFPAAKlZb-fVKU327.jpg"/>
This article is from the "riaair small building" blog, please be sure to keep this source http://riaair.blog.51cto.com/9177337/1539682