Forums

Moving wp-config.php to directory above (2 posts)

  1. bodhidharma74
    Member
    Posted 1 month ago #

    The Hardening WP Codex http://codex.wordpress.org/Hardening_WordPress#Securing_wp-config.php says you can move your wp-config.php file to the directory above your WP install.

    When I move mine out of my /public_html folder and place it in the directory above I get the following error,

    There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

    What am I doing wrong?

    Thanks

  2. MichaelH
    moderator
    Posted 1 month ago #

    Your web-root folder is public_html, and if WordPress is installed in your web-root folder, you can't move wp-config.php any 'higher' in the directory structure.

Reply

You must log in to post.

About this Topic