Both services are running fine. Excellent!
You can check if your new local server is installed by visiting http://localhost in your browser.
Step 3. Setting Up Your MySQL Database
Before we install WordPress, we need a database.
In your XAMPP Control Panel, click the Admin button in the MySQL section.
A new browser window will automatically open with the phpMyAdmin interface.
Click on Databases near the top-left, and you’ll be prompted to create a new database. I’ve called mine “WP.”
When you’ve entered a name, click Create and close the window.
Step 4. Download WordPress Latest Version
Now is the time to create a database and start installing WordPress on localhost. To do that, you need to download the latest version of WordPress.
- Go to the WordPress official website, click on Get WordPress button from the top right side. You will be redirected to a new page.
- Now hit on Download WordPress button.
The download process might take a few moments to begin. You will get a zip file. Unzip the file and copy that for your next uses.
In order to get WordPress working with XAMPP, we need to unzip WordPress in the right folder. Go to the XAMPP folder on your computer and open the htdocs folder – C:/Program Files/XAMPP/htdocs.
Unzip WordPress into its own folder and rename it whatever you like. For consistency, I’m going to call this installation of WordPress “WP” to match the name of the database I just created.
Step 5. Install WordPress on Localhost
Open the WP folder where you saved WordPress, find the wp-config-sample.php file and rename it wp-config.php. Open the file and scroll down until you see the following lines:
These lines of code define the login details for your database:
- Replace“database_name_here” with the name of your database, which in my case is “WP”
- Replace “username_here” with “root” and leave “password_here” blank
- Save the file and close it
Now we can get on with actually installing WordPress.
Open your browser and go to http://localhost/wp/
You should see the translation screen that comes before the famous five minute WordPress installation process.
Once you’ve chosen your language, continue onto the next screen and enter your username and password details. Click Install WordPress.
Click Install WordPress this button.
Your WordPress installation is now complete! Log In your chosen password.
Check out the Site
This is the time to check out your local site. How would it look like or how would it work? Give a check.
- This is your backend dashboard or admin panel, from where you would control everything.