Apache hints The requested operation has failed failed to start solution Daquan _linux

Source: Internet
Author: User

Reason one: 80 port occupancy such as IIS, the other is Thunderbolt. My Apache server is the Thunder damage can not be enabled!

Reason two: Software conflict installed some software will make Apache unable to start as dr.com you turn on the network connection->TCPIP Properties-> Advanced->wins tag to remove NetBIOS Lmhosts to disable TCP/IP NetBIOS. And then the start should be on it.

Reason three: httpd.conf configuration error if the Apache configuration file httpd.conf wrong, start it in Windows, will prompt the requested operation has failed, this is more depressing thing, because check the wrong to see a half-day. In fact, you can use the command line mode to start Apache, and with the parameters, Apache will prompt you which sentence is wrong, and then can be targeted to solve.

Check the Error method: Enter cmd and then enter the Apache installation directory (specifically for your own installation directory) \bin> httpd.exe-w-N "Apache2"-K Start

(Apache2 in quotes to your Apache service name, mine is 2.2.4 version, service name is Apache2, can be found in the computer services)

Tip 133 When there is a problem (prompt: Syntax error on line ...), open the Apache installation directory \conf\httpd.conf find the 133th row of serveradmin ( No tool to determine the number of rows by ctrl+f with the "ServerAdmin" keyword lookup, there will generally be two, the following is the line after a space, casually add a name, for example, plus ABC, you can solve.

If the port is occupied (hint: (OS 10048) It is common for each socket address (Protocol/network address/port) to be used only once. , first quit Apache, search 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 method used, take out for a similar problem friends for reference. Hope to help.

If the site is not the root directory settings will not start, Apache is really a lot. There are two places. Find Apache/htdocs in httpd.conf. Modify it, such as K:/iddcweb/wwwroot

General file address "\" in Apache to be changed to "/".

If you are using the Apache2.24 version, you want to select the Php5apache2_2.dll load in PHP.

Here are some of the settings that you can use to modify httpd.conf. For your reference comparison.

1. Change the site root directory, there are two places. Find DocumentRoot and Directory. Changes can be made, such as D:/wwwroot, the main general file address "\" in Apache to be changed to "/".

2. Home settings, DirectoryIndex, add related home items, 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" refers to loading PHP in module mode, the second line " Phpinidir "d:/php" is the location that indicates the PHP configuration file php.ini, and of course, the "d:/php" is changed to the PHP uncompressed directory you chose earlier.

4. Find AddType application/x-gzip gz. tgz and add "AddType application/x-httpd-php. php", "AddType application/x-httpd-php" below. . html "Two lines, you can also add more, the essence is to add the file type that can execute PHP, for example, you add a line of" AddType application/x-httpd-php. htm ", The. htm file can also execute the PHP program, and you can even add the previous line "AddType application/x-httpd-php. txt" so that the normal text file format can also run the PHP program.

5. Search servername   Modify the name of the site after the port for the front changed port, if not changed, omitted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.