Deprecated: Function set_magic_quotes_runtime() is deprecated in D:\cowking\trakanon.com\stash\wp-settings.php on line 18 Securing your wp-config.php file for Wordpress 2.7.1 | Trakanon Code

Securing your wp-config.php file for Wordpress 2.7.1

Error: How do I secure my wp-config.php file for Wordpress 2.7.1?

Solution: Create another php file in a non-web-accessible location on your server’s hard drive. Copy all the sensitive data from the wp-config.php into your new file. Then, at the top of the wp-config.php file, require_once the new php file you just put all the sensitive info into (code: Require_Once(’PATH/newfilename.php’);). This will prevent anyone from outside the web server from accessing the sensitive info in wp-config.php

For a more in depth example of different methods, visit: http://www.devlounge.net/code/protect-your-wordpress-wp-config-so-you-dont-get-hacked

April 15, 2009 • Tags: , , • Posted in: PHP, Wordpress 2.7.1

Leave a Reply