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
- Download the XAMPP Linux version from the official website.
- Open the terminal.
- Navigate to the Downloads folder:
cd ~/Downloads - Make the installer executable:
chmod +x xampp-linux-x64-*installer.run - Run the installer:
sudo ./xampp-linux-x64-*installer.run - Follow the on-screen instructions to complete the installation.
Step 2: Start XAMPP
- In the terminal, start XAMPP by running:
sudo /opt/lampp/lampp start - Open your web browser and go to
http://localhost. You should see the XAMPP dashboard.
Step 3: Download WordPress
- Visit the WordPress download page.
- Download the latest version of WordPress.
- Extract the downloaded ZIP file:
unzip latest.zip - Move the extracted WordPress folder to the XAMPP htdocs directory:
sudo mv wordpress /opt/lampp/htdocs/
Step 4: Create a Database
- Go to the XAMPP dashboard and click on phpMyAdmin.
- Create a new database for your WordPress site.
Step 5: Configure WordPress
- Rename the
wp-config-sample.phpfile towp-config.phpin the WordPress folder:sudo mv /opt/lampp/htdocs/wordpress/wp-config-sample.php /opt/lampp/htdocs/wordpress/wp-config.php - Open
wp-config.phpand configure your database details:- Database name: Your database name here.
- Username:
root - Password: (leave it empty)
Step 6: Install WordPress
- Open your web browser and go to
http://localhost/wordpress/. - 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.