PDA

View Full Version : Apache/DNS Issues At Startup‏



sander k
June 4th, 2009, 04:57
Hi all,

I have some weird Issues with my VPS.
The guy I rent it from told me that this was the problem:

Apache and DNS have been failing to start up. A httpd service restart has been issued however it fails when restarting. During reboot of the server, at boot, both Apache and DNS have failed according to cPanel Server Status and the website is inaccessible.

So I opened a ticket at cPanel and got this back:

Hello Sander,

Half of the issue should be fully resolved; I found that your BIND/DNS server was not setup to automatically start with your OS boot process. This is a change made outside of cPanel and unrelated to cPanel configurations.

The following command-line output shows BIND/named was set to off for automatic start-up, followed by a command to enable the option, confirmation of the current setting, then a test restart:

### quote log ###
root@server [~]# chkconfig --list named
named 0:off 1: off 2: off 3: off 4: off 5: off 6: off

root@server [~]# chkconfig named on

root@server [~]# chkconfig --list named
named 0:off 1: off 2: on 3: on 4: on 5: on 6:off

root@server [~]# /etc/init.d/named restart
Stopping named: . [ OK ]
Starting named: [ OK ]
### quote end ###

With Apache I found is already set to startup; however, your OS has an Apache/httpd RPM installed that conflicts with the cPanel-installed Apache version.

### quote log ###
root@server [~]# chkconfig --list httpd
httpd 0:off 1: off 2: on 3: on 4: on 5: on 6: off

root@server [~]# /etc/init.d/httpd restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs

root@server [~]# lsof -nPi4:80,443
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd 20359 root 6u IPv4 392470225 TCP 127.0.0.1:80 (LISTEN)
httpd 20359 root 7u IPv4 392470227 TCP 38.108.178.115:80 (LISTEN)
httpd 20359 root 8u IPv4 392470233 TCP 127.0.0.1:443 (LISTEN)
httpd 20359 root 9u IPv4 392470235 TCP 38.108.178.115:443 (LISTEN)
tailwatch 24025 root 8u IPv4 392528479 TCP 127.0.0.1:60330->127.0.0.1:80 (ESTABLISHED)

root@server [~]# /etc/init.d/httpd stop
httpd (no pid file) not running

root@server [~]# which httpd
/usr/sbin/httpd

root@server [~]# rpm -q httpd
httpd-2.2.3-6.el5.centos.1

root@server [~]# ls -ahl /usr/sbin/httpd
-rwxr-xr-x 1 root root 305K Mar 22 2007 /usr/sbin/httpd*

root@server [~]# rpm -qf /usr/sbin/httpd
httpd-2.2.3-6.el5.centos.1

root@server [~]# /usr/local/apache/bin/httpd -v
Server version: Apache/2.2.11 (Unix)
Server built: Mar 20 2009 13:17: 09
Cpanel::Easy::Apache v3.2.0 rev4639
### quote end ###

To correct the Apache problem we must first remove the conflicting "httpd" RPM, then re-run EasyApache to ensure a correct Apache installation.

Please advise how you would like to proceed or if you prefer to perform the removal and EasyApache build. Thank you!

I have no idea what this means.
My english isnt that good.
Is there something I must do? Or are the issues fixed?
I can't ask it on my host because he went to bed and he has some n00b on live support that knows less then me.

Please please help!

Ben
June 5th, 2009, 03:26
Hi all,

I have some weird Issues with my VPS.
The guy I rent it from told me that this was the problem:

Apache and DNS have been failing to start up. A httpd service restart has been issued however it fails when restarting. During reboot of the server, at boot, both Apache and DNS have failed according to cPanel Server Status and the website is inaccessible.

So I opened a ticket at cPanel and got this back:

Hello Sander,

Half of the issue should be fully resolved; I found that your BIND/DNS server was not setup to automatically start with your OS boot process. This is a change made outside of cPanel and unrelated to cPanel configurations.

The following command-line output shows BIND/named was set to off for automatic start-up, followed by a command to enable the option, confirmation of the current setting, then a test restart:

### quote log ###
root@server [~]# chkconfig --list named
named 0:off 1: off 2: off 3: off 4: off 5: off 6: off

root@server [~]# chkconfig named on

root@server [~]# chkconfig --list named
named 0:off 1: off 2: on 3: on 4: on 5: on 6:off

root@server [~]# /etc/init.d/named restart
Stopping named: . [ OK ]
Starting named: [ OK ]
### quote end ###

With Apache I found is already set to startup; however, your OS has an Apache/httpd RPM installed that conflicts with the cPanel-installed Apache version.

### quote log ###
root@server [~]# chkconfig --list httpd
httpd 0:off 1: off 2: on 3: on 4: on 5: on 6: off

root@server [~]# /etc/init.d/httpd restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs

root@server [~]# lsof -nPi4:80,443
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd 20359 root 6u IPv4 392470225 TCP 127.0.0.1:80 (LISTEN)
httpd 20359 root 7u IPv4 392470227 TCP 38.108.178.115:80 (LISTEN)
httpd 20359 root 8u IPv4 392470233 TCP 127.0.0.1:443 (LISTEN)
httpd 20359 root 9u IPv4 392470235 TCP 38.108.178.115:443 (LISTEN)
tailwatch 24025 root 8u IPv4 392528479 TCP 127.0.0.1:60330->127.0.0.1:80 (ESTABLISHED)

root@server [~]# /etc/init.d/httpd stop
httpd (no pid file) not running

root@server [~]# which httpd
/usr/sbin/httpd

root@server [~]# rpm -q httpd
httpd-2.2.3-6.el5.centos.1

root@server [~]# ls -ahl /usr/sbin/httpd
-rwxr-xr-x 1 root root 305K Mar 22 2007 /usr/sbin/httpd*

root@server [~]# rpm -qf /usr/sbin/httpd
httpd-2.2.3-6.el5.centos.1

root@server [~]# /usr/local/apache/bin/httpd -v
Server version: Apache/2.2.11 (Unix)
Server built: Mar 20 2009 13:17: 09
Cpanel::Easy::Apache v3.2.0 rev4639
### quote end ###

To correct the Apache problem we must first remove the conflicting "httpd" RPM, then re-run EasyApache to ensure a correct Apache installation.

Please advise how you would like to proceed or if you prefer to perform the removal and EasyApache build. Thank you!

I have no idea what this means.
My english isnt that good.
Is there something I must do? Or are the issues fixed?
I can't ask it on my host because he went to bed and he has some n00b on live support that knows less then me.

Please please help!

Your VPS has two web servers installed - the one that came with Cpanel and the one that came with CentOS (your server's OS). The one that came with CentOS is automatically starting up at boot but it won't work with the one that came with Cpanel. He's asking permission to remove the one that came with CentOS so that only the one that came with Cpanel will be installed (and therefore everything will work).

M Bacon
June 5th, 2009, 04:06
Just tell the cPanel tech to fix your problem since you probably don't know what you are doing.

.Bobby
June 5th, 2009, 06:24
Just tell the cPanel tech to fix your problem since you probably don't know what you are doing.

Although that is what he needs, and probably wants to do, the Technician has the responsibility of notifying the customer and respecting his/her wishes in an event like this. No technician wishes to encounter a situation whereby he changes something to, let's say A alternative, which is in good intent for a customer, butd a customer prefers, let's say B alternative - where he'd have to re-do everything, ground up.

sander k
June 5th, 2009, 11:11
My VPS host removed the webapplication and with that he damages Yum & Apache.
So half the VPS stopped working, we moved all our clients accounts out through a cluster to a dedi we own, to do a compleet new install.

Thanks for your answers sirs :)