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

Problems installing Wordpress locally. PLEASE HALP!

I'm an aspiring WordPress developer. I'm trying to get WordPress installed locally for the first time. I'm using a PC running Windows 7, I have the latest version of XAMPP installed and was following the Team Treehouse tutorial to get WordPress installed locally.

When I get to the WordPress install screen where you enter your site title and user name and whatnot, after I hit the "Install WordPress" buttom at the bottom the next page loads and is just a WordPress logo with an empty white container div under it instead of the success screen I'm supposed to see.

Here's a screenshot of the page I get: http://s3.postimg.org/ld11oo0wj/unnamed.jpg

But when I try and go back or refresh the page I get a page with this message:

"You appear to have already installed WordPress. To reinstall please clear your old database tables first."

So I go to the WordPress log in page for my site and try to log in and it tells me my user name and email are invalid? Somebody please help.:-(

I've tried deleting and re-downloading Wordpress and have re-tried to follow all the steps carefully 3 times and the exact same thing happens each time. I don't know what I'm doing wrong. :-/

4 Answers

try to login to your phpmyadmin by typing localhost/phpmyadmin or 127.0.0.1/phpmyadmin on your browser and login using your credential and clear your wordpress tables there.

here is the video to drop wordpress tables in phpmyadmin :

http://www.youtube.com/watch?v=G2jXzFWOAAk#t=57

I just tried doing that and the same thing happened :-/

Hi TJ, I am using the same OS and XAMPP as well. I am running local WordPress installations OK. I suggest getting into phpmyadmin via the XAMPP control panel.

WP will look for the prefix you tell it to look for per WP installation and if it finds one ( it should not on a fresh install of WP) it will say WP is already installed.

You need to click "Start" for MySQL. Then click "admin".

From there you should be able to see the database that WordPress installed. Click on the database. The tables have a default prefix if you did not change it For multiple installs, you need unique prefixes.

look for wp_comments, wp_posts. All of that. i believe "WP_" is the default.

Deleting the WordPress tables will give you the fresh start that you want.

Is this your first install?

I ran into trouble when I set a localhost or root password for MySQL. If your OK with it. I would just use the root username with no password. These can be changed through XAMPP.

This could take a couple of replies back and forth.

Also, navigate to your wordpress files. look for "wp-config.php" Looking at the notes and variables should help you understand what is going on as well.

If there is not a wp-config,php look for wp-config-sample.php. These are the files that save your installation information.

I just tried doing that and still the same thing happend :-/

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi, were you able to resolve this problem TJ Bear ?