Apache startup failure how to solve apache startup failure

Source: Internet
Author: User
Tags ini zend fully qualified domain name

When Apache is started, an error message is displayed, the requested operation has failed!


The solution is to modify it in the Apache installation directory.

D: Program FilesApache Software FoundationApache2.2confhttpd. conf file

# Change this to Listen on specific IP addresses as shown below

# Prevent Apache from glomming onto all bound IP addresses.

#

# Listen 12.34.56.78: 80

Listen 80

 
Change

 
# Change this to Listen on specific IP addresses as shown below

# Prevent Apache from glomming onto all bound IP addresses.

#

# Listen 12.34.56.78: 88

Listen 88


1. Apache startup failed. Check the related configuration. & Radic; MySQL5.1 has been started.

Today, we use APMServ5.2.6 to set up a website on a local computer. Apache cannot be started either by changing the port or by disabling SSL.

After studying for a long time, I finally solved the problem:

Open APMServ and click "Apache settings (A)-View running log (E)". The following text is displayed:

**************************************** **************************************** ************
The Apache notification [notice], notification [warn], and error [error] logs during the last startup, running, and stop of APMServ are as follows:
**************************************** **************************************** ************
[Sat Dec 17 18:35:10 2011] [warn] pid file D:/APMServ5.2.6/Apache/logs/httpd. pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.5. Rebuild it for your PHP version (5.2.6) or download precompiled binaries. n in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0

Solution:
Open the D: APMServ5.2.6ZendeAccelerator folder, and you will see the eAccelerator. dll and plugin files. Then open php. ini under the D: APMServ5.2.6PHP folder. You can see that the eAccelerator. dll file contains references.

Strange: zend_extension_ts = "D:/APMServ5.2.6/zend/eAccelerator/eAccelerator0953_5.2.5.dll"

Locate the problem and find the solution:

Solution 1:

Open php. ini under D: APMServ5.2.6PHP
[Eaccelerator]
Zend_extension_ts = "D:/APMServ5.2.6/zend/eAccelerator/eAccelerator0953_5.2.5.dll"
Changed:
[Eaccelerator]
Zend_extension_ts = "D:/APMServ5.2.6/zend/eAccelerator. dll"
That's it!


Solution 2:

If the folder D: APMServ5.2.6ZendeAccelerator does not display eAccelerator. dll, go to the download address:


Download the eAccelerator 0953 for PHP 5.2.6 and put it in the D: APMServ5.2.6ZendeAccelerator folder. Then, in the php. Ini file
[Eaccelerator]
Zend_extension_ts = "D:/APMServ5.2.6/zend/eAccelerator/eAccelerator0953_5.2.5.dll"
Changed:
[Eaccelerator]
Zend_extension_ts = "D:/APMServ5.2.6/zend/eAccelerator/eAccelerator0953_5.2.6.dll"

The Apache service named reported the following error:
>>> Httpd.exe: cocould not reliably determine the server's fully qualified domain name, using 192.168.0.210 for ServerName.

Analysis: The server's fully qualified domain name cannot be reliably identified, using 192.168.0.210)

The Apache service named reported the following error:
>>> (OS 10055) the operation on the socket cannot be performed because the system buffer space is insufficient or the queue is full. : Make_sock: unable to listen for connections on address 0.0.0.0: 80

Analysis: cannot listen on port 80

The Apache service named reported the following error:
>>> Unable to open logs

Analysis: port 80 is occupied

The Apache service named reported the following error:
>>> [Sun May 13 09:29:45 2012] [warn] NameVirtualHost 192.168.0.210: 80 has no VirtualHosts

Analysis: The bound IP address and port cannot correspond to the virtual host

Overview of general errors:
From the above error analysis, we can see that:

Port 1.80 is occupied

2. apache cannot bind an IP address (192.168.0.210)

3. Log files may not be opened

Solution process:
1. winsock problems cause:
1. Select "network neighbor"> "local connection"> "properties"> "internet Protocol" (TCP/IP)> "properties"> "advanced"> "wins tag"> remove the check box before enabling the LMhosts query.

2. Select "control panel"> "windows Firewall"> "Advanced tab"> "local connection settings"> "service", and select "secure Web server (HTTPS.

3. Reset the LSP to the initial state (winsockfix is a common software, which can also be solved by Jinshan cleaning expert's LSP repair tool ). After restart, the problem must be solved. (You can directly use the LSP that comes with 360 to restore to the initial state without restarting to take effect)

2. Multiple NICs and multiple IP addresses cause:
The server has two NICs with different IP addresses configured. apache does not specify a listening IP address.

Solution:

Method 1: disable the unused Nic

Method 2: configure the port of the specified IP address for apache listening:

Listen 192.168.0.210: 80

Port 3.80 is occupied:
Find the port 80 occupied by the application, disable the port used by the application, or modify the port used by the software.

For more details, see: http://www.111cn.net/sys/Windows/43897.htm

[Root @ jsjzhang www] #/etc/rc. d/init. d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 265 of/etc/httpd/conf/httpd. conf:
DocumentRoot must be a directory

In fact, there is no problem with this directory. It is just a tar package that is extracted, and selinux is the final one.

Solution:
Vi/etc/selinux/config
Make SELINUX = disable
OR/etc/selinux/targeted/booleans
Httpd_enable_homedirs = 1

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.