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

Corey Standish
Corey Standish
14,835 Points

"installing and setting up Wordpress locally" localhost 404 not found

In the video he goes into his htdocs folder and creates a folder, allisongrayce.com, then unzips the wordpress download and pastes the content of folder in allisongrayce.com. Proceeds to type localhost in the address bar and gets Index of/...at the top with allisongrayce.com folder. I did that and I get 404 not found.... I start my mamp server select the folder allisongrayce.com in the htdocs folder, type in localhost again and it skips the Index of/... page and goes directly to "There doesn't seem to be a wp-config.php file. I need this before we can get started." Why????? Zack doesn't go to preferences and selects the allisongrayce.com folder he created or shows that his mamp server was already running!!

Corey Standish
Corey Standish
14,835 Points

Thanks again Kevin, I've done the whole htdoc thing and over and over again. It's just frustrating to do everything as the video shows but see something different! I've gotten to the end of this badge and started the second one and the site doesn't look the same. After I've gotten off the ledge I'll try again from scratch tomorrow. Thanks

2 Answers

Kevin Korte
Kevin Korte
28,149 Points

It sounds from your other question you know have WP going. Correct?

You will always need an empty, clean database, and a user with full permissions to that database, before setting up WP. You will also always have to create a wp-config file, and enter those database credentials into that file.

Personally, I take the wp-config-sample file that will come in the WP download, and resave that as wp-config, add in my 5 lines of settings for my database, and than just go to localhost/whatevermyfileis and from there I will be asked to set up my admin user to log in, I do that, and than log in and I'm underway.

Hope that helps.

Corey Standish
Corey Standish
14,835 Points

Thanks for your patients, but I've deleted folders in the htdocs folder 3 times and started over. Renamed the wp-config file and got a database error. Then I don't rename it and I still end up with "http://localhost/wp-admin/post.php?post=5&action=edit&message=6". I change to "post name" in the settings of permalink, Why is it going to /wp-admin/ after localhost? Should i just go back to the beginning of wordpress and start over? I've missed something again and again and again!
Thanks

Kevin Korte
Kevin Korte
28,149 Points

When you are logged into your wordpress site, it will have the "wp-admin" in the url. Even when you are visiting the front of your site, you won't have exactly clean URLs. You need to completely log out of wordpress, and than visit your site to see how your permalinks are going to look.

Your htdocs folder is your root folder for mamp. Inside of your mamp folder, is where you will make your new folder and name it whatever you want for your project. Inside of that folder, is where you will want to dump all of the wordpress files exactly how you downloaded them.