Archive for the tag 'error'

SBDavid

PHP Error Handling and Logging

PHP Error Handling and Logging

Display_startup_errors

Even when display_errors is on, errors that occur during PHP’s startup sequence are not displayed. It’s strongly recommended to keep display_startup_errors off, except for debugging.

These are functions dealing with error handling and logging. They allow you to define your own error handling rules, as well as modify the way the errors can be logged. This allows you to change and enhance error reporting to suit your needs.

With the logging functions, you can send messages directly to other machines, to an email (or email to pager gateway!), to system logs, etc., so you can selectively log and monitor the most important parts of your applications and websites.

The error reporting functions allow you to customize what level and kind of error feedback is given, ranging from simple notices to customized functions returned during errors.

HTTP Error 502 Bad Gateway, 503 Service Unavailable

This error is usually due to improperly configured proxy servers. However, the problem may also arise when there is poor IP communication amongst back-end computers, when the client’s ISP is overloaded, or when a firewall is functioning improperly.

The first step in resolving the issue is to clear the client’s cache. This action should result in the a different proxy being used to resolve the web server’s content.

503 Service Unavailable

This error occurs when the server is unable to handle requests due to a temporary overload or due to the server being temporarily closed for maintenance. The error signifies that the server will only temporarily be down. It is possible to receive other errors in place of 503.

SBDavid

cpdavd error and license log file

cpdavd error and license log file.

cpdavd_error_log
— A file that contains a record of errors that were encountered by cpdavd. This file can be found at /usr/local/cpanel/logs/cpdavd_error_log.

license_log — A file that contains a record of errors that were encountered when cPanel checked its license. This can be found at /usr/local/cpanel/logs/license_log.

When customer tries to see statistics from watchdog, an error message appears

Internal error: failed to adjust system time in accordance with daylight savings time change.

Also Watchdog’s cron job reports the error

ERROR: WDExc
Error occurred while processing database query: ‘MySQL query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘group by service_id, type, round(unix_timestamp(time) / 7200, 0) having count(va’ at line 3′

To resolve this issue.
Unzip Parallels Plesk Panel version pack-sysstats and replace the file located in /usr/local/psa/libexec/modules/watchdog/cp/
http://kb.parallels.com/Attachments/14807/Attachments/pack-sysstats-for-9.5-10.zip
Unzip Parallels Plesk Panel version stats-graph and replace the file located in /usr/local/psa/admin/htdocs/modules/watchdog/
http://kb.parallels.com/Attachments/14807/Attachments/stats-graph-for-9.zip

Reference: http://parallels.com/

Wrong certificate error when I open any domain via HTTPS.

Look into /etc/httpd/conf.d/ssl.conf for the line like:

VirtualHost _default_:443

If it exists you have to delete/comment this default SSL virtual host starting from the
“VirtualHost _default_:443″ line and ending with “/VirtualHost”.

Then stop and start (not restart!) Apache server.

/etc/init.d/httpd stop && /etc/init.d/httpd start

Reference : http://parallels.com

Next »