Prerequisites: PHP is a server-side programming language and if you are working with PHP, you need to run the code on the server(local or live server), Local server includes xampp or wamp, which we use generally for our computers/laptops.
WordPress is a CMS that is written in PHP programming language so we need to download the local server for running the code.
You can download the latest version of xampp from this link https://www.apachefriends.org/download.html and installed it on your computer.
Download and run:
These were the prerequisites about which are the requirements for running WordPress setup on your local computers.
Let’s move towards WordPress installation now :
For WordPress installation, We need to download the WordPress setup, its good to download the updated copy of WordPress,
Here is link for downloading the WordPress from its official website
After downloading put it into htdocs directory (xampp -> htdocs ).
This is how your download WordPress should look like.
Everything is ready for the installation now, you need to hit the particular URL where WordPress setup is located.
we have directly put the setup in the docs directory, so we need to hit it like this http://localhost/wordpress-5.3.2/.
After accessing this URL from your browser, it will immediately redirect you on the setup configuration page, asking about your preferred language or in which language you want to configure the setup.
I have selected the English language; you may select your own.
after language selection, it has redirected me on the second page of setup configuration which is asking for the following details,
- Database name
- Database username
- Database password
- Database host
- Table prefix (if you want to run more than one WordPress in a single database)
A screenshot is given below
First of all we need a database for WordPress setup so here is the link for the localhost database manager, http://localhost/phpmyadmin/.Hit the URL and make a new database with any name. I have made it with the name “ wordpress_course”. you can give any name to the database.
Kindly note that for localhost or local server xampp the database user is always “root ” and password is always ” ” empty.
We are using localhost so we can write that host is localhost, and the last one is the table prefix, you can give any prefix to the installed WordPress tables in the database or leave it as it is.
After making the database, Just click on let’s go button and it will redirect you to another page where you need to enter the database details.
A screenshot is attached here
Enter all the required details database name, database user, database password, and you can leave other fields as they are, or you can change those as per your needs.
we have database name = wordpress_course (which we made previously)
we have database user name = root
we have database user password = ” “.
Here is a screenshot of filled data, you need to put your own database name while database user name and password are the same forever on the localhost.
After filling the required data submit it and it will redirect you to the run installation page,
Just click to run the installation and proceed to the information page.
Screenshot is attached below
Fill the required data, You can put site title as WordPress class, or anything you like, and kindly note that put a good admin name and password and save that somewhere in your files because it will be used every time for logging in to the admin of your installed WordPress in the future.
As you fill all the required data, install WordPress button will get enabled automatically, you need to click it and it will start making database and pages for the WordPress website and this is the final step for the installation, it will load for one to two minutes and redirect you to the WordPress login page.
Here is screenshot
All the steps for the WordPress installation have competed here you can log in with admin and password, you entered previously for checking and proceeding with your Installed WordPress.
I have put login details and redirected them to the WordPress dashboard after successful login.