Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: stefanop039 on March 16, 2019, 10:16:28 AM
-
Good morning
All of a sudden the site is down, I try to access the CentOS WebPanel and it gives me this error:
Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Warning: mysqli_connect (): (HY000 / 2002): Connection refused in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: sh / scripts / restart_cwpsrv
** Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf
Warning: mysqli_error () expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:
I tried to run sh / scripts / restart_cwpsrv but unfortunately nothing happens
I restarted vps I tried service cwpsrv restart but ninte, the file functions.php is encrypted
How can I solve it?
Thanks for your attention
-
Is your database up and running?
-
1) the correct script for execution is
# sh /scripts/restart_cwpsrv
not "sh / scripts / restart_cwpsrv".
2) Did you check your MySQL root password in: "/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php" and "/root/.my.cnf" files, if match..??
Regards,
Netino