This article is about how you can install WordPress on localhost . Installing WordPress locally will be really handy when you are just started developing the website. So, after fully development of your site you can migrate the website to your hosting account. Developing your site in localhost will reduce the development time and easy to handle the content without wasting your data connection. This is also good way to try out WordPress if you are new to WordPress. As you can test WordPress completely free without paying for hosting services. And also this is grate way to try out different plugins and updates without making changes to the live site. So, lest take a look how you can install WordPress on your localhost.
Install XAMPP on your computer
So, as you know XAMPP is an Apache server that can be install on your computer it also comes with php, Maria Db, phpMyAdmin, Perl and etc. you can also use other Apache servers like WampServer for this. In this article we are using XAMPP. Follow these steps to setup XAMPP to install WordPress.
1. First download XAMPP from Apache. After downloading setup run the setup.
2. Then click ‘Yes’ on the prompt dialog to continue to the standard installation wizard.
3. Click ‘Next’ on the installation wizard to continue. Then select the what are the components that you want to install with XAMPP. Two main things that you want to select are MySQL and phpMyAdmin. If can also select other components that you want to install with XAMPP. after selecting the component click ‘next’.
4. Now select the folder you want to install XAMPP. It better to install it on the default location in ‘c:\xampp’. otherwise you might run in to problems while using it.
5. In the next dialog it asks whether r you want to install Bitnami. We don’t want that for WordPress installation just deselect it and click ‘next’.
6. Once you click ‘next’ on the final dialog the installation will begin. Installation will take few minutes to complete.
7. After finishing installation, you can launch the XAMPP control panel.
8. To start your Apache server and MYSQL database you have to start them through the XAMPP control panel.
9. After the status of these two modules turns green your server is all set to go. By navigating to http://localhost address on your web browsers You can test whether your Apache server is running on localhost.
Now we have successfully setup the apache server in your local computer. Setting up other servers like WampServer is pretty similar to above steps. Now you can move to next section to stat installing WordPress on your localhost.
Create database for WordPress
Before we start installing WordPress we need to create a database for WordPress first. You can easily create database for WordPress using phpMyAdmin.
To create database, go to the phpMyAdmin panel. By clicking on the admin button on the XAMPP control panel you can launch phpMyAdmin.
Then click on Databases at the phpMyAdmin panel.
Just enter a name for your database and click create if the following dialog to create the database. Remember this database name you will need it later. You don’t need to create database user since you can use the default database user account.
Now you need to download the WordPress files. To download WordPress, go to wordpress.org and download the latest version of WordPress.
Then navigate to the XAMPP installation directory. Mine its ‘c:\xampp’. In that folder look for a folder called htdocs. This htdocs folder is the public resource folder of your server. This will be the folder where you store all the website you want to launch with XAMPP. Create a subfolder inside the htdocs and rename it to whatever you want. I rename this to ‘wpsite’. Now you can access this folder from your browser with web address http://localhost/wpsite.
Once you create the folder, extract the WordPress .zip file you downloaded from wordpress.org into it.
Now you visit http://localhost/wpsite through the web browser to launch the WordPress installer
Now its just a dimple installation wizard that you can follow. When the following dialog appears enter the name of the database you created earlier. then enter the username as root and leave the password field empty.
Then in the next step enter a username and a password for the WordPress dashboard.
Once you finish this installation process, your WordPress site is all set. now if you check the web address http://localhost/wpsite you can see a WordPress site with default template is launched.
Now you can access the WordPress dashboard like in live site by navigating to http://localhost/wpsite/wp-admin. Use the username and password you defined in the installation process to login to the WordPress dashboard.
Checkout my following video tutorial on how to install WordPress in your localhost for more details.
That s how you can install WordPress in your local host using XAMPP. If you have any questions please leave a comment. And don’t forget to share this article with your friends.