How To Easily Install WordPress On Your Local Machine
Installing WordPress on your local machine comes with many advantages. For one, you can test out any plugin before you install it on your live website, another reason is that you can basically have an exact copy of your website running on your local machine which you can perform various tests on the database and what not.
Well, lets get right into it.
What you will need:
Since I use Windows to code (so what? I develop in .NET also 😛 ). I will go through doing this for Windows, if you’re on Mac you can check out this tutorial.
Download your copy of WordPress and then unzip to your desired directory.
Download and install EasyPHP, it’s a simple install.
Start up EasyPHP and make sure both Apache and MySQL is started:
Note with Apache: By default Apache and skype share the same port. You will have to either change skype’s port or close it for Apache to start up.
Ok you got this far, let’s just get straight into the video 😀 you can always refer to the article if you are unsure about something I did in the video.
Go to your web browser then enter “localhost”, if that doesn’t come up then try “127.0.0.1” (No place like home!). If Apache is started up then you should have a screen with some folders, click the house icon to the top which will lead you to EasyPHP’s config page:
On the next screen, click “Open” to the right of the modules row:
Create a Database on your local machine for your WordPress installation via phpMyAdmin. After clicking Open a new window should have opened up with phpMyAdmin (don’t worry if you don’t understand everything you see).
To the left will be a list of the MySQL databases on your local system. There might not be any in your case, click “New” to create a local database:
Give it a simple name (because it’s a local installation), don’t worry about the “collation” too much, just click create:
Great! Now we have our database, all we need is change a few lines of code in WordPress source files to move on.
Head over to where you extracted WordPress to. Within the folder find the file called “wp-config-sample.php” (if you don’t have extensions turned on then this will just be called “wp-config-sample”), open this file to edit it using your text editor, if you do not have a code editor like NotePad++ then you could just use normal Notepad. The code will look all jumbled up on normal Notepad but I will demonstrate both.
In both cases find the lines which say:
define('DB_NAME', 'database_name_here');define('DB_USER', 'username_here');define('DB_PASSWORD', 'password_here');
For Notepad the file will look like below, find the parts highlighted:
For NotePad++ the file will look like this:
On the line of code which says 'database_name_here' Please substitute this for the name you set in Step 4. For 'username_here' set this to 'root', for 'password_here' just clear it out and leave it as
Your file should look like below except with the database name you entered in Step 4.
Save the changes then rename the file to “wp-config”, “wp-config.php” if you have extensions for known file types turned on in Windows.
Now that you have your configuration set up we’re a little closer to “installing” WordPress.
Your WordPress Folder should look like this:
You will not see .php if “show entensions of known file types” is not turned on. Copy the entire WordPress folder then go to:
C:-->Program Files(x86)-->EasyPHP-DevServer-14.1VC11(the version number might have changed if you're from the future)-->data-->localweb
Paste the WordPress folder in this directory, you could rename the folder to anything you want, but be sure to not include spaces in the folder name.
Go back to your browser and type in localhost again, this time you should find that there is a new folder which is the one you just pasted. If you followed all steps properly then when you click on this folder you should get a WordPress install screen.
Click “Continue” to proceed to the next page. Give your local install a title, username, password, e-mail then click “Install WordPress”.
WordPress should now be successfully installed on your PC! Login to your dashboard and everything will be just as familiar.
Let us know how this setup went for you in the comments below!
How To Easily Install WordPress On Your Local Machinehttps://tutbakery.com/how-to-easily-install-wordpress-on-your-local-machine/https://res.cloudinary.com/tutbakery/image/upload/v1450632968/Install%20wordpress%20on%20local%20machine/hunger-413685_640.jpghttps://res.cloudinary.com/tutbakery/image/upload/c_crop,h_426,w_426,x_107,y_0/h_150,w_150/v1450632968/Install%20wordpress%20on%20local%20machine/hunger-413685_640.jpg WordPress