How to Install WordPress on localhost XAMPP (Easy Guide 2023)

How to Install WordPress on localhost XAMPP 2023

Hello, guys Today we are back with another Tutorial we are going to show you how you can install WordPress on localhost on your computer using XAMPP. It is very easy to do and I will guide you through the pictures Read and watch everything carefully. Let's go ahead and connect WordPress and localhost.

How to Install WordPress on Localhost XAMPP

First, go to your computer's browser and search for "Download Xampp", and there are a lot of links over here but the "first link that is the apache reference" click on this link is the official download link of XAMPP.



So these are the versions of XAMPP that are available for download usually it is safest to download the latest version which is 8.1.12 which runs the latest version of PHP but there are also older versions available so you can download those if you have built a project that uses the previous or older version of PHP.

But we are selecting the latest version so it is "147 Mb" in size just click on the download button to start the download. and it has started to download so if you have a faster internet connection it won't take much longer.


localhost/wordpress

Okay so the download is finished now we are going to open the folder so this is the file that we downloaded we are going to double-click on it to open it up. now opening okay so you might see a warning message like this don't worry just click on ok. this will not cause any problems.


localhost/wordpress

And now click on next now you can see all the applications that will be installed we don't need all of them so I'm going to uncheck some of them Like "tomcat", and "mercury mail server", we also don't need FileZilla "fake Sendmail" or Webalizer you can also keep these on they won't cause you any problem just click on next.


how to install wordpress on xampp pdf

and we're going to install it on c drive click on next and we're going to uncheck this and next okay so it's installing now.


how to install wordpress on xampp pdf

So as it installs let me explain why you need XM to launch your WordPress website locally?

WordPress is written in PHP which is a server-side programming language and your browser doesn't understand PHP code unless it is compiled through a server and XAMPP provides us that server using the apache program.
 
which is an open-source server architecture for your computer another thing that WordPress needs is a database it needs a database to keep track of posts usernames passwords and other things XAMPP also runs MySQL and you can manage all your databases using the PHPMyAdmin so our.

installing complete, come back

Now you can see that it's asking us that do you want to start the control panel right now I'm going to uncheck this because I want to show you how you can open up the control panel manually click on Finish to exit the setup and since we have installed XAMPP and on c drive.

we're going to click on it and you can see that there's a XAMPP folder over here we're going to go inside this folder and you can see there are so many files but you don't need to be worried about that we will only be working with one file and that is the click XAMPP-control.

just right-click on the file and click on run as administrator.


xampp wordpress

Now, this will open up the XAMPP control panel so from here you can see the apache MySQL and Filezilla servers you can click on the start button to start up the services but a problem with this is that each time you open up XAMPP you have to initiate or start the servers manually so we are going to actually automate this process. to automate it just simply click on "config".


xampp wordpress

and then select apache and MySQL and select save.


download wordpress for xampp

Now I'm going to start up the services as you can see the services have started up now I'm going to stop it and exit this program I'm going to reopen it as administrator and you can see that the project has started up automatically now I'm going to minimize this program and go back to our browser.


download wordpress for xampp

okay so we're back in our browser now on the URL bar we're going to type "localhost/dashboard" and hit enter so here you can see that we have successfully entered the apache web server you can see that XAMPP 8.1.12 has been installed and now all we have to do is download WordPress.


how to install wordpress on localhost ubuntu

so to download WordPress open up another tab and type in "wordpress.org" and you will land on this website.


how to install wordpress on localhost ubuntu

From here you can download the latest version of WordPress just click on "get WordPress" scroll down and click on this button download WordPress and your download should automatically start to give it some time, uh the download will finish within a few minutes or seconds depending on how fast your internet is.


Install WordPress on localhost

So after it's finished we are now going to open this up you can see that WordPress 6.1.1 is over here so I'm going to open up this compressed file to show you what it has so it has the WordPress folder which consists of so many WordPress files that are required for the website to run.


Install WordPress on localhost

So I'm going to copy it you can also cut it if you want but I'm copying it and going to c drive and the XAMPP folder we're going to look for a folder called Htdocs so here is the folder go inside it and paste the file over here now.


Install WordPress on localhost

Click on extract and after the extraction is completed you can delete the zip file this is our WordPress folder now you can rename it into anything you want but remember whatever name you give it will be the directory that you need to enter in the URL bar so for this demonstration I'm keeping it only WordPress just to show you.


Install WordPress on localhost

So now that is it done we're going back to our browser and so we need a database in order to install our WordPress so to create a database go to "PHPMyAdmin" click on this link and here it this is.


Install WordPress on localhost

PHPMyAdmin page you can create databases from here manage your database download your database export your database does a lot of things so click on this database panel so to create a database and give your database a name for this demonstration we are going to give it a simple name let's say "wp database" so that is going to be the name of our database and for this option it's there's no need to change it just click on Create.


Install WordPress on localhost

And just like that your WordPress database has been created so now we have to connect this database with our WordPress how are we going to do that I'll show you just open up a new tab and click on the URL bar and type in localhost and the name of our website so the name of the folder was WordPress so give the name whatever you have chosen and hit enter and if everything was correct you will see the WordPress installation page.

Install WordPress on localhost

so from here select your language and then click on continue then you will see this page and it says that we need the following things the database name username, password, database, and host table prefix we have this information just click on let's go.


Install WordPress on localhost

Okay so the name of the database as you remember was wp database and the username would be root and leave the password field empty but for some other applications it might be set to root by default and for the other fields leave it as it is and click on submit.


Install WordPress on localhost

So you're now ready to run the "installation for WordPress" click on this button.


Install WordPress on localhost XAMPP

And the installation asks you to select a site title, uh you can change this information later on so for username and password these are the credentials that you need to log into your WordPress website since we are running WordPress on localhost we don't need a strong password or a unique username so we are going to select admin for username and a weak password like one two three four five.

if you are in a live server a strong password and a unique username are recommended so after it is done click on confirm the use of weak password then just type in an email address the search engine visibility doesn't actually matter since we are running it on localhost search engines can't actually index your website even if it wanted to so click on install WordPress.


Install WordPress on localhost XAMPP

so give it some time your WordPress has been installed now click on this login button.


Install WordPress on localhost XAMPP

And now we are going to use the admin that was our username and our password was one two three four five click on login give it some time to validate and that's it we have just.


Install WordPress on localhost XAMPP

Created our WordPress website on a local host you can see all the information over here you can see the version over here the options over here you can disable these options from here but it is highly recommended that you keep all of this information on your dashboard as it lets you know the overall condition of your website you can also visit your website from here.


Install WordPress on localhost XAMPP

So that is basically how you can install WordPress on your localhost using XAMPP I hope this Tutorial was helpful to all of you if you have any questions you can ask in the comment section and do share and like this Tutorial. After Research, WordPress and XAMPP have combined I have also told you how to download WordPress for XAMPP. Be sure to visit our website and the link I am giving you Visit

Comments