Knowledgebase

Back to Troubleshooting

How To Enable Site Manager Logs


These instructions require access through SSH. Please see this article for assistance in connecting via SSH:

http://kb.westhost.com/questions/645/Connecting+with+Putty+via+SSH



mail log
: Change the LogLevel value in /etc/mail/sendmail.mc and then run:
     m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

POP mail server log:

  • edit the /etc/.qpopperoptions,
  • uncomment the first line, and change “set log-facility=local7” to “set log-facility=mail” and it will log to the mail log.
  • If you want it somewhere else, instead of “mail” set the log-facility to “local0” and it will log to /var/log/messages

Procmail log: edit /etc/procmailrc, change LOGABSTRACT to “yes”, then add the line “LOGFILE = “/var/log/proc”

MySQL log: edit the /etc/my.cnf, add the line “log = /var/log/mysql.log”, then restart MySQL

MySQL slow query log:

  • edit /etc/my.conf, add the following lines:
  • log-slow-queries = /var/log/mysql-slow-query.log
  • log-long-format
  • long_query_time = 3
  • log-queries-not-using-indexes

PHP:

  • edit /etc/php.ini,
  • change log_errors to On,
  • then uncomment the line “error_log” and set the path you want to log to, /var/log/php_errors is a good one to use.

Related Articles

My Emails I Send Are Being Received In The Junk Folder
Can I Backup My Outlook Mail Data
How To Change An Email Account Password
How To Change An Email Forwarder Into Full Email Account
How To Create An Email Account

Can’t Find what you need?

No worries, Our experts are here to help.