One-click installation of php, apache, mysql in win7. Deploy web applications. (Used in network offensive and defensive courses)

1. First download phpstduy

Download link: https://www.xp.cn/download.html

 

 

2. Wait for the download to complete and unzip, enter the folder and click the exe file to install.

 

 

 

 3. Wait for the installation to complete and open phpstduy.

 4. We can see the environmental requirements of the web application, here apache2.4 can also run, mysql can also be ignored. We need to note that the php version is set to 5.4.45. Install php 5.4.45

 

 

 

 

 

 6. Download the web source file code and decompress it.

 

 

 

7. Move the files in the grade folder to the following directory. Open phpstduy and click on the website. (Note to delete the original index file in phpstduy)

 

 

 

 8. Modify the homepage of the website.

 

 9. Import data into the database. Click Create Database, import the data, and then modify the corresponding code.

 

 

 

 The imported data is the data.sql file in the grade file we downloaded.

Next we modify the database connection part of the file. Change "root" to the grade we wrote above. That's it.

 

 

 

 

 10. Start the server and enter localhost in the browser.

 

Guess you like

Origin www.cnblogs.com/mumu597/p/12693752.html