Install WordPress Locally Using XAMPP

Step 1: Download and Install XAMPP

  1. Download XAMPP from the official Apache Friends website: Apache Friends (XAMPP)
  2. Once the download is complete, run the installer and follow the installation wizard.
  3. After installation, start Apache and MySQL from the XAMPP Control Panel.
  4. Verify that the local server is working by opening your web browser and visiting: http://localhost/ If the XAMPP welcome page appears, the installation was successful.

Step 2: Add the WordPress Files

  1. Download the latest version of WordPress from: WordPress.org
  2. Navigate to the XAMPP installation directory: C:\xampp\htdocs
  3. Inside the htdocs folder, create a new folder for your website (for example, testsite). The folder name becomes part of your site’s URL.Example:http://localhost/testsite
  4. Extract the downloaded WordPress ZIP file into the newly created folder.

Step 3: Create a Database for WordPress

  1. Open the XAMPP Control Panel and ensure MySQL is running.
  2. Launch phpMyAdmin by visiting: http://localhost/phpmyadmin
  3. Click New in the left sidebar.
  4. Enter a database name (e.g., wordpress_db) and click Create.
  5. Remember the database name, as you will need it during the WordPress installation.

Step 4: Install WordPress

  1. Open your browser and navigate to: http://localhost/testsite (Replace testsite with your folder name.)
  2. Select your preferred language and click Continue.
  3. When prompted for database information,
  4. Database Name :wordpress_db (or your database name)
    Username : root
    Password :(leave blank)
    Database Host : localhost
    Table Prefix : wp_
  • Click Submit and then Run the Installation.
  • Enter your website details:
    • Site Title
    • Username
    • Password
    • Email Address
  • Click Install WordPress.

Completion

After the installation is finished, log in to the WordPress dashboard at:

http://localhost/testsite/wp-admin

You should now have a fully functional WordPress website running on your local computer.

By admin

Leave a Reply

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