httpd' on server suddenly stop

is this a good guide to Installation on CentOS 5 ?

The easiest way to go about this is to install a YUM repository that contains it. The two most popular are the EPEL YUM Repository from the Fedora Core team, and the Dag Wieers YUM repository

Once the repository is installed, just use YUM to install both the munin and munin-node RPMs as required.
Installing the EPEL YUM Repository

Just execute this command as root :
Code:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

That is of course if you are running CentOS 5.3. Change the file name to 5.2 if you are running that release, and so on.
Installing the Dag Wieers YUM Repository

Just create the following file with the contents show : /etc/yum.repos.d/dag.repo

Code:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1

Installing Client and Server ¶

On the server, just do :

Code:
yum -y install munin

And on each client (or "node" as munin calls them) :

Code:
yum -y install munin-node

Note that the node install can take a really long time to complete - just be patient and it will.
 
[root@server ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel -release-5-3.noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.no arch.rpm
error: skipping http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5 -3.noarch.rpm - transfer failed - Unknown or unexpected error
warning: u 0xa01e338 ctrl 0xa01fcc0 nrefs != 0 (download.fedora.redhat.com http)
[root@server ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2 .noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
error: skipping http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rp m - transfer failed - Unknown or unexpected error
warning: u 0x8c5c338 ctrl 0x8c5dcc0 nrefs != 0 (download.fedora.redhat.com http)
[root@server ~]#
 
Did you read the guide, or you just execute commands without understanding it and reading any comments?!

That is of course if you are running CentOS 5.3. Change the file name to 5.2 if you are running that release, and so on.

Actual version is 5.4 for the repo.
 
I mean, that no password is set, as far as I remember. Directives are set in .htaccess file, but password file is empty. It's up to you, which password you are going to use, of course if you are going to use any. Either set password or disable directives.

See /var/www/html/munin/.htaccess and read this How-TO
 
ok man forget,that not work !
i did not set any password ,i have just install it and now it ask me for user and password.
 
If you open file /var/www/html/munin/.htaccess, you will see directives for managing apache's auth. It's already there. It appeals to a file, which is supposed to exist and contain hash of a password, and this file is not created on installation. Either set password or disable directives (delete /var/www/html/munin/.htaccess).

Anyway, these forums is not the right place to learn how to become a sysop. Hire somebody and don't waste your time.
 
If apache falls over when you add/edit domains (as you say it does), check the directadmin error log - but if theres any errors, you'll normally see errors within directadmin just after adding/editing a domain?

Also, get rid of mod_clamav in apache, nearly everyone has that error appear including me (I ditched it) - I just use ClamAV in ProFTP & Exim.

First I thought that Apache got stuck randomly, but I now see its when it only restarts? Are you using normal or graceful restarts?
 
ok Peter Laws,now its stop to work when i do restart from directadmin
i did restart httpd for test and it do not restart again so i rebooted system
before reboot i take the httpd error and i try to make restart and start apache frome root and i get error too
httpd error logs:
Code:
[Sun Feb 27 10:47:05 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:05 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:05 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Feb 27 10:47:05 2011] [warn] module clamav_module is already loaded, skipping
[Sun Feb 27 10:47:06 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:06 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:06 2011] [warn] Init: SSL server IP/port conflict: www.newmsr.com:443 (/usr/local/directadmin/data/users/newmsr/httpd.conf:49) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:06 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:06 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:06 2011] [emerg] (28)No space left on device: Couldn't create accept lock (/var/log/httpd/accept.lock.1785) (5)
[Sun Feb 27 10:47:14 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:14 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:14 2011] [warn] Init: SSL server IP/port conflict: www.newmsr.com:443 (/usr/local/directadmin/data/users/newmsr/httpd.conf:49) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:14 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:14 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:14 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Feb 27 10:47:14 2011] [warn] module clamav_module is already loaded, skipping
[Sun Feb 27 10:47:15 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:15 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:15 2011] [warn] Init: SSL server IP/port conflict: www.newmsr.com:443 (/usr/local/directadmin/data/users/newmsr/httpd.conf:49) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:15 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:15 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:15 2011] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Feb 27 10:47:15 2011] [emerg] (28)No space left on device: Couldn't create accept lock (/var/log/httpd/accept.lock.1813) (5)
[Sun Feb 27 10:47:22 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:22 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:22 2011] [warn] Init: SSL server IP/port conflict: www.newmsr.com:443 (/usr/local/directadmin/data/users/newmsr/httpd.conf:49) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:22 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:22 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:22 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Feb 27 10:47:22 2011] [warn] module clamav_module is already loaded, skipping
[Sun Feb 27 10:47:23 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:23 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:23 2011] [warn] Init: SSL server IP/port conflict: www.newmsr.com:443 (/usr/local/directadmin/data/users/newmsr/httpd.conf:49) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:23 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:23 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:23 2011] [emerg] (28)No space left on device: Couldn't create accept lock (/var/log/httpd/accept.lock.1858) (5)
[Sun Feb 27 10:47:32 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:32 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:32 2011] [warn] Init: SSL server IP/port conflict: www.newmsr.com:443 (/usr/local/directadmin/data/users/newmsr/httpd.conf:49) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:32 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:32 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:32 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Feb 27 10:47:32 2011] [warn] module clamav_module is already loaded, skipping
[Sun Feb 27 10:47:33 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:33 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sun Feb 27 10:47:33 2011] [warn] Init: SSL server IP/port conflict: www.newmsr.com:443 (/usr/local/directadmin/data/users/newmsr/httpd.conf:49) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:33 2011] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/extra/httpd-vhosts.conf:38) vs. www.sportksa.joomlastyle.net:443 (/usr/local/directadmin/data/users/sportksa/httpd.conf:49)
[Sun Feb 27 10:47:33 2011] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Feb 27 10:47:33 2011] [emerg] (28)No space left on device: Couldn't create accept lock (/var/log/httpd/accept.lock.1906) (5)


root error:
Code:
[root@server ~]# service httpd start
Starting httpd: [Sun Feb 27 10:48:12 2011] [warn] module clamav_module is already loaded, skipping
(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
Unable to open logs

[root@server ~]#

i hope that will help to know what the problem
thank you
 
ok, now is what i was talking about!

Do the command you listed before for check who use port 80 and 443!


Code:
[root@server ~]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                             e       PID/Program name
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LIST                                             EN      2530/dovecot
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LIST                                             EN      2530/dovecot
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LIST                                             EN      2682/mysqld
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LIST                                             EN      3120/exim
tcp        0      0 127.0.0.1:3310              0.0.0.0:*                   LIST                                             EN      3908/clamd
tcp        0      0 0.0.0.0:2222                0.0.0.0:*                   LIST                                             EN      3110/directadmin
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LIST                                             EN      2530/dovecot
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LIST                                             EN      2530/dovecot
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LIST                                             EN      2225/portmap
tcp        0      0 127.0.0.1:54321             0.0.0.0:*                   LIST                                             EN      3137/avgtcpd
tcp        0      0 127.0.0.1:54322             0.0.0.0:*                   LIST                                             EN      3137/avgtcpd
tcp        0      0 0.0.0.0:754                 0.0.0.0:*                   LIST                                             EN      2268/rpc.statd
tcp        0      0 10.0.6.45:53                0.0.0.0:*                   LIST                                             EN      3897/named
tcp        0      0 78.129.175.66:53            0.0.0.0:*                   LIST                                             EN      3897/named
tcp        0      0 78.129.175.65:53            0.0.0.0:*                   LIST                                             EN      3897/named
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LIST                                             EN      3897/named
tcp        0      0 0.0.0.0:4949                0.0.0.0:*                   LIST                                             EN      3406/munin-node
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LIST                                             EN      2592/cupsd
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LIST                                             EN      3897/named
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LIST                                             EN      3120/exim
tcp        0      0 :::80                       :::*                        LIST                                             EN      3219/httpd
tcp        0      0 :::21                       :::*                        LIST                                             EN      3235/proftpd: (acce
tcp        0      0 :::22                       :::*                        LIST                                             EN      2580/sshd
tcp        0      0 :::443                      :::*                        LIST                                             EN      3219/httpd
udp        0      0 0.0.0.0:51508               0.0.0.0:*                                                                            3410/avahi-daemon:
udp        0      0 10.0.6.45:53                0.0.0.0:*                                                                            3897/named
udp        0      0 78.129.175.66:53            0.0.0.0:*                                                                            3897/named
udp        0      0 78.129.175.65:53            0.0.0.0:*                                                                            3897/named
udp        0      0 127.0.0.1:53                0.0.0.0:*                                                                            3897/named
udp        0      0 0.0.0.0:68                  0.0.0.0:*                                                                            2041/dhclient
udp        0      0 0.0.0.0:5353                0.0.0.0:*                                                                            3410/avahi-daemon:
udp        0      0 0.0.0.0:748                 0.0.0.0:*                                                                            2268/rpc.statd
udp        0      0 0.0.0.0:751                 0.0.0.0:*                                                                            2268/rpc.statd
udp        0      0 0.0.0.0:111                 0.0.0.0:*                                                                            2225/portmap
udp        0      0 0.0.0.0:631                 0.0.0.0:*                                                                            2592/cupsd
udp        0      0 :::57646                    :::*                                                                                 3410/avahi-daemon:
udp        0      0 :::5353                     :::*                                                                                 3410/avahi-daemon:
[root@server ~]#
 
Hi SeLLeRoNe,
there is nothin man
[root@server ~]# lsof | grep :80
[root@server ~]#
 
no idea, hard to say how to investigate.

Something is binding ipv6 port 80 and not ipv4 one.

You need to hire someone to solve your problem as Peter sayd.

Regards
 
I was also confused about the IPv6 thing, I doubt you use IPv6 by default? Most ISP's still have no IPv6 support.

Also, I'm confused as to:
[emerg] (28)No space left on device: Couldn't create accept lock (/var/log/httpd/accept.lock.1785) (5)
You have only 1 partition, well 2, and not full :confused:

And doing this:
Code:
for semid in `ipcs -s | grep apache | cut -f2 -d" "`; do ipcrm -s $semid; done
once would've been sufficient, no?
 
Last edited:
Not correct

Code:
lsof | grep :80

Correct is

Code:
lsof -i:80


man lsof

Code:
       -i [i]   This option selects the listing of files any of whose  Internet  address  matches  the  address
                specified  in  i.   If no address is specified, this option selects the listing of all Internet
                and x.25 (HP-UX) network files.


Will this help you?

When apache gets stuck, run this code and post here results:
Code:
ipcs -s | grep apache
 
Last edited:
Back
Top