Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
I'd like to cover installing and working with WordPress locally on a Windows machine as well. So, I'm here in Windows 7. I'm going to open up our web browser. Now on the Mac, we went to and used a tool called MAMP, which stood for Mac, Apache, PHP, and MySQL. On Windows, we're going to use a tool called WAMP. So we can just do a search for WAMP. The first result here is wampserver.com. That stands for Windows, Apache, MySQL, and PHP. So this is free.
You can download it and install it. I've already done that. That puts a little thing in your Task Tray here, this little WAMP Server. It says server offline. I can click that and click Start All Services. That's going to startup all of those local servers that we need running for us here. I'll go back into our web browser, and then I'll browse to localhost. That's where our local environment is going to be. You can see, it says "Howdy, folks" here in the browser. So where is that coming from? I'm going to open up our Computer, and browse to our local C drive where we have WAMP installed.
Open up the WAMP folder, open up the www folder. Within that is this index file. So if I right-click that, and go Edit with Notepad++. That's the text editor we'll be using. There is just one line of PHP in here. It says echo 'Howdy, folks!.' Now that's proving to us that PHP is working and that this www directory is the root that we're going to be working with. Now in this root is where we want to install WordPress. So we need a copy of WordPress to install.
We open a new tab here, and go to wordpress.org where we can download the latest, greatest, freshest copy of WordPress that we can get. Click the Download button. Then I'm going to right- click and say Save Target As. It's going to download. I'm going to download it into our Documents folder here, and let that go. It's pretty quick download here. We're going to open it up when it finishes, and we'll be able to see all the files that are a WordPress installation.
Now I am going to need to move those into our root, our document here. So let me minimize our browser window here. This is our root for localhost, and these are the WordPress files we just installed. So let me select all and drag those over here. It's going to copy them over here. It might give us a little grief in two seconds, because there is already an index.php file over here, and WordPress has its own. So I'm going to make sure to replace the one that WordPress comes with.
Now there is this file called wp-config-sample. Ultimately, we're going to have to remove the -sample from that. WordPress needs a wp-config file. So I'm going to say Rename. I'm going to remove the -sample from it. That's the file where we're going to put our database connection info into. So now that this is here. If we go back up to the web and we reload our localhost, it's going to give us some grief about establishing a database connection, because we don't have a database yet for this.
Now we can manage databases with WAMP. I'm going to open up the System Tray. Go under this WAMPServer thing here and go up to phpMyAdmin. That's a browser-based tool for dealing with databases. It comes with that WAMP download that we downloaded. I'm going to make a new database. So I'm going to under Databases, say Create new database down here, and just call it wordpress. Create. That's really all we need to do. We've created this database for WordPress.
Let me just look under Privileges quick. There is one user. It looks like there are two users here, our localhost user. We're going to go ahead and Edit and make sure that it doesn't need a password, and hit Go. Now we can close that out. We've done all we need to do with the database. We're going to edit that wp-config file. I am going to hit Edit with Notepad++. Open that up. Change the database_name to what we just created, wordpress.
Change our username to root. Then we said no password. So password can go away. Then we'll hit Save. Come back out to the web. Reload the page. It should be able to connect to that database and show us our install screen. So that's proof that we did our job good. So to install, we'll just call our site Widget Corp. Make a user for myself. Pick a nice strong password. Enter my email.
Leave the checkbox checked asking us about search engines. Click Install WordPress. It goes really, really quick. It installs the database tables in there. I'll click the Log in button. Enter my username and password that I just created. Log in. That's it. Internet Explorer is asking me if you want to save the password. You can just click No for now. We're looking at the WordPress dashboard. So WordPress is installed, and we're ready to go. I can click the title of the site up here, look at the front end of the site, and isn't that pretty? We have a locally running version of WordPress on our Windows computer.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98482 Viewers
61 Video lessons · 85764 Viewers
71 Video lessons · 69669 Viewers
56 Video lessons · 101993 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Your file was successfully uploaded.