Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialjorge cerdas
5,023 Pointsroot directory and Wp_config file.!
Where can I find the wp_config file if im using a web hosting?
2 Answers
Karlyn Gibson
9,176 PointsHi Jorge,
Usually with a web hosting service that provides the option to install WordPress, an install wizard is used with cPanel for easy installation. cPanel creates a portal for managing the back-end of your site. To access cPanel, you have to log on to your hosting site. After logging in, there will be a menu/portal (usually in the home tab) that has links to things like "File Manager", "MySQL Databases", "Email Accounts", "phpMyAdmin", etc. For one hosting site I tried, these options were under a Quick Links section. In some cases, you click on cPanel, and then these options appear.
When you locate this general area, click on "File Manager".
There should be a search bar at the top of the File Manager screen, and in it you can type "wp-config" and search.
Once you locate it in the search results, you can usually double click to be taken to the correct file directory.
There should be an option from the File Manager window to download the wp-config.php file to your computer. Once you do that, you have the file and can make adjustments to it. Additionally, some File Managers let you edit the code of the file in them via a Code Editor.
If you edit in the Code Editor, you just have to save the file. If you edit it on your computer, you need to save and then upload the new version via the File Manager.
I've never messed with the wp-config.php file when it was already created with a web hosting service, so I'm not sure if there is a domino affect in doing so. But, at least now you can find the file.
jorge cerdas
5,023 PointsGreat.! Thank you for the explained.! Karlyn!