xampp (apache+
mysql+php+perl) is a powerful building-station integration package. Many people have realized from their own experience that installing Apache servers is not an easy thing to do. It's even harder if you want to add MySQL, PHP, and Perl. Application XAMPP can easily build the environment of PHP and other programs under various systems.
XAMPP access and installation are very simple, you only need to go to the following URL:
http://www.apachefriends.org/zh_cn/xampp.html Download XAMPP can, I installed the Windows version of the installer installation package, as long as the installation according to its instructions all the way to install it, very convenient and fast.
However, the installation directory is best to choose a disk other than the C-drive, according to some users experience, in Windonws7 or Vista, if you choose the C-drive installation, due to permissions, there will be a failure to create some files. If you have the highest authority, you can install it directly on the C drive.
Typically in Windows XP or Windows 7, the Apache server is not bootable when XAMPP is installed.
Today application Xampp modified WordPress when found a serious problem, Apache can not start, no matter how many times click Start, are shown as follows:
Busy ...
Apache started [Port 80]
Through the multi-query data, originally because 80 port is occupied by other programs, so this port is very busy, resulting in Apache can not start. Workaround one is as follows:
1, run-cmd, and then enter Netstat-ano, carriage return;
2, see the local address contains xx.xx.xx.xx:80 of the line of the PID, for a few numbers, put these numbers down;
3, start "Task Manager"--"details", find the corresponding "PID", "End Task";
4, and then look at the PID corresponding to what the program, it is easy to find, that is, it occupies 80 ports;
5, stop it directly or use tools such as Master Optimizer to turn it off without booting.
Well, it's ready to use.
Second workaround: Replace the port(try not to use port 0-1023, this is the system reserved port)
My ASP IIS server is the default web80 port for XP, and the Tomcat server used by the JSP is the default port 8080 for the Tomcat installation, then the Apache in PHP under XAMPP I will change its default 80 port to 8081 ( Anything else, as long as it's not occupied, it's okay.
So how do I change the Apache port? To XAMPP installation directory, click into the apache\conf, you can see the "httpd.conf" file, open with a text opener, all 80 modified to 8081,listen 80-〉listen 8081
ServerName Localhost:80-〉servername localhost:8081
Then restart Apache in the Xampp Control panel.
How to also display the following:
Busy ...
Apache started [Port 80]
Tube It 3,721, enter the address in IE: http://localhost:8081 test, can't open, all modify Apache port, try to stop IIS Web service. Start again
Apache. It also shows the following:
Busy ...
Apache started [Port 80]
IE input address: http://localhost:8081 Test, successfully opened XAMPP Web page, prompt:
Welcome to XAMPP for Windows Version 1.7.0!
Congratulations to you:
You have successfully installed the xampp!
Although the Xampp-control dialog box shows that Apache has started port 80, the actual occupancy port is 8081. And then restart the IIS service, both Apache and IIS can work on their own 8081 and 80 ports.
Restart the computer, Apache is not available, try to shut down the IIS service, start the apache-〉http://localhost:8081 test successfully, and then start the IIS service,
http://localhost:8081 Test Success
Really is a very strange debugging process, anyway, it can be used,
Direct Xampp\apache_start.bat boot Apache, prompted 443 port occupancy, the original IIS occupied the SSL port (that is, 443 port https), this is done, modify the Xampp\xampp\apache\conf\extra\ httpd-ssl.conf file, change all 443 to 4433 or turn off SSL service and test everything again OK.
Of course, as a development debugging environment if you do not need the SSL service can turn off the SSL service, or modify the xampp\apache\conf\httpd.conf file, find "includeconf/extra/httpd-ssl.conf" with the #字符 The SSL service is turned off when commented out.
XAMPP debugging process while doing side writing, thinking with chaos ...
Solve common problems analysis methods:
Prompt busy,apachestarted when starting Apache with Xampp. Started, but the status after the Apache server does not show running, indicating that no startup was successful.
Workaround:
1. Start Apache in XAMPP Control Panel if boot is unsuccessful.
2. Enter the Apache directory under the XAMPP installation directory, such as C:\xampp\apache\logs\
3. You can see that there is a error.log file.
4. Open the file, to the end of the file, you can learn more about the cause of the startup failure.
5. For different reasons for failure, seek solutions.
Resolve case
1. Booting Apache in XAMPP Control Panel is unsuccessful
2. Enter Error.log view, display "make_sock:could not bind to address0.0.0.0:80
No listening sockets available shutting down "
3. You can look at the Dai, which is a mistake when listening on port 80, and maybe 80 ports are already occupied by other applications. The majority of Apache boot unsuccessful is due to port issues.
4. Open the c:\xampp\apache\conf\ directory
5. The directory has a httpd.cnf file, open with Notepad, the inside of the "80″ all modified to other ports such as" 8082″ Modified, save exit.
6. Re-xampp the control Panel, launch Apache, success, status is running.
Note: Since the browser's default port is 80, after modifying the Apache listening port, you need to add the port after localhost when browsing in the browser. such as http://localhost:8082/to replace the http://localhost/before, of course localhost= 127.0.0.1, with http://127.0.0.1:8082/same.
The above describes the XAMPP in the Apache can not start the solution, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.