httpd and sql errors....

loststryk

Well-Known Member
Mar 25, 2003
69
0
156
London, UK.
I have reciently bought a new server, cpanel is installed, however httpd and mysql wont run.

these are the errors;

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!

mysql.sock dosent exist, i have checked.

with httpd i get this ;

/etc/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 40 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: undefined symbol: ap_hook_post_config
/etc/init.d/httpd restart: httpd co

i keep editing lines out of the modules but they wont run.

i am runnign centos 4.4, running as stable cpanel (latest version)

i upgraded to sql 5, wont work, downgraded again wont work, have reinstalled apache several times and tried to reconfigure, done a lot of cpupdate --force commands, now i'm truly lost

can anyone help me ?

fruther errors :

# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 40 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: undefined symbol: ap_hook_post_config
/etc/init.d/httpd restart: httpd could not be started
 
Last edited:

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
Although these are fairly easy fixes, your fastest solution is most likely rebuilding apache. If your mysql still will not start afterward, then running /scripts/mysqlup --force should get everything running again.