Posts

Showing posts from October, 2010

Restart Apache 2

Command to restart apache2 on my development server. /etc/init.d/apache2 restart

Running log view

Show mysql errors: tail -f /var/log/mysql/mysql-error.log Show php errors: tail -f /var/log/apache2/error.log Paths specific to my development server.

Show large files - Linux

Specify the directory to list large files in du -h | grep '[0-9]G' and it will output size in GB and the path. Like so: 77G /var/lib/mysql 77G /var/lib 68G /var/log/mysql 69G /var/log 146G /var