By benoit.borrel on
Hello,
In order to secure my D5 installation, I would like to:
- Encrypt settings.php
- Move settings.php outside the web host document root
Has anyone any idea on how to realize the above 2 modifications?
Thanks in advance
Comments
your file permissions,
your file permissions, coupled with a .htaccess file denying all to access settings.php should secure it sufficiently. What attacks are you looking to defend against? as for moving the file outside your webroot, you could edit includes/bootstrap.inc, function conf_dir (line 232) to hard-code in your configuration directory.
Here's what I did
I copied my settings.php file to my user directory e.g. /home/mywebsvrusr/settings.php. Next I deleted the contents of settings.php and put in
Works like a charm!