Usually, companies and individual developers build websites using WordPress on the local web server like Xampp. Xampp is a software that provides a local web server that runs programming languages like PHP and Perl etc. If you haven’t installed then check out the article to install Xampp on windows.
Let’s download the fresh WordPress from its official website. to get the latest version of WordPress go to wordpress.org/download and click on the blue-colored button that contains download text along with the WordPress version. It will be downloaded in a few seconds containing a zip file.
Once it is downloaded, move it to xampp/htdocs folder. Then right-click on it and select extract here to extract the file.
Next, go to the Xampp folder and run the xampp-control.exe file which will ask you to start modules. So start the Apache and MySQL module which are enough to run a WordPress-based website. After starting both modules open the following URL in the browser
This will open the interface where the user creates and manages the databases. In the left sidebar, click on the New that opens the page for creating the database. It has an input that asks for the database name. If the database name contains more than 1 word then the underscore should be used in the between to link both words. After putting the database name click on create button that creates the database.
Now, go back to the WordPress folder and open the wp-config-sample.php file that is located on the root.
/** The name of the database for WordPress */ define( 'DB_NAME', 'wp_blog' ); /** Database username */ define( 'DB_USER', 'root' ); /** Database password */ define( 'DB_PASSWORD', '' ); /** Database hostname */ define( 'DB_HOST', 'localhost' );
Open this file in the editor and provide database detail. Xampp keeps the username root and password blank by default. After making these changes save the file as wp-config.php in the same directory. In above WordPress configuration file, we added local web server database credentials. In case if you provide wrong credentials you will get the error establishing a database connection in WordPress.
Next, run the URL in the browser that takes care of the further installation. Open WordPress link in the browser, for example
It will ask you to select a language, so select the language and click on continues button. In the next step, WordPress asks to provide website information and set the admin’s credential. It also asks if the website needs to stop search engines from indexing.
Next, click on the Install WordPress button that starts the further process and redirects the user to the login page.
After completing all the above steps WordPress will be completely installed and ready to use. Next, you can use any paid or free theme or create a custom bootstrap-based theme.