Apache

UTF-8 and apache - mysql - php

Settings a LAMP server to work in full unicode UTF-8 :

Installing PHP APC (Alternative PHP Cache) on Ubuntu

Installing alternative PHP cache can greatly improve the speed of your PHP scripts by keeping a compiled version of your scripts in the ram. Installation was done on Ubuntu 8.04 LTS server with a pre-existing apache/php/mysql setup. Run the following commands :

Deny or allow countries with Apache htaccess

The following script is using blogama.org IP geolocation API to automatically generate Apache htaccess file to deny or allow specific countries. You can put this script under crontab and the htaccess rules will be automatically updated. Also, it can update multiple htaccess files.

Simple bash script to monitor your webserver remotely on different ports

Simple bash script to monitor a webserver on different ports (here smtp, dns, http & https but it can be customized) I'm sure there is over 100 available programs doing this but I wanted something with small memory usage. Also, I only wanted to be notified once, notifications are receive by SMS on my cell. With the software I was using before, I was getting notified every minute until I could reach a computer and fix the problem or stop monitoring which was quite annoying.

Creating SSL key with CSR file for https

Creating SSL keys is pretty basic but I wrote it here not to forget it :)

Reducing apache log size

Maintaining an Apache2 webserver takes a bit of fine tuning to get everything just how I like it. Apache has excellent logging capability and these logs, if properly maintained are an excellent information resource for any administrator.