How to Install WordPress In Localhost in 6 steps
Various local server software options are available for creating a local WordPress site. In this step-by-step tutorial, we will use XAMPP ‒ the most popular cross-platform web server for PHP development.
1. Download XAMPP
Go to the official Apache Friends website and download the correct XAMPP software version based on your operating system.
2. Install and Run XAMPP on Your Computer
Run the XAMPP installer and follow the installation instructions using the default settings. If you see a pop-up indicating that your antivirus software might affect the installation process, click Yes to continue.
After installing XAMPP, run the application and configure the environment. In the XAMPP control panel, start Apache and MySQL modules to perform the WordPress localhost installation.
3. Download WordPress
Once the server is up and running, the next step is installing WordPress. Download the latest WordPress version, then extract the ZIP file.
Navigate to your XAMPP folder in the C drive (C:\xampp) or Oteher Drive to use it and locate the httdocs folder. Upload the extracted WordPress files there. We recommend renaming the new folder with your website’s name to make web development on the XAMPP server easier.
4. Create a Local Database
Go back to your XAMPP control panel and select the Admin button of the MySQL module to launch phpMyAdmin ‒ an administration tool for managing MySQL and MariaDB databases. It will help you create a local MySQL database for the new website.
Open the Databases tab and enter the database name into the Create database section. Set the dropdown menu’s value to Collation and hit the Create button. Your new MySQL database should appear on the left sidebar of the web page.
5. Install WordPress on Localhost
Finish installing WordPress locally by visiting localhost/folder name via your browser. Don’t forget to change the “folder name” placeholder with the folder name you chose in the third step.
WordPress requires a list of information to build the local host site. Fill in the database information as follows:
- Database name ‒ the name of the database you created in phpMyAdmin.
- Username ‒ enter “root” as the default username.
- Password ‒ leave the MySQL database password field blank.
- Database host ‒ keep the default “localhost.”
- Table prefix ‒ keep the default “wp_.”
Once done, hit Submit -> Run the installation. Fill in the additional information needed, like the site name and login credentials, and click on the Install WordPress button.
6. Check the Local Site You Built
That’s it – your local test site is now ready. Go to localhost/folder name/wp-admin and use the login credentials you created in the previous step to access the WordPress dashboard.
Read More Blog : Click Here