Home  >  Article  >  Operation and Maintenance  >  Detailed steps to upgrade apache 2.2 to 2.4

Detailed steps to upgrade apache 2.2 to 2.4

王林
王林forward
2021-01-21 10:20:215825browse

Detailed steps to upgrade apache 2.2 to 2.4

The detailed steps are as follows:

(Learning video sharing: Introduction to Programming)

1. Download Apache2.4# from the official website

##2. Unzip the downloaded Apache to the environment directory to be matched

3. Enter the bin directory under apache from the command line and enter httpd -k install

4. After installation, the error "ServerRoot must be a valid directory"

Solution: Modify httpd.conf Define SRVROOT "D:/myenv/Apache24" to an absolute path

5. Uninstall the previous service. After reinstalling httpd -k uninstall httpd -k install

6, the error "make_sock could not bind to address 443"

Solution: Modify Apache24\conf\extra\httpd-ssl.conf Replace 443 with 444

Modify Apache24\conf\extra\httpd-ahssl.conf and replace 443 with 444


7. Apache fails to start, use the command httpd.exe -w - n "Apache2.4" -k start, when you see the error reason

, you must pay attention to the versions of Apache and php. At the beginning, the Apache I downloaded was V14, and php was V11. The integration of Apache and php kept failing. Changed to

httpd-2.4.27-x64-vc14.zip and php-7.1.8-Win32-VC14-x64.zip

Related recommendations:

apache tutorial

The above is the detailed content of Detailed steps to upgrade apache 2.2 to 2.4. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete