≡ Menu

log directory

Linux / UNIX: PHP mail() Error Log File

How do I view PHP mail() errors? How do I see php mail() error log file under UNIX or Linux?
[click to continue…]

OpenSuse Linux: How to Read Logs (Log Files)

How do I read and/or view logs files under OpenSuse / Novell Enterprise Linux?
[click to continue…]

How To Limit The Growth Of UNIX / Linux Log Files

Q. My log files grow continuously. How do I limit the growth of UNIX log files stored in /usr/spool/ or /var/log/ directory?
[click to continue…]

How do I watch, monitor system log under FreeBSD operating systems and generate summery of critical UNIX log files via email?
[click to continue…]

Q. How do I install sar command under FreeBSD to collect, report, or save system activity information? How can I setup freebsd accounting?
[click to continue…]

I am a new Linux user. I would like to know where are the log files located under Debian/Ubuntu or CentOS/RHEL/Fedora Linux server? How do I open or view log files on Linux operating systems?
[click to continue…]

MySQL error 28 and solution

Q. I am getting an error that read as follows:

MySQL: got error 28 from server handler

How do I fix this problem?

A. This error means no space left on hard disk. According to official MySQL docs, "If you get his error, you need to check all filesystems where MySQL operates. It may be single filesystem or as we recommend you can have datadir, tmpdir and log files split into dedicated filesystems."

Solution

a) Stop mysql server
# /etc/init.d/mysql stop
OR
# /etc/init.d/mysqld stop
b) Check filesystem and /tmp directories:
$ df -h
$ cd /tmp
$ df -h /tmp

c) Remove files from /tmp to free up space:
# cd /tmp
# rm -rf *

d) Look into /var/log directory and remove or compress logs file.

e) Use myisamchk command to check and repair of ISAM table:
# cd /var/lib/mysql
# myisamchk

f) Increase disk space (add new hard disk or remove unwanted software(s) )

g) Start the mysql server:
# /etc/init.d/mysql start
OR
# /etc/init.d/mysqld start