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:
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:
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:
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.
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.
Next click next to start the installation process.
The installation process may take a few minutes or more.
After the installation process has finished, you can open the control panel to start working with XAMPP.
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:
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.
After launching these 2 modules, you will see the status of the modules turns green.
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 /.
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.
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.
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.
Then click Databases in the top corner.
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.
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.
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
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 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.
Have you ever installed and used WordPress? Share your opinions for Taimienphi.vn offline.