Problem solved when Apache failed to start in Win7 XAMPP integrated environment

  • 2020-05-14 05:23:15
  • OfStack

I used the win7 system and installed the suite software xampp at the same time. However, after installing xampp, my apache failed to start. Later, I found a lot of ways.


I started looking at the website for some ideas as follows


1. Right click on "online neighbors" and select "properties (R)" from the menu. Come out of the "network connection" window, right-click on "local connection" and click "properties (R)" in the menu. Go to the "local connection properties" panel, find "Internet protocol (TCP/IP)" in "this link USES the following items", and click on it. On the "Internet protocol (TCP/IP) properties "panel that pops up, click" advanced (V)..." Button." Advanced TCP/IP sets the "click "WINS" option TAB on the panel, remove the check mark before" enable LMHOSTS query (L)", and click "ok" button.

2 open the "control panel", click "Windows firewall ", click "advanced" options TAB, select "local connection", and click "Settings (T)..." next to it. Button. In the service options, find "secure Web server (HTTPS)", check it, and click ok

But there's still no apache startup or it fails, and then the search goes on

After the study, it was found that apache could not be started due to several common problems, such as port conflict, inability to connect to dynamic link library, etc.,

Resolving port conflicts

1 general conflict: port: 80, port: 443

You can find httpd.conf under apache in the xampp installation directory, open it with notepad, and change all 80 to 574. If port 443 also conflicts, change all 443 to 444.

After modifying php.ini, remove the semicolon before extension= php_pdo_pgsql.dll, extension= php_pgsql.dll, and make it support postgreSQL,

apache cannot be started, or it flashes 1 and then stops, or Busy, apache service not started [-1]

Solutions:

Modify environment variables, computer - > System properties - > Advanced system setup - > Environment variables, modify Path, and add the installation directory of php under xampp, such as c:/xampp/php, separated by a semicolon.

Restart apache, test postgreSQL, and start OK normally.


Conclusion under 1

Port 80 problem

If IIS or other programs on your machine take up port 80, apache will not start. So the first idea is to solve the port problem -- you can check the port usage with netstat-an, stop the application using port 80, and then start the service; You can also have apache run on another port, such as 8080, or the WEB server must use port 80.



Related articles: