How to install WordPress on Localhost


Want to create a WordPress website? XAMPP allows users to run a website on their computer. After installing XAMPP, you can install a WordPress with just a few clicks. In this article, Taimienphi.vn will guide you how to install WordPress on Localhost with XAMPP.


The installation XAMPP and WordPress on Localhost is not too difficult, but requires you to have a bit of tips and knowledge. If you want to install WordPress in a different environment, not Localhost but on Web Server, you can find out more information online.

Here’s how to install WordPress on Localhost using XAMPP.

Step 1: Download and install XAMPP on your computer

The first step is to download and install XAMPP on your computer. To download the XAMPP installation file for Windows you can download the latest version here: Download XAMPP

The file is quite large, over 110 MB, so the download process may take several minutes, depending on the speed of your Internet connection.

After the file download has finished, run the file to open the XAMPP installer. If the antivirus software on your computer is running, on the screen you will receive a warning similar to the following:

how to install wordpress on localhost 2

Click here Yes to continue. Depending on the Windows configuration, you may also get a UAC window. If UAC window is displayed on the screen, click Yes to continue. Now on the screen you will see the standard installer window:

how to install wordpress on localhost 3

Here you click Yes to continue.

On the next window you can select the items to install. To install XAMP and WordPress, you don’t need to select all the items, besides the required ones, all you need is:

– MySQL
– PHPMyAdmin

how to install wordpress on localhost 4

Uncheck the remaining items, then click next.

The next step is to select the directory to install XAMPP. Or you can leave the default folder.

how to install wordpress on localhost 5

On the next window, you will receive a notice asking to install Bitnami for XAMPP. Because there is no need to use Bitnami for XAMPP to install XAMPP and WordPress, you just need to uncheck it.

how to install wordpress on localhost 6

Next click next to start the installation process.

how to install wordpress on localhost 7

The installation process may take a few minutes or more.

how to install wordpress on localhost 8

After the installation process has finished, you can open the control panel to start working with XAMPP.

how to install wordpress on localhost 9

Step 2: Activate the module and check the server (server)

To install WordPress on Localhost using XAMPP properly, you will need to run 2 modules:

– Apache
– MySQL

You can activate these 2 modules right on the XAMPP control panel. If you encounter an error that you cannot activate the Apache module, please refer to it Installing and fixing errors cannot start Apache XAMPP Please.

how to install wordpress on localhost 10

After launching these 2 modules, you will see the status of the modules turns green.

how to install wordpress on localhost 11

The next step to do now is to check if the server is working by opening any web browser on your computer and visiting http: // localhost /.

how to install wordpress on localhost 12

If all went well, the XAMPP server is working on your Windows computer. Now it’s time to install XAMPP and WordPress. Refer to the steps below to install WordPress running on XAMPP.

Step 3: Add the WordPress file

If you’ve ever installed WordPress manually, the rest of the WordPress installation below will be quite familiar to you. The first is to visit wordpress.org to download the latest version of WordPress to your computer and install.

Next on the Windows computer navigate to the directory where you installed XAMPP to find the subfolder htdocs. In this tutorial XAMPP installation directory is C: // xampp.

how to install wordpress on localhost 13

In the htdocs directory, create a new directory for your test site. This directory name will be the domain name used to access your site. For example if creating a directory testsite, You will visit your website by visiting http: // localhost / testsite.

After creating the directory, extract the WordPress .zip file that you downloaded on wordpress.org.

how to install wordpress on localhost 14

Step 4: Create a database (database) for WordPress

What you need to do now is create a MySQL database for WordPress that you have installed. To do this, run PHPMyAdmin on the XAMPP control panel.

how to install wordpress on localhost 15

Then click Databases in the top corner.

how to install wordpress on localhost 16

Enter a name for the database you want, as long as it’s easy to remember to use in the next step. Then click Create.

how to install wordpress on localhost 17

Unlike installing WordPress directly on Web Server, when installing XAMPP and WordPress, you don’t need to worry about creating database users.

Step 5: Run the WordPress installer

When visiting your test site, you will see the regular WordPress installer. One thing to note, your test website is just: http: // localhost / directory.

how to install wordpress on localhost 18

The only step in this process that differs from normal installation is the database details. When you receive the database details, enter the following:

Database Name = The name of the database you created in PHPMyAdmin
Username (username) = “root”
Password (password) = leave blank

how to install wordpress on localhost 19

Then perform the remaining WordPress installation steps as usual.

After completing the process, you should see your WordPress site running perfectly on Localhost. You can refer to these WordPress shortcut for faster code editing.

how to install wordpress on localhost 20

How to install XAMPP and WordPress Multisite

If you want to install and use WordPress Multisite, you can also configure WordPress Multisite to work on Localhost. Readers can refer to, learn more on the steps and how to configure WordPress Multisite on Localhost.

Should I use XAMPP and WordPress in the Staging site?

Although using WordPress on Localhost is a great solution to experience everything with WordPress, it is recommended that you should not use WordPress in the Staging site.

This is because the hardware configuration of Localhost is different from the direct websites. So some things will work or not work on XAMPP WordPress but that doesn’t mean it will work on live websites.

Instead, using a subdomain or the host’s staging service is the best way to create a staging site in WordPress.

Above is instructions on how to install WordPress on Localhost. Whenever you want to create a new WordPress website on Localhost, you can absolutely use XAMPP. If you can not create WordPress on Localhost, then you can also design and create a WordPress blog very simple and completely free.

https://thuthuat.taimienphi.vn/cach-cai-wordpress-tren-localhost-moi-nhat-22502n.aspx
Have you ever installed and used WordPress? Share your opinions for Taimienphi.vn offline.

.

Add a Comment

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