Website creation takes several days, weeks, and months depending on its size. Often, to create websites, web developers use a local server installed on a home computer. It is actually an assembly and interconnected setup of three software products needed for a website- HTTPS server, Database server and PHP interpreter.
Why do you need to Install WordPress On Localhost with XAMPP Server?
Quick Transfer of Files
During website creation, you probably have to download a considerable number of files, including themes, plugins, etc. This can reduce the download speed significantly. It would be easier to copy and paste this or that information or extract a zip-file from one part of the computer to another. You can easily transfer files, make changes to WordPress, install themes and plugins with the help of a local server.
If you are just starting to work with WordPress and are learning it, a standalone local installation will help you learn a lot of new things.
Offline Editing in Websites
Creating a website offline gives you the ability to run your private blog. You will enjoy all the features of WordPress to enhance your skills.
Installing WordPress locally with XAMPP
To use WordPress on your computer, first of all, you need to download the XAMPP software.
- Download XAMPP
Use this link to down the software. Select the appropriate option, depending on the operating system on your computer.
- XAMPP Installation
Start the installation process by double-clicking. During the installation, leave the default settings and click “Next”.
When it comes to selecting a folder for saving XAMPP, you can choose a default folder or create a new one. If you do not know how to do it, select the first option.
Wait for sometimes so that XAMPP can get installed. Then proceed to the next step.
- Launch XAMPP Now
Once XAMPP is installed on your computer, select “Start Download Control Panel Now” and click “Finish”.
click “Start” for Apache and MySql:
In this stage, a security alert from Windows comes. Don’t get worried about it at all. Just click the unblock button and your local XAMPP server is ready for use. Check everything from A to Z, open a browser and navigate to this address http:// localhost. If you have configured the XAMPP correctly, then you will see the following.
- Create A Database for Your WordPress Website
Since WordPress uses a database, you need to create it before installing WordPress. You can do it simply in a few steps. For this, go the control panel- “Admin”-“Start” button for MySql:
The phpMyAdmin admin panel will open in your browser.
Click on “Databases”, enter the name of your database and click on the “Create” button. You can create several databases and make several installations of WordPress on your computer. Give an appropriate name to your website database to avoid confusion.
This message will confirm the creation of the database. Now, move to the next step.
- Download WordPress Now
Go to wordpress.org and download WordPress. After downloading the zip file, transfer it to where you installed XAMPP and save it in the “ htdocs ” folder.
Unzip the downloaded file by right-clicking on it and selecting “Extract to current folder”
Give a unique name so that you can distinguish it from others that you will create in the future.
By now, you have completed almost 90% of all tasks. find the wp-config-sample.php file in the WordPress directory that you just created, open it with a text editor and edit and rename it as per your needs.
Edit the data in the selected area as per the name of the database you created.
Save the file and rename it to wp-config.php, removing –sample from its name.
- WordPress Installation
To install WordPress, enter the address: http: // localhost / WordPress in your browser, where “WordPress” is the name of the folder you created. Once the page loads, the following will be displayed:
Now, enter the required data, click on “Install WordPress”, after which the installed WordPress will appear on your computer. From here on, you can sign in in your site to perform the necessary customization work to make your website look more appealing and stunning.
- How to check the launch of XAMPP?
Checking the correct launch of XAMPP is easy and simple. In the address bar the browser, write localhost name. The browser will open the local server panel. Server management menu at the top.
WordPress is a free content management system (CMS) and is well known all over the world. It is an open source CMS based on MySQL and PHP. Newbies usually start with WordPress on the local host. Just follow the above-mentioned tips to start with WordPress Website Development on the local host using XAMPP. Best of Luck.
HI, my name is Jack. I have the experience of working over seven years as a senior PHP developer at Stellen Infotech. As a WordPress Website Development Company, we create beautiful and robust web solutions that help you enter the target market and achieve maximum results. I am a passionate blogger who likes to write and share everything about new web design and development techniques. You can Follow us on Facebook and Twitter.