Install WordPress on Localhost using XAMPP

4
41
views

You can install WordPress on the local Desktop (localhost) and host multiple sites using XAPPP WordPress combination.

Why should someone Install WordPress on a desktop?

These are some reasons which I can think of,


  • As a beginner Blogger, you want to test the Blog before making live to the world.
  • An Experience Blogger can use it to review Plugins and Themes and share views with readers.

The best thing about WordPress local installation on Windows/Mac/Linux is, you can even host multiple sites on your desktop without incurring any cost. So let’s see how to install it.

There are two methods to install it,

  • Manual Installation
  • Using Bitnami/XAMPP installer.

I hope you are aware of XAMPP, if not, I would suggest reading below article written in XAMPP.

Open XAMPP control panel and start Apache and MySQL services as shown below. This is pre-requisite for WordPress Installation.

xampp-control-panel

Manually Install WordPress on Windows

Open WordPress Download Page. It is either a .zip or .tar.gz file. Go ahead and download a zip file and extract to your local machine.

WordPress is built in PHP, HTML, CSS and MySQL as a database. All metadata information like posts, user information, comments, etc is stored in MySQL Database. You need to create a database for WordPress.

Start XAMPP and open a web browser and type localhost in URL. Click on phpMyAdmin.

xampp-dashboard

On phpMyAdmin click on New to create a new database. Enter Database name – att_wordpress and collation – utf8_general_ci as shown below.

phpmyadmin-create-mysql-database

Next step is to create a username for the database. You can see (+)mysql tree on the left-hand side menu. Expand it and locate user table and create on Insert. user table stores information about all user in MySql.

phpmyadmin-create-user

Enter Host, User and Password. Check below a PASSWORD function is attached to the Password field. It will encrypt it after saving. Scroll the page and click on Go at the end of the page to insert records.

phpmyadmin-create-user-information

It inserts this user information in the MySQL database with all required privilege. Select All Except Shutdown privilege. If you get below warning, ignore it for now.

1 row inserted.
Warning: #1364 Field 'ssl_cipher' doesn't have a default value
Warning: #1364 Field 'x509_issuer' doesn't have a default value
Warning: #1364 Field 'x509_subject' doesn't have a default value

Install WordPress

Create a folder ATT under C:\xampp\htdocs. Please note XAMPP is installed at c:\xampp location on my system.

Extract content of all downloaded WordPress files under C:\xampp\htdocs\att folder as shown below.

wordpress-files-listing

Now open Google Chrome or any browser and type URL http://localhost/att/.  This will start the installation of WordPress on your system. Select the language of your preference and click on continue.

wordpress-install-select-language

Installation welcomes you and informs you to have information ready before starting. We have already created user, database. Click on Let’s go!.

wordpress-install-welcome

Enter Database Name, Username, Password, Database Host and Table Prefix as shown below. In the same database you can install multiple WordPress, so you need to specify unique Table Prefix for each installation.

wordpress-install-enter-necessary-information

wordpress-run-install

Here enter Site Title, Username, Password and Your Email. Please note that the username and password here are not database username and password. This you will use to login on WordPress Dashboard.

wordpress-install-blog-information

That’s it and you did it…!!!

WordPress is installed on your localhost. Open any browser like Google Chrome, Mozilla Firefox or Windows Explorer and type localhost/att as URL to open Blog as shown below. This is default look and feel, you can use themes to change it.

wordpress-welcome-page

You can access admin console using URL localhost/att/wp-admin. Enter it in browser and WordPress will ask you to enter username and password (not database) set during installation.

wordpres-admin-panel

You can see Blog is installed using the default theme. Login to WordPress Dashboard to change the theme, add plugins, write posts.

It is your own WordPress installation on localhost.

You should read below article,


Download installer from Bitnami/XAMPP website

XAMPP support many ad-ons like WordPress, Joomla, Drupal, etc. It is distributed as a wizard-driven installer which is very easy to install. You can download it from here.

Make sure Apache and MySQL are started before beginning the installation. Click on a downloaded file to start the installation. It supports 9 local languages. Choose your preference.

bitnami-wordpress-installation-choose-language

This is Welcome Screen for WordPress Installation.

xampp-wordpress-install

It is smart enough to detect the XAMPP installation on your system. It is c:\xampp for me.

xampp-wordpress-install-choose-folder

Create Admin Account. You need to enter all necessary information like Login, Your real name, Email Address and Application Password. This login and application password you will use to login WordPress Dashboard. This is local installation, so login name is Admin. Never choose Admin as a username on the site hosted on the Internet. Your site will become an easy target for a Brute-force attack. Where hacker tries to guess the password of your account using admin as the username.

xampp-admin-user-name-password

Choose blog name whatever you want. I am keeping it the default for demonstration.

xampp-wordpress-blog-name

If you want to configure email support, you can do it here.

xampp-wordpress-configure-smtp

If you want to deploy on the cloud, you can check this box. For now, let it be unchecked.

xampp-wordpress-deploy-cloud

That’s it and It will install WordPress on the local desktop.

xampp-wordpress-install-starts

Post installation you can launch your Blog.

xampp-launch-wordpress

This is how your Blog. You can access Blog and Admin Dashboard using  URLs

  • localhost/wordpress/
  • localhost/wordpress/wp-admin

xampp-wordpress-blog-page

XAMPP offers a great flexibility allowing you to install multiple WordPress on localhost without any additional cost. Both the method shown above are easy.

Let me know if you found this How to install WordPress on XAMPP article helpful.

Go ahead and install XAMMP and WordPress on localhost and become a pro-blogger. Reach out to me if you face any issue.

4 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here