Apache cannot start the solution
This is the problem that I have met frequently in these two days. Apache server is really a problem teenager! Any point change can cause it to be unusable.
Reason one: 80 port occupancy such as IIS, the other is Thunderbolt. My Apache server is not able to enable the Thunderbolt!
Reason two: Software conflicts loaded with certain software will make Apache unable to boot such as dr.com you open the network connection->TCPIP Properties--Advanced->wins tag Remove NetBIOS Lmhosts, disable TCP/IP NetBIOS. And then start again should be ready.
Reason three: httpd.conf configuration error if Apache configuration file httpd.conf wrong, start it in Windows, will prompt the requested operation has failed, this is more depressing thing, because the wrong to see a half day. In fact, you can start Apache with command-line mode, and with parameters, Apache will prompt you which sentence is wrong, and then can be targeted to solve.
Check the error method: Go to cmd and enter the Apache installation directory (specifically your own installation directory) \bin> httpd.exe-w-N "Apache2"-K Start
(Apache2 in quotation marks is changed to your Apache service name, my is 2.2.4 version, the service name is Apache2, can be found in the computer service)
Tip 133 When there is a problem (hint: Syntax error on the line 133 of ...), open the Apache installation directory \conf\httpd.conf find the 133th row of serveradmin ( There is no tool to determine the number of rows by ctrl+f with "ServerAdmin" keyword search, generally there will be two, the following is the line in the next empty a lattice, add a name, for example, add ABC, can be solved.
If this is a port occupancy (hint: (OS 10048) It is usually allowed only once per socket address (Protocol/network address/port). ), first exit Apache, search for Listen 80 in httpd.conf, change 80 to 8080 or another port number, rerun Apache, this should be able to start.
The above is generally unable to start the use of methods, come out for a similar problem of friends reference. I hope it helps.
If the site root settings are not correct will not start, Apache is really a lot. There are two places. Find Apache/htdocs in httpd.conf. Modify, such as K:/iddcweb/wwwroot
The general file address of "\" in Apache to change to "/".
If you are using the Apache2.24 version, select the Php5apache2_2.dll load in PHP.
Add some of the settings below to modify httpd.conf. For your reference.
1. Change the website root directory, there are two places. Find DocumentRoot and Directory. Modify, such as D:/wwwroot, mainly the general file address of the "\" in Apache to change to "/".
2. Home settings, DirectoryIndex, add related home items can, such as index.php ihdex.htm
3. Find LoadModule SSL, add two lines below, the first line "LoadModule php5_module d:/server/php/php5apache2_2.dll" means to load PHP in module mode, the second line " Phpinidir "d:/php" is the location of the PHP configuration file php.ini, and of course, the "d:/php" is changed to the directory of the PHP decompression you selected earlier.
4. Find AddType application/x-gzip. gz tgz, adding "AddType application/x-httpd-php. php", "AddType application/x-httpd-php . html "Two lines, you can also add more, the essence is to be added can execute PHP file type, such as you plus a line" AddType application/x-httpd-php. htm ", The. htm file can also execute a PHP program, and you can even add a previous line of "AddType application/x-httpd-php. txt" to allow normal text file formats to run PHP programs.
5. Search ServerName Modify the port after the name of the website as the port that was changed, if not changed, omit.
Apache cannot start resolving the requested operation has failed