How to Install WordPress Locally Using XAMPP

Before installing WordPress locally using XAMPP, there are a few things you need to have or download first.

Requirements Before Installing WordPress Locally

  1. XAMPP App (Download XAMPP (apachefriends.org))
  2. WordPress .zip file (Download – WordPress.org)
  3. A device with Windows, Linux, or OS X operating system

Installing XAMPP

To install XAMPP on your device, you can read the guide on their official page here

Install WordPress Locally Using XAMPP

After successfully installing XAMPP on your device, make sure you remember where the XAMPP folder is located, because the WordPress files will be placed there.

  1. Open the XAMPP installation folder. For example C:/xampp
  2. Inside the XAMPP installation folder, look for the folder named htdocs
  3. Extract your WordPress file in the htdocsfolder. You can add a new folder or extract it directly into that folder.
  4. Once the WordPress files have been successfully extracted, you can now open your browser to perform the initial configuration.
  5. In your browser, you can open the following link to configure WordPress
    A. If extracted in the htdocs folder http://localhost/ or http://127.0.01/
    B. If extracted in a new folder inside htdocs http://localhost/nama_folder
    or http://127.0.0.1/nama_folder
    *Change the folder name according to the folder you are using.
  6. When you first open the WordPress installation page, you will be given a choice of language to use for the website later. I recommend using English, because besides it being easier to find documentation, some Indonesian translations might actually be difficult to understand.
    bahasa install wordpress local menggunakan xampp
  7. Next, you will be asked to input the data for the database that will be used. Since we have not created a database yet, we need to create one first. For a guide on how to create a database in XAMPP, you can read it here: How to Create a Database in XAMPP – Nasikin My ID
  8. Fill in the database fields with the details of the database you have created.
    Database Name: the name of the database created
    Username: can be filled with root
    Password: leave blank
    Database Host: Localhost, or fill with an IP Address
    Table Prefix: This becomes the prefix for the name of every table. For example, if the prefix is wp_ then all tables will be named with the prefix WP_ for example WP_Options
    Cara Install WordPress Local Menggunakan XAMPP - konfigurasi database
  9. After succeeding, you can continue the installation by clicking the button Run the installation
    Cara Install WordPress Local Menggunakan XAMPP - run install
  10. In this step, you need to fill in the details for your first administrator account, such as site name, password, email, username, and so on.
    Cara Install WordPress Local Menggunakan XAMPP - detail situs
    For the option Discourage search engines from indexing this site you can enable this if you do not want the website to be indexed by search engines (If it is still in development, it is better to enable this feature)
  11. After succeeding, you will get a success message, and you can try logging in to the admin dashboard.
    Cara Install WordPress Local Menggunakan XAMPP - success

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...