
If you can’t find it, contact your web host and request for your credentials. You can find your FTP credentials in your web host dashboard. Time to use FTP and get down to business:

If you don’t have access to cPanel you can use an FTP client to do it instead. Method 2: How do I Use FTP to find wp-config.php You will find the wp-config.php in this folder. Step 4: Head over to the ‘public_html’ folder: You will see a number of files and folders populated on the page. The cPanel is your website’s control panel that you can access through your web hosting dashboard. Method 1: How do I access WP-Config.php without FTP? We recommend using a precaution before doing this, but we’ll talk more about that later. Note: Neither of these methods is totally safe. Let’s give you a walkthrough of how you can find the wp-config file: We highly recommend using BlogVault to take a backup. So, just take the time to use a WordPress backup plugin first. In other words, if you mess something up, you will end up breaking your site.
#Php find word in file pro
> Pro Tip: Before we start editing the wp-config.php file, you should know that this is a core WordPress file.

#Php find word in file download
Once you locate the file in the root directory, you can download wp-config and edit it using a text editor like Notepad. Or you can right-click the file and edit the file inside cPanel directly. You can find it using two different methods: The wp-config.php file is located in the root folder of your WordPress website. This is going to be super actionable, so let’s dive right into it. To level up your WordPress website’s security.Īlso, there’s going to be a section on all the different things you can do to improve your website security by editing one PHP file. So, how do you edit the wp-config file safely? You’ve probably heard that it can be dangerous to edit a WordPress core file too. Is editing wp-config.php turning out to be way too complicated without a security team? Is your boss breathing down your neck, telling you to edit the wp-config.php file for “security reasons”?
