Wednesday, April 20, 2011

Few Error Logs and solutions

Template Error: The template file must be given

Error : Template Error: The template file must be given

Solution : The problem due the cpanel default page missing on the server so you can reset the default page setting by using following steps …

WHM Main >> Account Functions >> Web Template Editor > Revert to Default

Once done you will again see the cpanel default page.

If you are facing this error on number of domains then you need to add the apache conf entry for that domain manually into httpd.conf file.

Manager of pid-file quit without updating fi

Error : Manager of pid-file quit without updating fi

Solution : When try to restart the mysql service on the server then above error is generated.

This problem is occurred due the “mysql ” database crashed and should be repaired but the mysql is already stopped on the server so you need to use the following command to repair and optimize the database when mysql service is down on the server.

For Repair “mysql ” database

# find /var/lib/mysql/mysql -name '*.MYI' -exec myisamchk -r {} \;

For Optimize the database

# find /var/lib/mysql -name '*.MYI' -exec myisamchk -o {} \;

Then

# ps -ef | grep mysql

# killall -KILL mysql

# /etc/init.d/mysql stop

# /etc/init.d/mysql start

DB Error: connect failed in horde

Error : When try to access the Horde from cPanel then it shows following error.

Warning: fopen(/var/cpanel/horde/log/horde_0.log) [function.fopen]: failed to open stream: Permission denied in /usr/local/cpanel/3rdparty/lib/php/Log/file.php on line 216
A fatal error has occurred

DB Error: connect failed

Details have been logged for the administrator.

Solution: The problem due to the ” Horde Groupware Webmail Edition detected ” means when you have try to update the Horde by using following commands

root@server[~]# /usr/local/cpanel/bin/update-horde --force

Then it shows the following error

!!! Horde Groupware Webmail Edition detected !!!
Install or update of standard Horde Webmail is disabled.
Horde Groupware Webmail was installed with cPanel 11.25.1.
Downgrades of Horde are not permitted due to MySQL differences.

Then you need to move the file

root@server[~]# mv /var/cpanel/horde/groupware_version /var/cpanel/horde/groupware_version-bak

After that run following commands

root@server[~]# /usr/local/cpanel/bin/update-horde --force

Request exceeded the limit of 10 internal redirects

Error : Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace

Solution : When access the domain and the domain not shows the content and the server logs shows the above error then you need to add the following code in .htaccess file.

RewriteCond %{ENV:REDIRECT_STATUS} 200

Or
If you are facing this problem for the addon domain then add the following Rewrite rules in main domain .htaccess file.

RewriteCond %{HTTP_HOST} ^(www\.)?addon_domain\.com
Rewriterule .* – [L]