Archive for the ‘apache’ Category

Print the IPs which have more than 1000 hits

Posted: 11th May 2010 by Valkyrka in apache, bash

Here is how you can print the IPs ( fetched from the access_log of Apache ) which have more than 1000 hits : Additionally, you can change 1000 to your desired value.

I just installed FreeBSD today and while trying to start up Apache, I got the following error message : A quick search on Google revealed the fact that this issue can simply be resolved by running the following command : In order to make this change permanent, simply edit /boot/defaults/loader.conf and add the following line [...]

Small script to restart Apache if it's not running

Posted: 29th April 2010 by Valkyrka in apache, bash

This is a *very* small script which I wrote that checks if Apache is running and, if not, it starts Apache :