• Resolved paulcrouch21

    (@paulcrouch21)


    So I was trying to change some things in the WP Database and I accidentally deleted my wp-config.php file. I don’t have cPanel so I don’t know how I’m supposed to get my website back. I use AWS as my hosting.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Assuming you have no backup, copy wp-config-sample.php to wp-config.php and fill in the DB fields with the correct values for your database. Those are the critical lines.

    Thread Starter paulcrouch21

    (@paulcrouch21)

    I don’t have access to the database anymore. I can’t even access the admin side of my website. I do have a copy of my wp-config file though. I just cannot put it anywhere.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Upload it to the root of your website; probably /var/www/html (or something like that).

    What do you mean by “I cannot put it anywhere”?

    Thread Starter paulcrouch21

    (@paulcrouch21)

    There is no database for me to put it somewhere because I cannot access it.

    Could you explain more on how to access the root of the website: https://wilsonplywood.com

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’re asking basic questions that are not WP issues. For help using AWS, it’s best to contact AWS support or use one of their user-based support forums. You’ll need to use SFTP or SSH or something like that to upload the file.

    Hi Paul, you just need to use an ftp client, connect to your website with your ftp username and password and load up the wp-config.php into the root of your wordpress installation.

    Thread Starter paulcrouch21

    (@paulcrouch21)

    I tried that but I couldn’t find the root folder.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Accidentally Deleted my wp-config.php file’ is closed to new replies.