I started to find some methods on the website as follows:
1. Right-click "network neighbor" and choose "property (R)" from the menu )". In the "network connection" window, right-click "local connection" and choose "properties (R)" from the menu )". Go out to the "local connection properties" panel, find "Internet protocol (TCP/IP)" in "This link uses the following items", and click it. On the "Internet protocol (TCP/IP) properties" panel, click "Advanced (V. "Advanced TCP/IP settings" click "WINS" option label on the panel, remove the check box before "enable LMHOSTS query (L)", and click "OK.
2. Open "control panel", click "Windows Firewall", click the "advanced" option label, select "local connection", and click "set (T)" next to it )... "button. Find "secure Web server (HTTPS)" in the service options, select it, and click "OK".
But it still fails to start apache, and then searches
After research, it is found that apache cannot be started mainly due to several common problems, such as port conflicts, failure to connect to dynamic link libraries, etc ,,
Resolve port conflicts
General conflict: port: 80, port: 443
You can find httpd. conf under apache in the xampp installation directory, open it in notepad, and change all 80 to 574. If port 443 conflicts, change all ports 443 to 444.
Modify php. ini and remove the semicolon before extension = php_pdo_pgsql.dll and extension = php_pgsql.dll so that it supports postgreSQL,
Apache cannot be started, or it is paused and stopped, or Busy, apache service not started [-1]
Solution:
Modify environment variables, computer-> System Properties-> Advanced System Settings-> environment variables, modify Path, and add the php installation directory under xampp at the beginning, such as c: /xampp/php, separated by semicolons.
Restart apache, test postgreSQL, and start OK normally.
To sum up
Port 80 problems
If IIS or other programs on your machine Occupy port 80, apache cannot be started. So the first idea is to solve the port problem-you can use netstat-an to view port usage, stop the program that uses port 80, and then start the service. You can also run apache on another port, for example, on port 8080, port 80 must be used for WEB servers.