Install WordPress on Windows
This section covers the WordPress installation on Windows operating system. The following steps demonstrate how to set up and configure a virtual host on Windows 10 using XAMPP.
Step 1: Download XAMPP and WordPress
It's crucial to create the ideal atmosphere for WordPress before downloading. Installing XAMPP or WAMP on Windows will enable you to build up a server-database stack (the industry-favorites are Apache as a web server and MySQL as the database)
In this guide, I will be using XAMPP, downloadable from the Apache website.
You will notice a variety of settings that are compatible with various PHP versions. I chose the options that are most compatible with the most recent PHP release.
Run it after the download is complete to install XAMPP on your local computer. Launch the control panel after installation to see and modify Apache and MySQL status.
Starting these two services is necessary for installing WordPress locally.
Step2: Install and Setup WordPress Locally
Download the WordPress setup from the official website after configuring the webserver and database.
Place the zip file in the XAMPP directory's htdocs folder. Go to the project directory after unzipping the file.Important: Ensure that the Apache and MySQL services are active in the XAMPP management panel.
Next, build the database for your new WordPress site by going to the phpMyAdmin portal. The portal is most likely located at the following URL (depending on your port configuration).
- http://localhost:80/phpmyadmin/
Once the database is created, launch the WordPress installation setup by visiting the following URL.
- http://localhost:80/newwpsite/wp-admin/setup-config.php
Select the desired language and click ‘Continue’.
On the next screen, follow the steps to add database credentials to the wp-config.php file.
Open wp-config.php file within your favorite code editor and define database credentials as follow:
- // ** MySQL settings - You can get this info from your web host ** //
- /** The name of the database for WordPress */
- define( 'DB_NAME', 'newwpsite' );
- /** MySQL database username */
- define( 'DB_USER', 'root' );
- /** MySQL database password */
- define( 'DB_PASSWORD', '' );
Save the file and head back to WordPress installation wizard.
Type in the username, password, and database name. You are free to create your own table prefix, but for now I'm sticking with the default. Once finished, press "Submit."
The successful database setting will be verified on the next screen. To launch the WordPress installation, click "Run the installation."
Provide details about your website on the following screen, then enter your account and password to access the WordPress dashboard.
Click the "Install WordPress" button when you're finished. The success message and button to open the well-known WordPress dashboard login page will be displayed.
That is all that is required to locally install WordPress on a Windows computer.