How to install WordPress on localhost (XAMPP) creating a wordpress website

How to install WordPress on localhost (XAMPP) creating a wordpress website

Installing WordPress on your computer (localhost) allows you to try WordPress, test themes and plugins, and learn WordPress development.

In this article, we will show you how to create a WordPress site on your computer (localhost) using XAMPP.

What is XAMPP?

XAMPP is a software package that includes everything you need to set up a local server environment on your computer (localhost).

To create a WordPress site on your computer (localhost), web server software (Apache), PHP and MySQL must be set up on your computer (localhost).

PHP is a programming language and MySQL is a database management software. Both of which are required by WordPress.

XAMPP will help you create a WordPress website on your computer. (localhost) easily Can be used with computers running Windows, Mac and Linux.

Start by installing XAMPP and setting it up to run your WordPress site on your computer (localhost).

1. Installing XAMPP on your computer (localhost)

1.1 First you need to go to the website XAMPP and click on the download button. For your operating system 1.2 After downloading XAMPP, you will need to click and run the XAMPP installer.


1.3 XAMPP will ask you where to install the software and the packages you want to install. The default settings are available for most users. Click the ‘Next’ button to complete the setup wizard.


1.4 After completing the wizard, choose an option. ‘Start Control Panel Now’ and then click on the ‘Finish’ button to launch the XAMPP Control Panel program.


1.5 When opening XAMPP, you can run Apache web server as your local server and MySQL as your database server. To do this, click on the ‘Start’ button next to Apache and MySQL.


1.6 XAMPP will start Apache and MySQL. You may see a Windows Firewall notification, it is important that you click on the ‘Allow access’ button.

To get both applications running on your computer. When both applications have started, their names will be highlighted in green. You are now ready to create a website on your computer. (localhost) and you can install WordPress using XAMPP.

2. Creating a WordPress site on your computer (localhost) with XAMPP.

2.1 First you need to download WordPress to the website. WordPress.org And click on the ‘Download WordPress’ button.


2.2 After downloading WordPress, you need to extract the zip file and you will see wordpress folder, you need to copy this folder.


2.3 Next, head over to your XAMPP installation folder in Windows, it will be C: / Program Files / XAMPP / htdocs or C: / Xampp / htdocs, paste the wordpress folder you copied earlier in htdocs we recommend. Rename wordpress folder to website or something else. This will help you easily identify the sites in your area.


2.4 Then you need to open your web browser and enter the following URL in your browser’s address bar.
https: // localhost / website1 / If you’ve changed the WordPress folder name to something else, replace website1 with your own folder name. This will load the WordPress installation wizard and you will be asked to select a language. After selecting the language, click on the “continue” button.


2.5 On the next screen, you will see a message stating that WordPress requires your database name, database username, password, and host information.


2.6 Let’s create a database for your WordPress site. You will need to open a new browser tab and go to https: // localhost / phpmyadmin / This will launch the phpMyAdmin app that comes pre-installed with XAMPP, allowing you to easily manage your databases using its simple interface.


2.7 You will have to click on Database and give your new database a name. After that click on the “Create” button to continue. Now that you have created a database, you can use it on your WordPress site.
2.8 Switch back to the tab. https: // localhost / website1 / and click on the ‘Let’s Go’ button.On the next screen you will be asked to provide your WordPress database information.Enter the database name you created earlier. Your username is ‘root’ and you should leave the password field blank. For the Database Host field, you need localhost. When finished, click on the “Submit” button to continue.

If you are on Windows or Linux, WordPress will store these settings in your WordPress settings file called wp-config.php file.

2.9 The next step, WordPress will ask you to provide information about your website. First, enter the name you want to use for this site.

After that, you need to enter your username, password and email address for your admin account.

2.10 Once you have filled all the information, click on the ‘Install WordPress’ button to proceed.

WordPress will run the installation and prompt you to log in when complete.

You can enter your website by visiting https: // localhost / website1 / wp-admin And use the username / password you entered during the installation to login.

Now that you have created your WordPress site on your computer (localhost) using XAMPP, you can work just like you would on a real WordPress Host site.

After working with your WordPress site on your computer (localhost), you may want to move to a physical server to create your first WordPress blog or website.

To do so, you will need a domain name and a web hosting account. We recommend a domain name registration and web hosting provider Hostatom with hosting + domains starting at only 1,090 baht / year.

Click to receive a special Hostatom offer.

83 Views