inetd.info

Everything in one place: databases, projects, photography, links & references

inetd.info RSS Feed
 
 
 
 

Posts tagged hosting

Adding a little protection to wp-config.php

Wordpress get’s hacked a lot so it pays to spend a little bit of time looking at http://codex.wordpress.org/Hardening_WordPress. One thing I’ve looked for is how wp-configĀ  needs to be protected.
Only allow yourself & apache access to the file by doing
chown root:www-data wp-config.php
chmod 640 wp-config.php
And make sure .htaccess in the site root is covering some basics
<IfModule [...]