Skip to content

Instantly share code, notes, and snippets.

@karhunenloeve
Created October 4, 2023 13:30
Show Gist options
  • Save karhunenloeve/d3e7d8a03f2eb1c28287994674b650ee to your computer and use it in GitHub Desktop.
Save karhunenloeve/d3e7d8a03f2eb1c28287994674b650ee to your computer and use it in GitHub Desktop.
XAMPP and Wordpress locally.

Installing WordPress and XAMPP Locally

  1. Download XAMPP:

    • Visit the XAMPP website and download the XAMPP installer suitable for your operating system (Windows, macOS, or Linux).
  2. Install XAMPP:

    • Run the XAMPP installer and follow the on-screen instructions to complete the installation.
    • Start the XAMPP control panel once the installation is finished.
  3. Start Apache and MySQL:

    • In the XAMPP control panel, click the "Start" button next to "Apache" and "MySQL" to start the web server and database server.
  4. Download WordPress:

    • Visit the WordPress website and download the latest version of WordPress in a zip format.
  5. Extract WordPress Files:

    • Extract the downloaded WordPress zip file to the htdocs directory inside your XAMPP installation folder. This is usually located at C:\xampp\htdocs on Windows or /Applications/XAMPP/htdocs on macOS.
  6. Create a Database:

    • Open a web browser and go to http://localhost/phpmyadmin/ to access phpMyAdmin, a database management tool.
    • Click on "Databases" and create a new database. Note down the database name, as you will need it during the WordPress installation.
  7. Configure WordPress:

    • Open a web browser and go to http://localhost/wordpress/ (or the path where you extracted WordPress) to start the WordPress setup.
    • Select your language and click "Continue."
    • Provide the database information:
      • Database Name: Enter the name of the database you created in step 6.
      • Username: Usually set to "root."
      • Password: Leave it blank.
      • Database Host: Enter "localhost."
      • Table Prefix: You can leave this as default or change it if needed.
    • Click "Submit" to proceed.
  8. Run WordPress Installation:

    • Click "Run the installation."
    • Provide the site information:
      • Site Title: Enter the name of your website.
      • Username: Choose a username for the WordPress admin.
      • Password: Set a strong password for the admin.
      • Your Email: Enter your email address.
    • Click "Install WordPress."
  9. Complete Installation:

    • WordPress will complete the installation, and you'll be prompted to log in to the WordPress admin dashboard.
    • Once logged in, you can start building your local WordPress website.
  10. Access Your Local WordPress Site:

    • To access your local WordPress site, open a web browser and go to http://localhost/wordpress/ (or the path where you extracted WordPress).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment