How to Install WordPress on Localhost with XAMPP on Windows 11 and Configure the Website, Allowing You to Run It on Your Computer.
How to install WordPress on localhost xampp and config domain
What is xampp?. Xampp is a virtual server application that runs on Windows, macOS, and Linux including Apache, PHP, and MySQL. Support to install and run websites on the PHP platform, specifically WordPress. In addition, Xampp provides easy phpMyAdmin giving you database management capabilities.
What is XAMPP? XAMPP is a virtual server software that is available for Windows, macOS, and Linux. It comprises Apache, PHP, and MySQL and enables you to install and run websites using the PHP platform, particularly WordPress. Furthermore, XAMPP makes it convenient to manage databases through phpMyAdmin.
Step 1. Download and setup install Xampp on your computer
Visit the XAMPP homepage and select the appropriate version for your computer. Pick the correct PHP version based on the requirements for setting up WordPress installation.
Once you have completed the download, launch the file “xampp-windows-x64-xx.exe” and proceed by clicking “Next” until you reach the “Finish” button.
During the installation process, you have the option to deselect certain features such as Filezilla, Mercury Mail Server, Tomcat, Perl, and Webalizer if you do not plan on utilizing them.
Step 2. Start xampp and create a database
Launch XAMPP, start the Apache and MySQL services, and then enter “127.0.0.1/phpmyadmin” into your web browser.
Click New and create a new database.
Step 3. How to download WordPress source code
Visit the wordpress.org homepage to download the file and extract it, resulting in a folder containing the WordPress source code. Copy the extracted WordPress folder to the “htdocs” folder within XAMPP. If you have installed XAMPP on drive F, the path would be “F:\XAMPP\htdocs“.
Step 4. How to configure domain on Xampp localhost
You can kick off the installation process by accessing the web through the URL “127.0.0.1/wordpress”, yet for a smoother experience, it’s advisable to set up a visually appealing virtual domain, making it easier to install WordPress on XAMPP
Now, open and edit the file “F:\XAMPP\apache\conf\httpd.conf“, and add the following content to the bottom.
<VirtualHost *:80> ServerName demo.itsmeit.co ServerAlias demo.itsmeit.co DocumentRoot "F:/xampp/htdocs/wordpress" </VirtualHost>
You can manually set a domain to run a website by specifying the ServerName and ServerAlias and directing the DocumentRoot to the directory that contains the WordPress source code.
Next, open and edit the file located at “C:\Windows\System32\drivers\etc\hosts” and add the following information to the end. The domain “demo.itsmeit.co” should match the one specified in the “httpd.conf” file.
127.0.0.1 demo.itsmeit.co
To facilitate the installation process for WordPress on localhost, you can adjust the essential read/write/edit permissions for the host file by either directly editing it or by copying it to the desktop and then pasting it into the “C:\Windows\System32\drivers\etc” directory. As demonstrated below, I’ve included the necessary write permission to the file
Step 5. Start install Wordpress on Xampp Windows
To continue, reopen Xampp, restart Apache, and navigate to the URL ‘demo.itsmeit.co’ using your web browser. Then, initiate the process of establishing the initial database for your website.
- The database name is the name created in step 3
- The username here is User Mysql, on localhost just leave it as the root
- Password is blank
- Database Host: Localhost
- The prefix should be left as the default
Next enter all the information and install Wordpress on Xampp. In there:
- Website Name: Is your website title or tagline
- Username: Is the name to log in to the admin page /wp-admin
After installation is complete, you can log in to the admin with the created user/pass and through this post, I have a website:
- Admin URL: https://demo.itsmeit.co/wp-admin/
- Frontend page URL: https://demo.itsmeit.co/
Through this article, with just 5 simple steps you know how to install WordPress on Xampp localhost, and can install a website to test dev, and run tests on your computer, if you want to run on a server or Ubuntu/Linux, you can refer to:
– Advertising –