by JCSeptember 17, 2008
Rocket Fuel
I’ve learnt quite a lot about Linux server administration in the last year or so. I had found this subject complicated and inaccessible, but recently it’s been a lot more fun and easy to understand. This is entirely due to Slicehost, my all-time favourite hosting company.
Slicehost offer basic ’slices’ (IP address, storage, bandwidth and RAM) [...]
Tagged as:
linux,
server admin,
slicehost,
sys admin
Read the full article →
by JCSeptember 16, 2008
Settings
Ubuntu Hardy Heron Server comes pre-installed with a program called logrotate.d. Once you understand how this works log rotation for your Virtual Hosts is easy.
First, edit the log rotation parameters:
sudo nano /etc/logrotate.d/apache2
The standard contents of this file is:
/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 restart > /dev/null
fi
endscript
}
I simply copy and paste [...]
Tagged as:
apache,
linux,
log files
Read the full article →