Instructions: How to host a WordPress website locally on your computer.

If you planning to launch a WordPress website soon, it is important to play around in other to master the platform very well, so that when you go online, you won’t get lost.

NB: When you host a website locally, Nobody will be able to view the front-end except yourself, and the computers on the same network with yours.

How to host a WordPress website locally: Getting started…

To start with, you need to download and install software that will enable you to run apache on your computer.

XAMP stands for cross-platform Apache, Mysql, PHP. And that’s what you need to download and install on your local server (PC)

Once installed, open the program (Start > All program> Xamp > Control panel) and turn on Apache and MySQL.

Now launch your browser and type in “localhost” without quotes. You should see something like this…

Open another tab by holding down the “ctrl” key and pressing “T”. on the new tab, access wordpress.org/download and download the latest version of WordPress on your computer and unzip it.

Open the newly unzipped folder (WordPress) and copy all the files and folders inside to your clipboard. NB: ctrl + A to highlight all, Ctrl + C to copy.

Open file manager and navigate to C:/ > Xamp > htdoc and paste everything you copied earlier.

Go back to your web browser and access localhost/PHPMyAdmin, there you will be able to create a database for your WordPress website.

We will name the database “WordPress”. No need to create a table.

Now, go back to file manager c:/ > xamp > htdoc > wp-config-sample and open it with your text editor. “I recommend using notepad+ for windows and e for mac” ad edit the following lines of code:

define( ‘DB_NAME’, ‘database_name_here’ );
/** MySQL database username */
define( ‘DB_USER’, ‘username_here’ );
/** MySQL database password */
define( ‘DB_PASSWORD’, ‘password_here’ );

Replace the code with this…

define( ‘DB_NAME’, ‘wordpress’ );
/** MySQL database username */
define( ‘DB_USER’, ‘root’ );
/** MySQL database password */
define( ‘DB_PASSWORD’, ” );

DB_Name is wordpress, because that was what we named our database.

DB-User is root, and password is empty! Because we did not define them on the database we created on localhost/PHPMyAdmin.

Then go back to your browser and open localhost, you will now see that WordPress is ready to be installed.

Follow the installation process…

After the installation, you can now type in localhost to view the frontend of your WordPress website, or localhost/wp-admin to view the backend/admin area (may require your WordPress username and password).

If you follow the above process correctly, you now know how to install WordPress locally on your computer or on a remote server.

Setting the link structure.

WordPress gives us the opportunity to choose how we want our website URL to look. Its called the permalink.

The fourth and fifth are the most common use, and they produce a URL structure that is easily memorised.

To set up the permalink, on your WordPress dashboard, access Settings > Permalink and chose an option that best suits your needs.

How to create a blog post/page on WordPress

Because WordPress is userfriendly, writing a blog post or a static page is easier than ever!

On your admin dashboard, navigate to posts > add new and it will bring you to a writing environment.

You will see two text boxes, The title box and the content box.

On the title box, you can write the title of your blog post or page while on the content box, you can write the whole contents of the post/page. Continue to hit the enter button on your keyboard to add more content boxes.

At the right panel, you can add categories, tags, featured image, and every other thing you may need, when done, Hit Publish

To learn how to change the appearance of your WordPress website, and how to install a plugin, kindly click here… (opens in new tab)

Summary:

WordPress is the easiest and yet most powerful platform to create any kind of website. If you haven’t been on it earlier, I believe you must have learned. By treading this post, how to install a WordPress website locally, or remotely on a server.

Thanks for stopping by. Kindly tell me what you think about this post, and help me spread the love by sharing with your friends and family.

We will be happy to hear your thoughts

Leave a reply

MKTProfit
Logo
Register New Account
Reset Password