First step: Download the latest Apache.
Download URL: HTTP://WWW.APACHEHAUS.COM/CGI-BIN/DOWNLOAD.PLX
The second step: unzip the download file to a working directory. D:\Apache
Step Three: Modify the/conf/httpd.conf file.
- Modify ServerRoot for Apache working directory: D:/apache
- To modify the listen port number, make sure to use a port number that is not occupied. Since my machine 80 port is already occupied, I used 81 ports.
- Modify the DocumentRoot to change the documentroot to D:\Apache\htdocs
- Modify the directory to comment out the deny from all in the Directory tab.
Fourth Step: install Apache as a Windows Service and open cmd as an administrator. Input: D:\Apache\bin\httpd.exe "-install-n Apache Press ENTER.
The message is as follows: If there is an error, follow the error message to modify it.
The Apache service appears when you view service Manager after the installation is successful.
Fifth step: after successful installation, to start the service
Sixth Step: Verify the success, open the browser. Enter http://localhost:81, if displayed: It works! done!!!!
Configure Apache server under Windows