Re: Reboot problem with Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Quoting "James A. Peltier" <jpeltier@xxxxxx>:

> ----- Original Message -----
> | I have CentOS 6 and with webmin/virtualmin panel, and each time that I
> | reboot Apache can't start:
> |
> |
> | Starting httpd: (98)Address already in use: make_sock: could not bind
> | to address [::]:80
> | (98)Address already in use: make_sock: could not bind to address
> | 0.0.0.0:80
> | no listening sockets available, shutting down
> |
> | I do:
> |
> | netstat -tulpn| grep :80
> | tcp 0 0 :::80 :::* LISTEN 1584/httpd
> |
> |
> | killall -9 httpd
> |
> |
> | And then Apache can start. But do you why thos problem in each reboot?
> | I like to fix this problem.
> |
> | Thansks you.
> |
> | Ernesto
>
> Is there another web server starting before Apache?  For example,  
> nginx.  You could try and use lsof -p <PID> or lsof -i :80 to see  
> what is holding the port before Apache.
>

Thanks James, I get this:


lsof -i :80
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
httpd   1507 root    5u  IPv6  10107      0t0  TCP *:http (LISTEN)





lsof -p 1507
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
httpd   1507 root  cwd    DIR    9,0     4096        2 /
httpd   1507 root  rtd    DIR    9,0     4096        2 /
httpd   1507 root  txt    REG    9,0   993010 14161559 /usr/sbin/httpd
httpd   1507 root  mem    REG    9,0  1532908  2363869 /lib/libdb-4.7.so
httpd   1507 root  mem    REG    9,0   185388 14161462  
/usr/lib/libapr-1.so.0.3.9
httpd   1507 root  mem    REG    9,0    19784  2360213 /lib/libdl-2.12.so
httpd   1507 root  mem    REG    9,0    16868  2360449 /lib/libuuid.so.1.3.0
httpd   1507 root  mem    REG    9,0    64876 14162016  
/usr/lib/httpd/modules/mod_auth_digest.so
httpd   1507 root  mem    REG    9,0    30491 14162017  
/usr/lib/httpd/modules/mod_authn_alias.so
httpd   1507 root  mem    REG    9,0    23617 14162020  
/usr/lib/httpd/modules/mod_authn_default.so
httpd   1507 root  mem    REG    9,0    29186 14162027  
/usr/lib/httpd/modules/mod_authz_owner.so
httpd   1507 root  mem    REG    9,0    31057 14162025  
/usr/lib/httpd/modules/mod_authz_groupfile.so
httpd   1507 root  mem    REG    9,0   126754 14162043  
/usr/lib/httpd/modules/mod_ldap.so
httpd   1507 root  mem    REG    9,0   310244  2363873  
/lib/libldap-2.4.so.2.5.6
httpd   1507 root  mem    REG    9,0    57340  2363855  
/lib/liblber-2.4.so.2.5.6
httpd   1507 root  mem    REG    9,0    19166 14162063  
/usr/lib/httpd/modules/mod_version.so
httpd   1507 root  mem    REG    9,0   122436  2360428 /lib/libselinux.so.1
httpd   1507 root  mem    REG    9,0   101064  2360426 /lib/libresolv-2.12.so
httpd   1507 root  mem    REG    9,0   179160 14161860 /usr/lib/libsmime3.so
httpd   1507 root  mem    REG    9,0    12164  2363852 /lib/libplds4.so
httpd   1507 root  mem    REG    9,0    16676  2363851 /lib/libplc4.so
httpd   1507 root  mem    REG    9,0   102740 14157933  
/usr/lib/libsasl2.so.2.0.23
httpd   1507 root  mem    REG    9,0    75952  2360207 /lib/libz.so.1.2.3
httpd   1507 root  mem    REG    9,0    60383 14162022  
/usr/lib/httpd/modules/mod_authnz_ldap.so
httpd   1507 root  mem    REG    9,0    23789 14162024  
/usr/lib/httpd/modules/mod_authz_default.so
httpd   1507 root  mem    REG    9,0   104808 14161529  
/usr/lib/httpd/modules/mod_include.so
httpd   1507 root  mem    REG    9,0    64831 14162044  
/usr/lib/httpd/modules/mod_log_config.so
httpd   1507 root  mem    REG    9,0    51697 14162039  
/usr/lib/httpd/modules/mod_ext_filter.so
httpd   1507 root  mem    REG    9,0    51499 14161519  
/usr/lib/httpd/modules/mod_deflate.so
httpd   1507 root  mem    REG    9,0    34634 14162056  
/usr/lib/httpd/modules/mod_setenvif.so
httpd   1507 root  mem    REG    9,0    45364 14161527  
/usr/lib/httpd/modules/mod_headers.so
httpd   1507 root  mem    REG    9,0    42731 14162046  
/usr/lib/httpd/modules/mod_mime.so
httpd   1507 root  mem    REG    9,0    52524 14162058  
/usr/lib/httpd/modules/mod_status.so
httpd   1507 root  mem    REG    9,0    32409 14162057  
/usr/lib/httpd/modules/mod_speling.so
httpd   1507 root  mem    REG    9,0    30144 14161553  
/usr/lib/httpd/modules/mod_userdir.so
httpd   1507 root  mem    REG    9,0    25588 14162021  
/usr/lib/httpd/modules/mod_authn_file.so
httpd   1507 root  mem    REG    9,0   298818 14161516  
/usr/lib/httpd/modules/mod_dav.so
httpd   1507 root  mem    REG    9,0    88126 14162048  
/usr/lib/httpd/modules/mod_negotiation.so
httpd   1507 root  mem    REG    9,0   179791 14162049  
/usr/lib/httpd/modules/mod_proxy.so
httpd   1507 root  mem    REG    9,0    77416 14162053  
/usr/lib/httpd/modules/mod_proxy_ftp.so
httpd   1507 root  mem    REG    9,0    34498 14162052  
/usr/lib/httpd/modules/mod_proxy_connect.so
httpd   1507 root  mem    REG    9,0    63372 14161514  
/usr/lib/httpd/modules/mod_cgi.so
httpd   1507 root  mem    REG    9,0    14640  2363862 /lib/libutil-2.12.so
httpd   1507 root  mem    REG    9,0    11968  2360668 /lib/libcom_err.so.2.1
httpd   1507 root  mem    REG    9,0     8900  2360467 /lib/libkeyutils.so.1.3
httpd   1507 root  mem    REG    9,0     4812 14161932  
/usr/lib/libsvn_fs_util-1.so.0.0.0
httpd   1507 root  mem    REG    9,0   105812 14162030  
/usr/lib/httpd/modules/mod_cache.so
httpd   1507 root  mem    REG    9,0    92372 14162405  
/usr/lib/httpd/modules/mod_fcgid.so
httpd   1507 root  mem    REG    9,0    38544  2360473  
/lib/libkrb5support.so.0.1
httpd   1507 root  mem    REG    9,0    30915 14162026  
/usr/lib/httpd/modules/mod_authz_host.so
httpd   1507 root  mem    REG    9,0   115588  2363874 /lib/libnsl-2.12.so
httpd   1507 root  mem    REG    9,0    26992 14161926  
/usr/lib/libsvn_fs-1.so.0.0.0
httpd   1507 root  mem    REG    9,0    44620 14161922  
/usr/lib/libsvn_delta-1.so.0.0.0
httpd   1507 root  mem    REG    9,0   192248  2360308 /lib/libpcre.so.0.0.1
httpd   1507 root  mem    REG    9,0   155592 14162033  
/usr/lib/httpd/modules/mod_dav_fs.so
httpd   1507 root  mem    REG    9,0   221128 14162185  
/usr/lib/httpd/modules/mod_perl.so
httpd   1507 root  mem    REG    9,0   173736  2360495 /lib/libk5crypto.so.3.1
httpd   1507 root  mem    REG    9,0    11768 14161958  
/usr/lib/httpd/modules/mod_authz_svn.so
httpd   1507 root  mem    REG    9,0   853373 14162192  
/usr/lib/httpd/modules/mod_ssl.so
httpd   1507 root  mem    REG    9,0    31034 14162023  
/usr/lib/httpd/modules/mod_authz_dbm.so
httpd   1507 root  mem    REG    9,0   141532  2360199 /lib/ld-2.12.so
httpd   1507 root  mem    REG    9,0    25147 14161523  
/usr/lib/httpd/modules/mod_env.so
httpd   1507 root  mem    REG    9,0   167368 14161942  
/usr/lib/libsvn_repos-1.so.0.0.0
httpd   1507 root  mem    REG    9,0    58704  2360224  
/lib/libnss_files-2.12.so
httpd   1507 root  mem    REG    9,0    35062 14162059  
/usr/lib/httpd/modules/mod_substitute.so
httpd   1507 root  mem    REG    9,0   321168 14161602  
/usr/lib/sse2/libgmp.so.3.5.0
httpd   1507 root  mem    REG    9,0   164384 14161930  
/usr/lib/libsvn_fs_fs-1.so.0.0.0
httpd   1507 root  mem    REG    9,0   161648  2363840 /lib/libexpat.so.1.5.2
httpd   1507 root  mem    REG    9,0    32704 14162038  
/usr/lib/httpd/modules/mod_expires.so
httpd   1507 root  mem    REG    9,0   253536  2363839  
/lib/libgssapi_krb5.so.2.2
httpd   1507 root  mem    REG    9,0   355248 14161583  
/usr/lib/libssl.so.1.0.0
httpd   1507 root  mem    REG    9,0   196000 14161928  
/usr/lib/libsvn_fs_base-1.so.0.0.0
httpd   1507 root  mem    REG    9,0    24798 14162018  
/usr/lib/httpd/modules/mod_authn_anon.so
httpd   1507 root  mem    REG    9,0    24911 14161491  
/usr/lib/httpd/modules/mod_actions.so
httpd   1507 root  mem    REG    9,0   109073 14162050  
/usr/lib/httpd/modules/mod_proxy_ajp.so
httpd   1507 root  mem    REG    9,0   327432 14161944  
/usr/lib/libsvn_subr-1.so.0.0.0
httpd   1507 root  mem    REG    9,0    40292  2360216 /lib/libcrypt-2.12.so
httpd   1507 root  mem    REG    9,0   137977 14161546  
/usr/lib/httpd/modules/mod_rewrite.so
httpd   1507 root  mem    REG    9,0    34439 14162064  
/usr/lib/httpd/modules/mod_vhost_alias.so
httpd   1507 root  mem    REG    9,0   202040  2360464 /lib/libm-2.12.so
httpd   1507 root  mem    REG    9,0  1876476  2360203 /lib/libc-2.12.so
httpd   1507 root  mem    REG    9,0    75149 14162029  
/usr/lib/httpd/modules/mod_autoindex.so
httpd   1507 root  mem    REG    9,0    25488 14162035  
/usr/lib/httpd/modules/mod_dir.so
httpd   1507 root  mem    REG    9,0   299676  2360215 /lib/libfreebl3.so
httpd   1507 root  mem    REG    9,0    35902 14162014  
/usr/lib/httpd/modules/mod_alias.so
httpd   1507 root  mem    REG    9,0   240668  2360310 /lib/libnspr4.so
httpd   1507 root  mem    REG    9,0    63702 14162051  
/usr/lib/httpd/modules/mod_proxy_balancer.so
httpd   1507 root  mem    REG    9,0    71980  2363858 /lib/libbz2.so.1.0.4
httpd   1507 root  mem    REG    9,0   218448 14161859 /usr/lib/libssl3.so
httpd   1507 root  mem    REG    9,0    26180 14161534  
/usr/lib/httpd/modules/mod_logio.so
httpd   1507 root  mem    REG    9,0    25407 14161501  
/usr/lib/httpd/modules/mod_authn_dbm.so
httpd   1507 root  mem    REG    9,0    32935 14162062  
/usr/lib/httpd/modules/mod_usertrack.so
httpd   1507 root  mem    REG    9,0    24980 14162060  
/usr/lib/httpd/modules/mod_suexec.so
httpd   1507 root  mem    REG    9,0   151956 14161959  
/usr/lib/httpd/modules/mod_dav_svn.so
httpd   1507 root  mem    REG    9,0    80938 14162054  
/usr/lib/httpd/modules/mod_proxy_http.so
httpd   1507 root  mem    REG    9,0   133136  2360442 /lib/libpthread-2.12.so
httpd   1507 root  mem    REG    9,0    64203 14162047  
/usr/lib/httpd/modules/mod_mime_magic.so
httpd   1507 root  mem    REG    9,0    45613 14162042  
/usr/lib/httpd/modules/mod_info.so
httpd   1507 root  mem    REG    9,0   142832 14161473  
/usr/lib/libaprutil-1.so.0.3.9
httpd   1507 root  mem    REG    9,0   107016 14157495 /usr/lib/libnssutil3.so
httpd   1507 root  mem    REG    9,0    53740 14162036  
/usr/lib/httpd/modules/mod_disk_cache.so
httpd   1507 root  mem    REG    9,0    30572 14161496  
/usr/lib/httpd/modules/mod_auth_basic.so
httpd   1507 root  mem    REG    9,0    24214 14162028  
/usr/lib/httpd/modules/mod_authz_user.so
httpd   1507 root  mem    REG    9,0  1278408 14161857 /usr/lib/libnss3.so
httpd   1507 root  mem    REG    9,0   874932  2362861 /lib/libkrb5.so.3.3
httpd   1507 root  mem    REG    9,0  1346144 14157028  
/usr/lib/libxml2.so.2.7.6
httpd   1507 root  mem    REG    9,0  1462852 14423615  
/usr/lib/perl5/CORE/libperl.so
httpd   1507 root  mem    REG    9,0   586892 14159368  
/usr/lib/libsqlite3.so.0.8.6
httpd   1507 root  mem    REG    9,0  1596748 14161225  
/usr/lib/libcrypto.so.1.0.0
httpd   1507 root  mem    REG    9,0  3430720 14161322  
/usr/lib/httpd/modules/libphp5.so
httpd   1507 root    0u   CHR    5,1      0t0     5156 /dev/console
httpd   1507 root    1u   CHR    5,1      0t0     5156 /dev/console
httpd   1507 root    2w   REG    9,0    37428  9441480  
/var/log/httpd/error_log
httpd   1507 root    3r   CHR    1,9      0t0     3733 /dev/urandom
httpd   1507 root    4u  sock    0,6      0t0    10106 can't identify protocol
httpd   1507 root    5u  IPv6  10107      0t0      TCP *:http (LISTEN)
httpd   1507 root    6u  sock    0,6      0t0    10110 can't identify protocol
httpd   1507 root    7u  IPv6  10111      0t0      TCP *:https (LISTEN)
httpd   1507 root    8r  FIFO    0,8      0t0    10126 pipe
httpd   1507 root    9w  FIFO    0,8      0t0    10126 pipe
httpd   1507 root   10w   REG    9,0  1063449  9569811  
/var/log/virtualmin/alertaroja.net_error_log
httpd   1507 root   11w   REG    9,0   238520  9569893  
/var/log/virtualmin/incanat.com_error_log
httpd   1507 root   12w   REG    9,0 19599789  9570772  
/var/log/virtualmin/kuales.com_error_log
httpd   1507 root   13w   REG    9,0   149126  9441529  
/var/log/httpd/ssl_error_log
httpd   1507 root   14w   REG    9,0    27440  9441472  
/var/log/httpd/access_log
httpd   1507 root   15w   REG    9,0  2157409  9569810  
/var/log/virtualmin/alertaroja.net_access_log
httpd   1507 root   16w   REG    9,0    35507  9569892  
/var/log/virtualmin/incanat.com_access_log
httpd   1507 root   17w   REG    9,0  3528479  9570771  
/var/log/virtualmin/kuales.com_access_log
httpd   1507 root   18w   REG    9,0  3528479  9570771  
/var/log/virtualmin/kuales.com_access_log
httpd   1507 root   19w   REG    9,0     6139  9441510  
/var/log/httpd/ssl_access_log
httpd   1507 root   20w   REG    9,0     7354  9441530  
/var/log/httpd/ssl_request_log
httpd   1507 root   21r   REG    9,0     1751 10488305 /home/kuales/ssl.key


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux