You can find here a small shell script for securing your SPHPBlog installation on Apache 1.3/2.0 on FreeBSD (and probably any Unix/Linux). Basically, it protect php scripts from beeing modified and any execution of possibly uploaded scripts files in RW directory with htaccess files.