Solution for Apache that cannot be started in Xampp

  
xampp(apache+mysql+php+perl) is a powerful website integration package. Many people realize through their own experience that installing an Apache server is not an easy task. If you want to add MySQL, PHP and Perl, it's even harder. Application xampp can easily build a running environment for programs such as php under various systems. Today, when applying xampp to modify wordpress, I found a serious problem. Apache can't start. No matter how many times I clicked, it shows the following: busy… apache started [port 80] After multiple queries, the original is because port 80 is occupied by another program. So, this port is very busy, which causes apache to fail to start. The solution is as follows: 1. Run -cmd, then enter netstat -ano, press Enter; 2. View the pid of the line containing xx.xx.xx.xx:80 in the local address, for several numbers, put these Write down the numbers; 3. Start “Task Manager”——“process”, in the toolbar ——“select column” in front of the box to tick; 4, then view and just Which program corresponds to that pid, it is easy to find, that is, it occupies port 80; 5, stop it directly or use the optimization master and other tools to make it boot. Ok, it can be used. The second solution: replace the port my asp with the iis server is xp's default web80 port, jsp with tomcat server is the default port 8080 when tomcat installation, then php under xampp apache I will it The default 80 port is modified to 8081 (as long as the other is not occupied, it can be used). Others are not ok. So how do you modify the port of apache? Go to the xampp installation directory, click to enter apache\\conf, you can see the "httpd.conf" file, open with a text editor, change all 80 to 8081, Listen 80 -> Listen 8081 ServerName localhost: 80 ->ServerName localhost:8081 Then restart apache in the XAMPP Control Panel. How to also show the following: busy… apache started [port 80] Manage it three seven twenty-one, enter the address in ie: http://localhost:8081 test, can not open, modify the port of apache, try to stop Iis web service. Start apache again. Also shown as follows: busy… apache started [port 80] ie enter the address: http://localhost:8081 test, successfully open the xampp page, prompt: Welcome to XAMPP for Windows Version 1.7.0! Congratulations: You have been successful XAMPP is installed! Although it is still displayed in the xampp-control dialog box that Apache starts port 80, the actual occupied port is 8081. Restart the iis service, apache and iis can work on their respective 8081 and 80 ports. Restart the computer, apache can not be used, try to close the iis service, start apache -> http://localhost:8081 test success; then start the iis service, http://localhost:8081 test success is really a strange The debugging process, anyway, can be used, direct xampp\\apache_start.bat start apache, prompt 443 port occupancy, the original IIS takes up the ssl port (ie 443 port https), this is easy to handle, modify xampp\\xampp \\apache\\conf\\extra\\httpd-ssl.conf file, change all 443 to 4433 or close the ssl service, test everything again ok. Of course, as a development and debugging environment, if you do not need the ssl service to shut down the ssl service, the method still modify the xampp\\apache\\conf\\httpd.conf file, find "Include conf/extra/httpd-ssl.conf " comment out with the # character Close the ssl service. Xampp debugging process while doing side-by-side writing, thinking with chaos... Solving common problem analysis method: When starting apache with xampp, prompting busy, apache started. Prompt said started, but the state after apache server does not show running, Indicates that no startup was successful. Solution: 1. In the xampp control panel to start apache, such as the startup is not successful. 2. Enter the apache directory under the xampp installation directory, such as c:\\xampp\\apache\\logs\\ 3. You can see the file with error.log 4. Open the file and go to the end of the file to learn more about the reason why the startup failed. 5. Seek solutions to different reasons for failure. Solution 1. Initiate apache in xampp control panel is unsuccessful 2. Enter error.log view, display “make_sock: could not bind to address 0.0.0.0:80 no listening sockets available shutting down” 3. Can see 傣, this is It is a mistake to listen on port 80. It is possible that port 80 is already occupied by other applications. The majority of apache startup failures are due to port problems. 4. Open c:\\xampp\\apache\\conf\\ directory 5. There is a httpd.cnf file in the directory, open it with Notepad, and modify all the internals to other ports such as  8082″ after modification, save drop out. 6. In the xampp control panel, start apache, success, the status is running. Note: Because the default port of the browser is 80, after modifying the listening port of apache, when browsing in the browser, you need to add the port after localhost. . Such as http://localhost:8082/instead of http://localhost/before modification, of course, localhost = 127.0.0.1, with http://127.0.0.1:8082/the same.
Copyright © Windows knowledge All Rights Reserved