Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: Farukh Khan on October 21, 2015, 10:16:41 AM

Title: Another bug detected on a fresh install
Post by: Farukh Khan on October 21, 2015, 10:16:41 AM
After a Fresh CentOS 6.7 Install and a fresh latest CWP 0.9.8.9 install I am facing this error on CWP login each time I reboot my server :

Warning: mysql_connect(): No such file or directory in /usr/local/cwpsrv/htdocs/admin/index.php(1) : eval()'d code(1) : eval()'d code on line 2
mysqld (pid 1136) is running...

Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: service cwpsrv restart

**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf

Could not connect: No such file or directory


After I get this if I wait a couple of seconds the page reloads and then brings back the normal CentOS Login Panel. It happens just only once after each reboot. Then everything becomes fine. Just wondering where the error could be.

CWP admins please help me solve this error. Or if it is a bug then please fix it in the nxt release.


Thanks in advance...
Title: Re: Another bug detected on a fresh install
Post by: Administrator on October 21, 2015, 07:27:28 PM
looks like you have some different version of mysql ?

This error means that mysql is NOT started on the server boot.
You should check in the CWP.admin --> Chkconfig and there enable automatic startup of your mysql.
Title: Re: Another bug detected on a fresh install
Post by: Farukh Khan on October 21, 2015, 09:16:01 PM
Thanks that solved the problem.