WordPress is the most commonly used CMS (Content Management System) for making Blogging websites. If you want to make a website offline and test it on your local computer (i.e,locally) then you can use Xampp that acts as a server (localhost) for your website and makes it easy to test a website offline on your computer that is created using WordPress.
a) Test your code- If you are one of the tech-savvy’s and have designed your website using coding languages you need to make sure that your code is running absolutely fine before your website goes live on the Internet.
b) Test your WordPress website- If you are lazy like me & don’t like coding or if you don’t know the coding languages, you can use various CMS to design your websites. Just to make sure that your website is running smoothly you can definitely check and test it by installing it on the localhost.
c) Themes & Plugins- You can check the compatibility of your design, theme and plugins to make sure that none of them are slowing down your website’s functionality.
XAMPP means(X=> Anywhere(cross-platform),A=> Apache server ,M=> MySql database ,P=>PHP ,P=>Perl)
It is an open source(free) package that provides the ability to your local computer to act as a server for your website that you creating offline on your computer. It helps the user to manage both the front end(design) as well as backend(database) of a website from your local computer. It works on all platforms like Windows, Linux and Mac that is why it is called cross platform application.
You can download XAMPP from here:Download Xampp.
Step 1) Run the XAMPP setup and click on next button.
Step 2) Select the XAMPP modules that you want to install.
Step 3) Browse and select the folder where you want to install XAMPP on your local computer and after that click on next button.
Step 4) Now wait till the installation is complete.
Once XAMPP is installed you need to open XAMPP control panel.
Step 5) Now firstly you need click on Start button present in front of Apache and then mysql from XAMPP control panel.
Step 6) Once you have enabled Apache and Mysql then you need to open admin panel of apache(server/front- end) by clicking on Admin button and admin panel of apache will open in a new window with the URL: localhost/dashboard
Now you need to open admin panel of mysql(database) by clicking on Admin button and admin panel of mysql will open in a new window with the URL: localhost/phpmyadmin
Step 7) Once you have redirected to phymyadmin, you need to create a new database by clicking on “new” database present on the left side and then you are redirected to database section and you need to create a new database by giving a specific name of your choice and then click on “create “ for creating a database.
Step 8) Now you need to grant privileges to the database by creating a new user that can access and make changes in the database. For that you need to select the database that you have created and then click on “privileges” .
After that you need to click on “Add user account” for creating a new user.
Step 9) Now you need to fill the following fields under Login Information:
User name:(name of the user given by you)
Host name:(select the name of the host as local i.e; localhost)
Password:(set the user password by you)
Re-type:(retype the password same as password).
Step 10) Now Scroll down to Global privileges and check the check box of “Check all” that selects all the privileges listed in the privileges section.
Step 11) Now press on “Go” button at the bottom.
WordPress is a open source and most popular CMS used for making websites. You can easily make a website by using various themes, plugins etc that adds functionality to your site.
You can download the latest version of WordPress from WordPress.org from here:Download WordPress
After downloading the latest version of WordPress on your local computer you need to install it on the localhost. Please follow the following steps for installing WordPress on XAMPP.
1.) Once the WordPress package has been downloaded you need to extract the zip folder and copy the extracted folder to the htdocs folder inside the XAMPP directory folder.
2.) Now you need to open WordPress directory folder in your Apache panel by typing URL: localhost/wordpres in your browser for beginning the installation process of wordpress.
3.) Now WordPress installation page will appear in front of you, where you need to select the language in which you want to install WordPress and then click on continue.
4.) Now a note will appear that states that while installing process the changes are made in the WordPress configuration file i.e; wp-config.php. So you have to edit wp-config.php file that includes database name, username, password and host.
and after that click on let’s go.
5.) Now here you need to enter the database connection information(wp-config.php) same as you have entered above in wp-config-sample.php :
Database Name: (enter the name of the database that you have entered in wp-config-sample.php)
Username: (enter the name of the database username that you have entered in wp-config-sample.php)
Password: (enter the password that you have entered in wp-config-sample.php)
Database Host: (select “localhost” from the select box)
Table Prefix: (don’t make any changes to this)
After that click on submit button to start the installation.
6.) Now again you are redirected to choose language section where you need to select the same language as you have selected earlier at the beginning of the installation and then click on continue button.
7.) After that you are directed to the next page where you need to fill the following information as required:
Site Title:(eg: My First Blog)
Username: (Enter the Admin username)
Password: (Enter the Admin password eg: use auto-generated strong password)
Your Email: (eg: [email protected])
After filling all the above details click on “Install WordPress” button for finishing the installation.
Congratulations! WordPress is successfully installed on your computer.