If you are installing WordPress manually you’ll need to edit your wp-config.php file so your WordPress files connect to your database. If you have installed WordPress using cPanel script for one click installation provided by a WordPress web host then you won’t need to access your wp-config.php file..
If you ever have a problem with your wp-config.php file and are using any of these web hosts then i know for a fact they will help you fix the problem and are trained and experienced in respect of the WordPress file system.
Use the wp-config.php sample file to create your own wp-config file if you are installing WordPress manually. You can edit your wp-config.php file and/or sample file using the built in text editor in your cPanels File Manager or download it to your local machine and edit it there after which you’ll need to upload it again.
How To Edit Your wp-config.php file Using File Manager
Login to your cPanel and locate the file which is located in your public-html
Click on your wp-config.php file and highlight it like in the above screen shot. Right click and either click Code Edit or Download.
You may need to edit this file if you are moving WordPress to a new host, domain or server manually or installing WordPress manually. When you install WordPress using an automatic one click installation script, it creates a wp-config.php file for you.
The wp-config file is NOT included in a manual download of WordPress so you’ll need to use the wp-config.php Sample file and edit it with your database settings.
You can view a complete copy of what a wp-config.php-Sample File looks like here.
The information you will be setting is as follows:
- Database Name – Database Name used by WordPress
- Database Username – Username used to access Database
- Database Password – Password used by Username to access Database
- Database Host – The hostname of your Database Server
These fields which need to be set look like this:
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
You should have saved this information when you created a new database for WordPress using the MySQL Database Wizard in your web hosts cPanel.
The last settings ‘local host’ should not need to be changed unless your web host uses another name. I know Bluehost & Hostgator use localhost for the hostname so you can simply leave this setting unchanged if you are also using either of these 2 web hosts.
There are other advanced settings you may need to edit at some stage down the track however your database settings are edited most often.
Leave a Reply
You must be logged in to post a comment.