Apache, MySQL, Bind, FTPd Fail on Reboot

Woogs

Member
Jul 22, 2003
23
5
153
All 4 of these services fail on my server when I reboot it but start backup automatically when it retrys.

Here is my Apache Error

[email protected] [/etc/httpd/logs]# tail -100 error_log
[Mon Aug 25 21:01:39 2003] [crit] (98)Address already in use: make_sock: could not bind to port 443
[Mon Aug 25 21:01:39 2003] [notice] Apache/1.3.28 (Unix) mod_auth_passthrough/1.6 mod_log_bytes/1.2 mod_bwlimited/1.0 PHP/4.2.3 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.7a configured -- resuming normal operations
[Mon Aug 25 21:01:39 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Aug 25 21:01:39 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Aug 25 21:01:59 2003] categories: DBI connect('dbname=a1disvit_store','a1disvit',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at ./ShopModules/SQL.pl line 25
Can't call method "disconnect" on an undefined value at ./ShopModules/SQL.pl line 31.
Compilation failed in require at categories line 13.

cPanel.net Support Ticket Number:
 

Ben

Well-Known Member
Aug 19, 2002
75
0
156
could not bind to port 443

Means Apache can't bind to port 443, so it fails. To fix - as root do

netstat -anp | grep :443

You should get something that looks like this

tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN PID #/httpd

We are primarily concerned with the bold part. As root again, do

kill -9 PID

Run netstat -anp | grep :443 again and make sure nothing else is showing up, and if it is, kill those processes also.

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

Woogs

Member
Jul 22, 2003
23
5
153
That is correct, but that is no solution to my problem. The 4 services will start up automagically eventually, it is just the first time after a reboot they all fail so I get 4 pages.

cPanel.net Support Ticket Number:
 

drackox

Active Member
May 6, 2004
32
0
156
Dallas
I get the same problems with BIND, Apache, and FTPd...

how do i fix it?

It works after it automatically restarts... but I keep getting the notices if the server gets rebooted...

also, after it restarts, all the functions seen normal and working but in the serverstatus i keep seening the big red dot... service failed...
eventhough it works..


what do i do?
 

asmar

Well-Known Member
Jul 16, 2004
135
0
166
some problem here

Same problem to me, any one with a solution???

Many thanks


drackox said:
I get the same problems with BIND, Apache, and FTPd...

how do i fix it?

It works after it automatically restarts... but I keep getting the notices if the server gets rebooted...

also, after it restarts, all the functions seen normal and working but in the serverstatus i keep seening the big red dot... service failed...
eventhough it works..


what do i do?