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 trial

WordPress How to Make a Website with WordPress Installing WordPress The Famous 5-Minute WordPress Install

Janise Bradford
Janise Bradford
5,664 Points

WP 5 Minute Installation

When I downloaded the wp files from the wordpress website, I noticed that there was a wp-config-sample.php file but no config.php file.

When I set the database up with all of my credentials, does this process create the wp-config.php or do I still need to make the changes in the sample.php file and save it as a wp-config.php file?

4 Answers

Hi Janise,

Creating the 'wp-config.php' file yourself is optional. After you have copied over the wp files to either your sites root folder or a subfolder you'll want to go and visit that url. The installation script will automatically run and you'll be asked to put in your database information. This process will create the wp-config.php file for you.

Or you can create manually by renaming the file and updating the information in it.

Janise Bradford
Janise Bradford
5,664 Points

Thanks Jason!

I downloaded wp, uploaded files, created a database, and wp came back w/message that it was successfully completed. When putting the site in the browser it does take me to the wp login. After reading the installation instructions at wp.org I thought I had to also configure the php file myself in addition to all the other steps in the 5 min install video. Apparently not the case. Thanks so much for your help. I do want to get familiar with how to edit a config.php but I'll tackle that another day.

Thanks again!

You can do one of two things. You can either rename wp-config-sample.php to wp-config.php and use that, or simply duplicate the sample file, rename it wp-config.php and do it that way.

Janise Bradford
Janise Bradford
5,664 Points

I went through the video for the 5 min install and created the database and wp came back as having been successfully installed. However, I haven't done anything to the sample file, or created a wp-config .php file. So is it ok to do this step after wp installation?

So do I need to add any information to the sample file other than renaming it since the database information has already been submitted and accepted?

I'm not sure which step of the process you're at right now.

Have you gone through the installation script where you are asked which language and you enter the databases credentials and create an admin account?

Are you developing this locally or on a web hosting account?

Janise,

You should definitely familiarize yourself with the details of wp-config, even though you seem to have it working with the credentials entered. https://codex.wordpress.org/Editing_wp-config.php

Janise Bradford
Janise Bradford
5,664 Points

Thanks Mike, I actually have spent quite a lot of time on the wp edit wp-config.php page today trying to figure this out. Looks like wp was installed successfully, so I'll conquer the php editing another day. Thanks!