Install WordPress On Localhost Using XAMPP
Installing WordPress on localhost using XAMPP is actually quite easy, and this method will be very useful when we want to test the WordPress application on your own computer before it is actually online.
I often call WordPress installed on this computer – WordPress offline, so it’s easy to use and later you can access only yourself, and you don’t need the internet to run it.
Since WordPress offline will need a database and user database, we must create it in the local pc database first.
This step is necessary because WordPress will use the database to manage the data that will be created later.
The good news is, Xampp also supports local database creation using Phpmyadmin.
For how to add databases and users using Xampp in Phpmyadmin, you can first read this article:
Next, please refer to the following tips on how to install WordPress on localhost using XAMPP.
Installing WordPress On Localhost
In this process, try to use the Xampp application and the latest WordPress installation files to ensure a smooth installation.
Xampp installation guide can be read here:
- How to install Xampp on a computer
Then for the latest WordPress files, you can find them here:
- Download the latest WordPress
Alright, let’s continue with the process.
# 1 – Copy WordPress Files
Open the XAMPP folder on your computer, then open the htdocs folder, then copy the WordPress files into this folder.
It’s easier, open Windows Explorer, then type C: \ xampp \ htdocs in the address folder as shown in the image below.
*) NB: The folder htdocs is the folder used to store files that can be opened in a browser. If we put something other than this folder, the browser will not be able to open it. Usually, if the setting is the default, the folder is in the C drive. So make sure you put it wrong …
# 2 – Determine The Location Of The WordPress Directory
If the file is still in compressed form, it must be extracted first.
The default folder/directory that you extracted is usually named ‘WordPress’, and if you wish, you can later rename this folder to something you like, say the name of your website.
Here I replace it with the name ‘my blog’.
If accessed, the result will look like the image below:
# 3 – Open WordPress Offline In A Browser
Now open your favorite browser to open this offline WordPress site, later we can access it with the address – HTTP: // localhost / nama_folder
For mine, open it using the address – HTTP: // localhost / my blog
If yours keeps the default folder, then the address is – HTTP: // localhost / WordPress.
Type in the address bar, then click – Create a Configuration File
Now Click – Let’s Go
# 4 – Install WordPress
Fill in the database name, username, and password that you created earlier, do you remember?
In the Database Host section, fill in with localhost only.
Click Run the Install.
Fill in the data needed for admin and the name of the website. After that, click install WordPress.
Congratulations! Your WordPress offline is ready.
# 5 – Login To WordPress
Enter the username and password that you created in step no.4 to log in to the Dashboard.
Alternatively, you can also type the address directly into the browser:
- http: // localhost / folder_name / wp-admin.
- If at my place means using the address – http: // localhost / gizmoconcept / wp-admin .
So, these are the steps for installing WordPress offline on localhost using XAMPP.
Hopefully, this is useful, and please share or share this article if someone needs it.