A Fast and Simple Guide for Getting WordPress Running Locally on a Chromebook Using XAMPP

Introduction

This guide will help you set up WordPress for local development on your Chromebook using XAMPP.

Prerequisites

  • A Chromebook with Linux (Crostini) enabled.
  • Basic knowledge of how to use the terminal.
  • A stable internet connection.

Step 1: Install XAMPP

  1. Download the XAMPP Linux version from the official website.
  2. Open the terminal.
  3. Navigate to the Downloads folder:
    cd ~/Downloads
    
  4. Make the installer executable:
    chmod +x xampp-linux-x64-*installer.run
    
  5. Run the installer:
    sudo ./xampp-linux-x64-*installer.run
    
  6. Follow the on-screen instructions to complete the installation.

Step 2: Start XAMPP

  1. In the terminal, start XAMPP by running:
    sudo /opt/lampp/lampp start
    
  2. Open your web browser and go to http://localhost. You should see the XAMPP dashboard.

Step 3: Download WordPress

  1. Visit the WordPress download page.
  2. Download the latest version of WordPress.
  3. Extract the downloaded ZIP file:
    unzip latest.zip
    
  4. Move the extracted WordPress folder to the XAMPP htdocs directory:
    sudo mv wordpress /opt/lampp/htdocs/
    

Step 4: Create a Database

  1. Go to the XAMPP dashboard and click on phpMyAdmin.
  2. Create a new database for your WordPress site.

Step 5: Configure WordPress

  1. Rename the wp-config-sample.php file to wp-config.php in the WordPress folder:
    sudo mv /opt/lampp/htdocs/wordpress/wp-config-sample.php /opt/lampp/htdocs/wordpress/wp-config.php
    
  2. Open wp-config.php and configure your database details:
    • Database name: Your database name here.
    • Username: root
    • Password: (leave it empty)

Step 6: Install WordPress

  1. Open your web browser and go to http://localhost/wordpress/.
  2. Follow the installation steps provided by WordPress to complete the setup.

Conclusion

You now have WordPress running locally on your Chromebook using XAMPP! You can start developing and testing your site.