Linux httpd service not start

[root@sunx4150 run]# ps -ef | grep http
root      7222  6826  0 10:32 pts/1    00:00:00 grep http
[root@sunx4150 run]# pwd
/etc/httpd/run
[root@sunx4150 run]# ls
acpid.socket  dirmngr           hpssd.pid       mdadm           nscd         radvd          sshd.pid                vmnet-dhcpd-vmnet8.pid    xenstored
agent.pid     dovecot           hpssd.port      mdmpd           ntpd.pid     rpc.statd.pid  sudo                    vmnet-natd-8.mac          xfs.pid
atd.pid       dsviewserver.pid  httpd.pid       messagebus.pid  openldap     saslauthd      syslogd.pid             vmnet-natd-8.pid          xinetd.pid
avahi-daemon  gather            iiim            mysqld          ppp          screen         tog-pegasus             vmnet-netifup-vmnet1.pid
console       gdm.pid           irqbalance.pid  named           ptal-mlcd    sendmail.pid   utmp                    vmnet-netifup-vmnet8.pid
crond.pid     gpm.pid           iscsid.pid      netreport       ptal-printd  setrans        vmnat.4650              vmware
cups          haldaemon.pid     klogd.pid       NetworkManager  pvm3         smbd.pid       vmnet-bridge-0.pid      winbindd
cupsd.pid     hpiod.pid         libvirt         news            quagga       sm-client.pid  vmnet-detect.pid        wpa_supplicant
dbus          hpiod.port        libvirtd.pid    nmbd.pid        radiusd      spamassassin   vmnet-dhcpd-vmnet1.pid  xend
[root@sunx4150 run]# ls -ltr
total 420
drwxr-xr-x 2 pvm     pvm     4096 Jul 13  2006 pvm3
drwxrwx–x 2 quagga  quagga  4096 Jul 13  2006 quagga
drwxr-xr-x 2 root    root    4096 Jul 14  2006 wpa_supplicant
drwxr-xr-x 2 radvd   radvd   4096 Aug 19  2006 radvd
drwxr-x— 2 news    news    4096 Aug 29  2006 news
drwxr-xr-x 2 root    root    4096 Sep  2  2006 winbindd
drwxr-xr-x 2 root    root    4096 Sep 30  2006 saslauthd
drwx—— 4 root    root    4096 Oct  2  2006 sudo
drwx—— 2 root    root    4096 Nov  9  2006 mdmpd
drwx—— 2 root    root    4096 Nov  9  2006 mdadm
drwx—— 2 radiusd radiusd 4096 Nov 30  2006 radiusd
drwxr-xr-x 2 root    root    4096 Dec  1  2006 ppp
drwxrwxr-x 2 root    screen  4096 Dec  4  2006 screen
drwxr-xr-x 2 ldap    ldap    4096 Jan  3  2007 openldap
drwxr-xr-x 2 root    root    4096 Jan  8  2007 NetworkManager
drwxr-x— 2 root    pegasus 4096 Jan 12  2007 gather
drwxr-x–T 2 root    pegasus 4096 Jan 12  2007 tog-pegasus
drwxr-xr-x 2 root    root    4096 Jan 12  2007 setrans
drwxr-xr-x 2 root    root    4096 Jan 16  2007 console
drwxr-xr-x 2 root    root    4096 Jan 16  2007 nscd
drwxrwxr-x 2 root    root    4096 Jan 16  2007 netreport
drwxrwx— 2 named   named   4096 Jan 17  2007 named
drwxr-xr-x 2 root    root    4096 Jun 11  2007 spamassassin
drwxr-xr-x 2 root    root    4096 Oct 11  2007 dirmngr
drwxr-xr-x 2 root    root    4096 Apr 30  2008 xenstored
drwxr-xr-x 2 root    root    4096 Apr 30  2008 xend
drwxr-xr-x 3     100     101 4096 Jul 15  2008 iiim
drwxr-xr-x 3 root    dovecot 4096 Apr  6  2009 dovecot
drwxr-xr-x 3 root    lp      4096 Apr  6  2009 cups
drwxr-xr-x 2 root    root    4096 Apr  6  2009 ptal-printd
drwxr-xr-x 2 root    root    4096 Apr  6  2009 ptal-mlcd
drwxr-xr-x 3 root    root    4096 Nov 24  2010 vmware
-rw——- 1 root    root       5 Mar 12 10:48 iscsid.pid
-rw——- 1 root    root       5 Mar 12 10:49 syslogd.pid
-rw-r–r– 1 rpcuser rpcuser    5 Mar 12 10:49 rpc.statd.pid
-rw——- 1 root    root       5 Mar 12 10:49 klogd.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 irqbalance.pid
-rw-rw-rw- 1 root    root       5 Mar 12 10:49 vmnet-bridge-0.pid
-rw-rw-rw- 1 root    root       5 Mar 12 10:49 vmnet-netifup-vmnet8.pid
-rw-rw-rw- 1 root    root       5 Mar 12 10:49 vmnet-netifup-vmnet1.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 vmnet-natd-8.pid
-rw-rw-rw- 1 root    root      18 Mar 12 10:49 vmnet-natd-8.mac
-rw-r—– 1 root    root       5 Mar 12 10:49 vmnet-dhcpd-vmnet8.pid
-rw-r—– 1 root    root       5 Mar 12 10:49 vmnet-dhcpd-vmnet1.pid
-rw-rw-rw- 1 root    root       5 Mar 12 10:49 vmnet-detect.pid
srwxrwxrwx 1 root    root       0 Mar 12 10:49 vmnat.4650
-rw-r–r– 1 root    root       5 Mar 12 10:49 messagebus.pid
drwxr-xr-x 2 root    root    4096 Mar 12 10:49 dbus
-rw-rw-r– 1 root    root       4 Mar 12 10:49 agent.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 hpiod.port
-rw-r–r– 1 root    root       5 Mar 12 10:49 hpiod.pid
srw-rw-rw- 1 root    root       0 Mar 12 10:49 acpid.socket
-rw-r–r– 1 root    root       5 Mar 12 10:49 hpssd.port
-rw-r–r– 1 root    root       5 Mar 12 10:49 hpssd.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 xinetd.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 sshd.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 cupsd.pid
-rw-r–r– 1 root    root       4 Mar 12 10:49 ntpd.pid
drwxr-xr-x 2 mysql   mysql   4096 Mar 12 10:49 mysqld
-rw-r–r– 1 smmsp   smmsp     49 Mar 12 10:49 sm-client.pid
-rw——- 1 root    smmsp     33 Mar 12 10:49 sendmail.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 gpm.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 dsviewserver.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 crond.pid
-rw-r–r– 1 root    root       6 Mar 12 10:49 xfs.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 smbd.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 nmbd.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 libvirtd.pid
drwxr-xr-x 2 root    root    4096 Mar 12 10:49 libvirt
-rw-r–r– 1 root    root       5 Mar 12 10:49 atd.pid
-rw-r–r– 1 root    root       5 Mar 12 10:49 haldaemon.pid
drwxr-xr-x 2 avahi   avahi   4096 Mar 12 10:49 avahi-daemon
-rw-r–r– 1 root    root       5 Mar 12 10:50 gdm.pid
-rw-r–r– 1 root    root       5 Apr  5 04:02 httpd.pid
-rw-rw-r– 1 root    utmp    6528 May  9 10:23 utmp
[root@sunx4150 run]# rm -rf httpd.pid
[root@sunx4150 run]# service httpd start
Starting httpd:                                            [FAILED]
[root@sunx4150 run]# service httpd status
httpd dead but subsys locked
[root@sunx4150 run]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [FAILED]
[root@sunx4150 run]# rm -f  /var/lock/subsys/httpd
You have new mail in /var/spool/mail/root
[root@sunx4150 run]#  service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [FAILED]
[root@sunx4150 run]#  service httpd status
httpd is stopped
[root@sunx4150 run]#  service httpd start
Starting httpd:                                            [FAILED]
[root@sunx4150 run]#  ipcs -s apahe

—— Semaphore Arrays ——–
key        semid      owner      perms      nsems
0x000000a7 0          root      666        1
0x0000033d 1474561    root      644        1
0x0f9b5efc 163842     oracle    640        44
0x00000000 1409027    apache    600        1
0x00000000 229380     apache    600        1
0x00000000 1441797    apache    600        1
0x00000000 1507334    apache    600        1
0x00000000 1540103    apache    600        1
0x00000000 1572872    apache    600        1
0x00000000 1605641    apache    600        1
0x00000000 1638410    apache    600        1
0x00000000 1671179    apache    600        1

[root@sunx4150 run]# ipcs -s | grep apache | perl -e ‘while (<STDIN>) { @a=split(/s+/);print `ipcrm sem $a[1]`}’
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
[root@sunx4150 run]# cd /var/lock/subsys
[root@sunx4150 subsys]#  rm httpd
rm: cannot lstat `httpd’: No such file or directory
[root@sunx4150 subsys]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [FAILED]
[root@sunx4150 subsys]# vi /etc/httpd/conf/httpd.conf
You have new mail in /var/spool/mail/root
[root@sunx4150 subsys]# killall -9 httpd
httpd: no process killed
[root@sunx4150 subsys]# killall -9 php-cgi
php-cgi: no process killed
[root@sunx4150 subsys]# killall -9 perl-cgi
perl-cgi: no process killed
[root@sunx4150 subsys]# netstat -tulpn | grep :80
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      5308/tnslsnr
[root@sunx4150 subsys]# netstat -tulpn | grep :443
[root@sunx4150 subsys]# tail -f /var/log/httpd/error.log
tail: cannot open `/var/log/httpd/error.log’ for reading: No such file or directory
tail: no files remaining
[root@sunx4150 subsys]# vi /etc/httpd/conf/httpd.conf
[root@sunx4150 subsys]# tail -f /var/logs/error_log
tail: cannot open `/var/logs/error_log’ for reading: No such file or directory
tail: no files remaining
[root@sunx4150 subsys]# tail -f /etc/httpd/logs/error_log
[Thu May 09 10:27:40 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 09 10:30:14 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 09 10:32:47 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 09 10:33:08 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 09 10:43:41 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 09 10:43:57 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 09 10:45:28 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 09 10:49:51 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

You have new mail in /var/spool/mail/root
[root@sunx4150 subsys]# cd /etc/httpd/logs/
[root@sunx4150 logs]# ls -ltr
total 2348
-rw-r–r– 1 root root 654815 Nov  2  2011 nss_error_log.2
-rw-r–r– 1 root root 682530 Nov  2  2011 nss_access_log.1
-rw-r–r– 1 root root      0 Nov  3  2011 nss_access_log
-rw-r–r– 1 root root     77 Mar  1 11:15 ssl_request_log.4
-rw-r–r– 1 root root     71 Mar  1 11:15 ssl_access_log.4
-rw-r–r– 1 root root    312 Mar  7 15:56 ssl_request_log.3
-rw-r–r– 1 root root    288 Mar  7 15:56 ssl_access_log.3
-rw-r–r– 1 root root    385 Mar 15 16:57 ssl_request_log.2
-rw-r–r– 1 root root   1306 Mar 15 16:57 ssl_error_log.4
-rw-r–r– 1 root root    355 Mar 15 16:57 ssl_access_log.2
-rw-r–r– 1 root root  85057 Mar 17 04:00 access_log.4
-rw-r–r– 1 root root    237 Mar 17 04:02 ssl_error_log.3
-rw-r–r– 1 root root  87266 Mar 24 04:00 access_log.3
-rw-r–r– 1 root root 197481 Mar 24 04:02 error_log.4
-rw-r–r– 1 root root    237 Mar 24 04:02 ssl_error_log.2
-rw-r–r– 1 root root  91220 Mar 31 04:00 access_log.2
-rw-r–r– 1 root root 197481 Mar 31 04:02 error_log.3
-rw-r–r– 1 root root     77 Apr  4 10:47 ssl_request_log.1
-rw-r–r– 1 root root     71 Apr  4 10:47 ssl_access_log.1
-rw-r–r– 1 root root      0 Apr  5 04:02 ssl_request_log
-rw-r–r– 1 root root    593 Apr  5 04:02 ssl_error_log.1
-rw-r–r– 1 root root      0 Apr  5 04:02 ssl_access_log
-rw-r–r– 1 root root  86524 Apr  7 04:00 access_log.1
-rw-r–r– 1 root root      0 Apr  7 04:02 ssl_error_log
-rw-r–r– 1 root root    340 Apr  7 04:02 nss_error_log.1
-rw-r–r– 1 root root 198038 Apr  7 04:02 error_log.2
-rw-r–r– 1 root root    141 Apr  7 04:02 error_log.1
-rw-r–r– 1 root root      0 Apr  7 04:02 access_log
-rw-r–r– 1 root root    712 May  9 10:49 error_log
-rw-r–r– 1 root root   3740 May  9 10:56 nss_error_log
[root@sunx4150 logs]# cat nss_error_log
[Thu May 09 10:27:40 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:27:40 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:27:40 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:30:14 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:30:14 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:30:14 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:32:47 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:32:47 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:32:47 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:33:08 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:33:08 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:33:08 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:43:41 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:43:41 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:43:41 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:43:57 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:43:57 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:43:57 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:45:28 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:45:28 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:45:28 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:49:51 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:49:51 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:49:51 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:53:09 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:53:09 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:53:09 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:53:26 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:53:26 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:53:26 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[Thu May 09 10:56:35 2013] [error] Certificate not verified: ‘Server-Cert’
[Thu May 09 10:56:35 2013] [error] SSL Library Error: -8181 Certificate has expired
[Thu May 09 10:56:35 2013] [error] Unable to verify certificate ‘Server-Cert’. Add “NSSEnforceValidCerts off” to nss.conf so the server can start until the problem can be resolved.
[root@sunx4150 logs]#

Add “NSSEnforceValidCerts off” to nss.conf

[root@sunx4150 httpd]# cd conf.d/
[root@sunx4150 conf.d]# ls
auth_kerb.conf   manual.conf  php.conf        squid.conf
auth_mysql.conf  mrtg.conf    proxy_ajp.conf  ssl.conf
auth_pgsql.conf  nss.conf     python.conf     subversion.conf
authz_ldap.conf  perl.conf    README          welcome.conf
[root@sunx4150 conf.d]# vi nss.conf
[root@sunx4150 conf.d]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 193 of /etc/httpd/conf.d/nss.conf:
Invalid command ‘SEnforceValidCerts’, perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
[root@sunx4150 conf.d]# vi nss.conf
You have new mail in /var/spool/mail/root
[root@sunx4150 conf.d]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]
[root@sunx4150 conf.d]#

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top