Refer to Baidu experience, there are minor changes (http://jingyan.baidu.com/article/870c6fc31218e8b03fe4be16.html)
Build lamp Environment
Linux + apache + mysql + php
(Refer to Baidu Tutorial: http://jingyan.baidu.com/article/870c6fc31218e8b03fe4be16.html)
Lab Environment: Default firewall and SELinux off
================== the following are specific experimental steps ==========================
Yum Install httpd
Systemctl Start httpd
Systemctl Enable httpd
Install MARIADB (compatible with MySQL)
Yum Install Mariadb-server mariadb-client
Set Password: mysql_secure_installation (all the way to enter)
Yum Install PHP
Yum install php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-b Cmath Php-mhash Libmcrypt
Apache Default Site Directory:/var/www/html
Cd/var/www/html
Vim index.php
<?php
Phpinfo ();
?>
Common sense:
Apache Default Site Directory is/var/www/html
Linux Package Manager usually installs open source version of software, such as JDK installation Openjdk,mysql installation mariadb (open source alternative)
MariaDB: Fully compatible with MySQL
Build the lamp environment in the CentOS 7 environment