Environment: Virtual Machine
System: rhel7.6
1. Served installation environment apache, php, mysql
Installation steps: Open a terminal, and then enter the command yum install httpd php mysql mysql-server php-mysql
If nothing else, and your system, like me, you will be prompted to install mysql-server failure, the cause can not be found Packages
Then you have to download a package mysql-server command: wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
Then install it using the rpm command: rpm -ivh mysql-community-release-el7-5.noarch.rpm
Then use yum install wget (This step is important to the majority of online solutions Without this step, but without this step is not installed on the mysql-server)
Finally, you can use yum to install the software, command yum install mysql-server
So you have to build an environment to complete
2. Open Services
First, open the apache service command: systemctl start httpd.service
Then open the mysql service command: systemctl start mysqld.service
First you have to set up mysql open your user name and password command: sqlmapadmin u name password secret
3. Give your www directory permissions, the command is: chmound -R apache www
(Provided that you entered his upper-level directory)
4. Your source into html directory (location: / var / www / html)
Website to set up is completed