one. Download apache2.4 (latest version)
1. Go to https://www.apachehaus.com/cgi-bin/download.plx
Enter the following interface (the download has already started, click OK)
2. Modify the http.conf configuration file and change SEVROOT to the directory you unzipped after downloading the apache file
3. Enter the bin directory in the apache directory and there is a httpd.exe double-click or enter in the command line window
httpd -k install -n "Apache" and the installation is now complete
But there will be the following situation without Microsoft's runtime library installed, my 360 directly prompts me to install it myself
As shown below
Then install it again and enter httpd -k install -n "Apache" in the black window , as shown in the figure
(The previous installation does not seem to have the bottom line, but it does not affect)
4. Enter the bin directory and open ApacheMonitor.exe
5. Then open the browser and enter localhost or 127.0.0.1 in the address bar and the following interface will appear, indicating that the installation is successful
6. Modify the httpd.conf file to find the following line and change it to this ( htdocs is the original directory, changed to the www directory we are familiar with), create a new www directory in the directory at the same level as Apache24 , and restart apache
7. Create a new index.html file in the new directory and test it again.
two. install php parser
1. Go to the website http://windows.php.net/download#php-7.1
2. Create a new php71 directory in the web directory , extract it to this directory, find the php.ini-development file and change it to php.ini
3. Modify the apaache24/conf/httpd.conf file , find the word LoadModule and add a few lines of code at the end
as shown below :
#1: Load the php module
LoadModule php7_module F:/web/php71/php7apache2_4.dll
#2: Configure the correct path to the php.ini file
PHPIniDir F:\web\php71
#3: Add PHP type files to the Apache server
AddType application/x-httpd-php .php .html .htm
4. Modify the default home page file and find the following add index.php in httpd.conf
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
5. Restart the Apache server and create a new index.php file in the www directory to write the content
Open the browser, enter localhost/index.php in the address bar, and the following figure will appear, indicating that the configuration is successful
three. Install Mysql database
First you have to uninstall mysql
http://blog.csdn.net/y694721975/article/details/52981377
.mysql installation
https://jingyan.baidu.com/article/642c9d34aa809a644a46f717.html
1. Modify the path of the extension class
; On windows:
extension_dir = "F:\web\php71\ext"
2. Open the extension of the related extension library
3. Test