WordPress.org

Ready to get started?Download WordPress

Forums

Having trouble finding wp-config.php (8 posts)

  1. gfrancisco51
    Member
    Posted 3 years ago #

    I moved my site to another account. Was able to import the old wp database using phpMyAdmin. Was told to put correct info into wp-config.php but cannot find it. Where is this file?

  2. islandBilly
    Member
    Posted 3 years ago #

    I have only been working with wp for three days, but I happen to know that the file is in the root directory of your site. Using phpMyAdmin, I think you will find it under public_html. If you don't find it, is it possible that you only have the wp-config-sample.php file, and not the "real" one from your old site?

  3. gfrancisco51
    Member
    Posted 3 years ago #

    Thanks for your help.

  4. mgregueiro
    Member
    Posted 2 years ago #

    I have the same problem. Was the solution as simple as uploading the "real" file to the public_html folder?

  5. James Kirk
    Member
    Posted 2 years ago #

    Heya mgregueiro,

    Yeah, for most of us the public_html folder is where webhosts have us install WordPress. If you see folders like:

    • wp-admin
    • wp-content
    • etc

    That is where you want your wp-config.php file. Also unless you manually deleted or changed the name of it, wp-config-sample.php should also be there in the root (public_html) directory.

    Hope that helps.

    Cheers! :)

  6. mgregueiro
    Member
    Posted 2 years ago #

    Thanks James!

    But I'm still confused :/

    Here is what I am seeing on my cpanel: http://db.tt/wKMB4A3l

    I developed the site offline, and when I go to my original files wp-config.php is present. I just can't figure out why it isn't showing up in my cpanel.

    Hopefully the linked screenshot will help contextualize my confusion. I have a feeling that I either uploaded my database wrong or am looking in the wrong place.

    Thanks in advance for your help!

  7. fonglh
    Member
    Posted 2 years ago #

    That's not cpanel, that's phpmyadmin.

    What you're looking at is a list of tables in your database, not a list of files you've uploaded.

    You're looking in the wrong place.

  8. James Kirk
    Member
    Posted 2 years ago #

    Heya,

    Yup, fonglh hit the head of the nail. You either need to look in your cPanel app, or if you have FTP access to your site files. wp-config.php is going to be right in the root of your WordPress files.

    Keep after it, you'll find it!

    Cheers! ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.