WordPress.org

Ready to get started?Download WordPress

Forums

Can I move the wp-config file to another server (3 posts)

  1. Digex
    Member
    Posted 2 months ago #

    I am working directly on a server that I do not trust. The database is on that localhost as well. I am the only administrator, however many people have access to the server, ftp and database. The only way I know I can protect my site and wordpress dbtables from being taken is to move the wp-config.php to another location where it can not be read by the same people who have access to the server.

    Can I move the wp-config file to another server?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 months ago #

    The config file only stores the information pointing to the database. It doesn't store all your posts and such. Anybody with access to that server will have access to the database too.

    Backup the database, the files, everything. Just backing up the config file only backs up whatever is in that config file.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 months ago #

    Also, note that WordPress needs to read the contents of that config file to connect to the database. Without it, you have no website.

Reply

You must log in to post.

About this Topic