Home / News / How to Install WordPress on Localhost Using XAMPP

How to Install WordPress on Localhost Using XAMPP

Installing WordPress on your localhost is an excellent way to learn and test your development skills. In this guide, we’ll go through the step-by-step process to complete this installation in a simple and effective way.

What is XAMPP?

XAMPP is a free software package that includes Apache, MySQL, PHP, and Perl. It allows you to create a local web development environment. With XAMPP, you can run WordPress on your computer without the need for external hosting.

Step-by-Step Installation

Downloading and Installing XAMPP

First, search for XAMPP on Google. On the official site, download the version recommended for your operating system.

After the download, run the installer and follow the on-screen instructions. Once the installation is complete, you’ll see the XAMPP control panel. Here, start the Apache and MySQL modules — these services will allow you to run WordPress.

Accessing the Localhost Panel

With the services running, open your browser and type localhost in the address bar. You should be redirected to the XAMPP control panel, where you can manage your sites.

Tip: To access PHPMyAdmin, click the link on the panel. This tool is essential for managing your databases.

Creating a Database

Inside PHPMyAdmin, you’ll need to create a database for your WordPress site. Click on the Databases tab, enter a name (e.g., test) and click Create. Now your database is ready!

Configuring User and Password

After creating the database, configure a user with a password. In the Users section, add a new user and assign a password. Make sure to grant the required permissions so WordPress can access the database.

Installing WordPress

Now that XAMPP and the database are ready, it’s time to download WordPress. Go to the official WordPress website and download the latest version in ZIP format.

Unzip the file and place the WordPress folder inside the htdocs directory in your XAMPP installation. For example, create a folder named test.

Configuring wp-config.php

Locate the file wp-config-sample.php and rename it to wp-config.php. Open the file in a text editor and insert your database information:

  • DB_NAME: test
  • DB_USER: [your user]
  • DB_PASSWORD: [your password]
  • DB_HOST: localhost

Save the file after making these changes.

Finalizing the Installation

Now go back to your browser and type localhost/test. This will start the WordPress installation process. You’ll be asked to choose the language and then fill in details about the site, such as name, user, and admin panel password.

After clicking Install WordPress, you’ll see a success message.

Accessing WordPress

Finally, click Log In and enter the credentials you configured earlier. Done! Your WordPress is now active and running on your computer.

Conclusion

Installing WordPress on localhost with XAMPP is a great way to practice and build websites at no cost. Follow this guide and explore the endless possibilities WordPress has to offer.

 

Instalando Xampp com wordpress
How to Install WordPress on Localhost Using XAMPP