Using Local Host for WordPress websites

Using Local Host for WordPress websites

This is probably the most fun you can have if you want to start using Local Host for WordPress websites  on your computer and then be able transfer them to the internet! You will need 3 software programs to make this work.

I recommend Mozilla Firefox because everyone needs a second browser and as you will see when you install Wampserver it works smoothly with it.

Notepad++ logo Notepad ++. If you are just starting out editing code you will find that this is very easy to use and has some built in features that greatly assist you! Both of these programs are free and part of the open source movement. Next up you will need to download and install Wampserver from Apache. It is available at no charge. Armed with these 3 programs you are ready to take the plunge into using Local Host for WordPress websites. After the program installs, you will see that there is file directory under Wamp called www and this is where your websites and the necessary files will be installed. You can download a version of WordPress and then copy the content to the websites that you will name here. I am going to use “newdatabase” as my Local Host website name.

WampServer logoAfter you install Wampserver, you must left click on the tray icon to bring up the following menu. Start the phpMyAdmin. phpMyadmin icon This will bring up the MYSQL page where you can create a new database. Enter the name of the “newdatabase_db” (it is common to add _db to the name you choose) and click on the create button. Now you will choose the Privileges tab and follow these steps to create a new user. It is helpful at this point to have Notepad++ or the text editor that you usually use available.

database screenshotOpen the wp-config-sample file in your text editor and rename it as wp-config.php. In this file enter “newdatabase_db” as the DB NAME and ‘newdatabase” as the user name. In MYSQL enter newdatabase as the User name and select Local in the Host field. Click on Generate Password and copy the information into the wp-config file for PASSWORD. Choose the Check All option in Global privileges and scroll down and click Go.

Using the text editor, locate Authentication Unique Keys and Salts and then do the following.

Scroll down to Line 45 (in Notepad++) and note the fields (8) marked for Authentication Unique Keys and Salt as these need to be replaced. If you are using an older version (pre WordPress 3.0) you will not see fields with SALT in them. Use the same procedure for the (4) lines you need to replace.

Read the text on Line 40 and cut and paste the https://api.wordpress.org/secret-key/1.1/salt into your browser. This will generate new codes for the fields. If you are using an older version (pre WordPress 3.0) you will not see fields with SALT in them. Use the same procedure for the 4 lines you need to replace.

Copy and Paste this code over the original files and save all your changes!

Open your browser and type the following command http://localhost/newdatabase.

You should see the Welcome to WORDPRESS screen.

Now you can start Using Local Host for WordPress websites!

Terry Heenan

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment