Need a Website?

How to Install WordPress on XAMPP Localhost [2024]

wordpress

Installing WordPress on XAMPP localhost server is one of the most popular ways to develop a website locally before publishing it online.

In this article, we will go through the steps on how to install WordPress on XAMPP localhost. This process will include XAMPP installation, WordPress installation, and basic WordPress management such as login, plugin installation, and themes.

How to Install XAMPP

The first step in installing WordPress on XAMPP localhost is to install XAMPP itself. XAMPP is a software package containing Apache, MySQL, PHP, and Perl servers that can be used to create a local server environment on your computer. Here are the steps to install XAMPP:

Download XAMPP

Visit the official XAMPP website and download the latest version of XAMPP that matches your operating system.

Install XAMPP

After finishing the download, double-click the XAMPP installation file to start the installation

Step 1: click next

begin installing xampp

Step 2 : klik next

pilih komponen xampp

Step 3: Specify the XAMPP installation location or leave the default at C:\xampp, click next

pilih folder instalasi xampp

Step 4: Select your language preference then click next

pilih bahasa xampp

Step 5: click next to begin the installation

instalasi xampp selesai

Run the Localhost Server

After the installation process is complete, open the XAMPP panel then start Apache and MySQL to run the webserver and database on localhost (your computer).

panel xampp

Check if the webserver is running by typing localhost in the address bar of your browser, if it appears as below, congratulations your XAMPP installation has been successful and you are ready to start installing WordPress.

dasbor localhost

How to Install WordPress on XAMPP Localhost

After XAMPP has been successfully installed and the localhost server is running successfully, you can proceed to the next step which is installing WordPress on your localhost. Here are the steps:

Creating a Database for WordPress

Open a browser and go to http://localhost/phpmyadmin/ and start creating a new database.

  1. Open the Databases tab
  2. Enter the database name, in this example I used “wpbaru_db” for the database name
  3. Make sure you select “utf8mb4_unicode_ci” in step number 3 below
  4. Click the “Create” button to create the database
phpmyadmin

Preparing WordPress Files in Place

Download WordPress: Visit the official WordPress website and download the latest version of WordPress in the form of a zip file.

Extract WordPress Files: After the download is complete, extract the WordPress zip file to the htdocs directory in the XAMPP installation folder. Don’t forget to change the WordPress folder name to the name of the website you want, in this example I changed it to “wpbaru”

folder htdocs

These are the contents of the files inside the WordPress folder (wpbaru after renaming) for your reference:

isi file-file di dalam folder wordpress

Starting the WordPress Installation Process

Step 1: Open your browser and go to http://localhost/wpbaru (replace wpbaru with your folder name), the page below will appear, select the language you want to use in the WordPress installation:

memilih bahasa wordpress

Step 2: click the “Go” button

halaman awal instal wordpress

Step 3: Enter the information for connection to the database

  1. Enter the database name that you previously created
  2. Enter “root” in the user / username field, this is the default user of phpmyadmin
  3. Leave the password blank because the root user does not have a password
  4. Enter localhost as the database host
  5. Enter the prefix for the WordPress table names, you can use the default “wp_”
  6. Click the Submit button
halaman setup koneksi database

Step 4: Click the execute installation button

halaman memulai instalasi wordpress

Step 5: Enter information for WordPress installation

  1. Enter a site name, you can change this later from the WordPress admin page after the installation process is complete.
  2. Enter a username, this is the username you will use to login to the WordPress admin page
  3. Sanda : the password you will use to login to the WordPress admin page
  4. Email : this is the email for your WordPress account, you can use this email to login and reset the password.
  5. Search engine visibility: Do not check this section if you want your website to be found by search engines (google, bing, etc).
  6. Click Install WordPress to start the installation process
halaman instalasi wordpress

Step 6: Congratulations, you’ve successfully installed WordPress on your local server.

instalasi wordpress sudah selesai

How to Manage WordPress

Now that you have successfully installed WordPress on XAMPP localhost, you need to know how to manage your website. Here are some basic steps to managing WordPress:

How to Login to WordPress

Go to the Login Page: Open a browser and navigate to http://localhost/wpbaru/wp-admin/ (replace wpbaru with your WordPress folder name).

Enter Credentials: Enter the username and password you created when installing WordPress.

halaman login

WordPress Dashboard: Upon a successful login, you will be redirected to the WordPress dashboard, where you can manage your content, themes, plugins, and more.

dasbor wordpress

How to Install a WordPress Theme

Step 1: Open the theme page from the View>Theme menu, then click “Add New Theme”

menambahkan tema baru

Step 2: You can search using the theme name in the top right corner, after finding the theme you want to install click the Install button on the theme.

instal tema wordpress

Step 3: After the installation process is complete, click the “Activate” button to activate and apply the theme to your WordPress site.

aktifkan tema wordpress

How to Install WordPress Plugins

Step 1: Go to the Plugin>Add new Plugin page and search for the plugin you want to install, then click the “install now” button on the plugin.

instal plugin

Step 2: Once the plugin installation process is complete, click the “Activate” button to activate the plugin.

aktifkan plugin

By following the steps above, you can now install WordPress on XAMPP localhost and start developing your website locally. Good luck!

Don’t forget to write in the comments if you have any questions or feedback.

Wayan

Wayan

I am a web developer with over 7 years of experience, WordPress is my mainstay. I build responsive, attractive websites, as well as optimize performance and security. In addition, I also enjoy sharing the knowledge I gained from my experience through this blog. Hopefully, the information I share will be useful to you readers. Thank you for visiting my blog!

Leave a Reply

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

I start by understanding your need

I also available on Whatsapp