HTTP restart failed

Source: Internet
Author: User

Because the online space is full, I first cut it to the root directory and then use:

# Du-h -- Max-depth = 1

Check whether there is a problem with the reported space, so check whether there is space occupied by some dead processes, so use:

# Lsof | grep Delete

After seeing a lot of httpd processes, the following error is reported:

Bytes ---------------------------------------------------------------------------------------------------------------------

Stopping httpd: [failed]
Starting httpd: (98) address already in use: make_sock: cocould not bind to address [:]: 80
(98) address already in use: make_sock: cocould not bind to address 0.0.0.0: 80
No listening sockets available, shutting down
Unable to open logs

Bytes -------------------------------------------------------------------------------------------------------------------
The information found in Baidu is:

"As for the log directory, of course, it depends on whether the directory of the Log Path configured in your Apche exists.

There are two reasons: one is that other programs occupy port 80, and the other is that port 80 is repeatedly listened to in the configuration file.
Check the listen parameters carefully.

Port 80 is occupied by other programs,
Losf-I: 80

Let's handle it like this. So you can use

# Fuser-K-n tcp 80

After processing, restart httpd.

Httpd-manual mod_auth_mysql mod_perl mod_ssl

Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------------------

Undefined Symbol: apr_ldap_ssl_init

### On 64-bit machines, run Yum remove to clear all installation packages of non-64 i386/i686 and restart httpd. An error occurs:

Starting httpd: syntax error on line 161 of/etc/httpd/CONF/httpd. conf: cannot load/etc/httpd/modules/mod_ldap.so into server:/etc/httpd/modules/mod_ldap.so: Undefined Symbol: apr_ldap_ssl_init

### The following error occurs after you comment out mod_ldap.so In the httpd. conf file:
Starting httpd: syntax error on line 162 of/etc/httpd/CONF/httpd. conf: cannot load/etc/httpd/modules/mod_authnz_ldap.so into server:/etc/httpd/modules/mod_authnz_ldap.so: Undefined Symbol: apr_ldap_url_parse

### It is nice to comment out mod_authnz_ldap.so In the httpd. conf file, but this error is inexplicable and uncomfortable!

 

### So I started to make a fuss .... After a few hours ..... Use "yum install httpd" to reinstall Apache and all related packages .... Download the latest stable version of apache2.2.14 and re-compile the source code ..... Download the source code of APR and APR-util again .... Delete and then install... Install and delete... I have searched almost all Chinese and English website materials on the Internet... Still not working ..... It's a tough task !!! (From what I learned later, I am speechless ...... Therefore, we need to make it public !!!)

 

### The following are other errors in the configuration process, which are listed here for your search and reference:
Httpd: syntax error on line 161 of/usr/local/apache2/CONF/httpd. conf: cannot load/etc/httpd/modules/mod_ldap.so into server:/etc/httpd/modules/mod_ldap.so: Undefined Symbol: ldap_simple_bind_s

 

### In the process of solving the problem, I began to suspect that there was a problem with the LDAP-related package. I found that there was a problem with the APR-util package on the Internet.

 

### Why? How can this problem be solved? Run./httpd-V to check the version!

Server version: Apache/2.2.3
Server built: Jul 15 2009 09:02:25
Server's module magic number: 20051115: 3
Server loaded: Apr 1.3.9, APR-util 1.3.9 ### incorrect!
Compiled using: Apr 1.2.7, APR-util 1.2.7 ### incompatible!
Architecture: 64-bit
Server MPM: prefork
Threaded: No
Forked: Yes (variable process count)

 

Why is 1.3.9 loaded? Run export to check the environment variable LD_LIBRARY_PATH! Does it point to something like/usr/local/APR/lib?

If yes, it is usually set in this file:/etc/profile

LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/APR/lib

Comment it out and log on to the user again, and then execute./httpd-V. You can do this:

 

Server version: Apache/2.2.3
Server built: Jul 15 2009 09:02:25
Server's module magic number: 20051115: 3
Server loaded: Apr 1.2.7, APR-util 1.2.7
Compiled using: Apr 1.2.7, APR-util 1.2.7
Architecture: 64-bit
Server MPM: prefork
Threaded: No
Forked: Yes (variable process count)

 

So who configured the LD_LIBRARY_PATH environment variable? I found it useful when installing Tomcat on the Internet. It should have been added by my colleagues. After the installation, no httpd restart will be found.


This article is from the desert ghost blog, please be sure to keep this source http://shamozhihu.blog.51cto.com/6144046/1561548

HTTP restart failed

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.