Common Errors for ehcp

Most of these errors can be detected whiel tail -f /var/log/ehcp.log
if you care about your server, you should regularly check file ehcp.log, syslog in /var/log by "tail -f filename" in console

Error 1: Syntax error on line xx of /var/www/vhosts/ehcp/apachehcp.conf
Cause: Mostly you have a wrong apache configuration entry in your custom http or apache templates, global template or domain specific template...
Solution:
1- Delete all or your last custom http, you may detect which domain by looking at line xx of ehcp.log
2- if you have domain specific (custom) apache template, edit it, then empty it, it will be reset to global template
3- if you recently changed apachetemplate file in ehcp dir, restore it with original

Error 2:
Error Occured (source:query, caller: )err: query: select * from operations where ((status is null)or(status<>'ok'))and(try<3)and(info<>'') Access denied for user 'ehcp'@'localhost' (using password: YES)

Cause: if it says access denied, then you probably changed or reset mysql ehcp user pass.
Solution:
1- Best, safest but sometime long solution is: re-install ehcp
2- if you know mysql "ehcp" user pass, go to ehcp dir, edit config.php, put right pass there,
if you dont know mysql "ehcp" user pass, reset it using phpmyadmin or like that, then do above line.
3- if you even dont know mysql root pass, do mysql pass recovery: http://www.ehcp.net/?q=node/160

Error 3:
Error Occured (source:query, caller: )err: query: select * from operations where ((status is null)or(status<>'ok'))and(try<3)and(info<>'') MySQL server has gone away

Cause: Your mysql server has stopped somehow,
Quick Solution: on console: /etc/init.d/mysql restart
Long Solution: Additional to quick solution, you should find out why mysql stopped by examining logs..