WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Matthew
    Member
    Posted 4 years 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
    Member
    Posted 4 years 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.

  3. vizou
    Member
    Posted 3 years ago #

    ...then why does the codex say we can, as well as tons of other people writing about securing WP ? Is there another step to having WP find the config file?

Topic Closed

This topic has been closed to new replies.

About this Topic