This will include some notes on Debian server admin and maintenance.

I’ve not filled this area in yet, but this system monitor application and script dropped into my inbox:

Apache Config

Just the little things that I keep forgetting:

Use mod deflate to reduce the bandwidth used, check the Apache docs, but this site on web performance is easier to understand.

MRTG script

From this thread, the steps are:

  • apt-get install mrtg
  • take this guys mrtg.cfg
  • then all you do is add a cron job to run (/usr/bin/mrtg /etc/mrtg.cfg) every 5 mins

dumps to /var/www/mrtg

Take mrtg.cfg and the system script, generates what is needed

Run with
/usr/bin/mrtg /etc/mrtg.cfg

Setting up modern LAMP on Debian

Setting up a LAMP server on Debian Sarge, with Apache2, PHP5, MySQL5, phpMyAdmin, Smarty, and ADODB. It covers installation and just enough sample code to test everything. Not strictly the ‘Debian way’, but close.


Testing optimisation.

MySQL Presentations: Optimizing MySQL.

File permissions

Useful tip from a friend, set the permissions to yourself as owner, and www-data as the group:

/home/username/public_html/# chown -R username:www-data ./

Then set the permissions to 2750, which allows you full access, the server read access, and uploading to the directory will set the group as www-data:

/home/username/public_html/# chmod -R 2750 *

You may then have to give www-data write access to folders like wp-content for the caching and file uploads.

Leave a Reply

Your email address will not be published. Required fields are marked *