To install WordPress on localhost, you need to follow these steps:
Download and install XAMPP on your computer. XAMPP is a software that allows you to create a local server environment for WordPress.
Download WordPress from wordpress.org and extract it to a folder inside the htdocs folder of XAMPP. For example, if you name your folder “blog”, then your WordPress files will be in C:\xampp\htdocs\blog
Create a database for WordPress using phpMyAdmin. You can access phpMyAdmin by typing localhost/phpmyadmin in your browser. Click on “New” and enter a database name, such as “blog_db”. Then click on “Create”.
Run the WordPress installation script by typing localhost/blog (or whatever you named your folder) in your browser. You will see a screen where you need to select your language and click on “Continue”.
Enter your site title, username, password, email address and click on “Install WordPress”. You will see a success message when WordPress is installed.
Log in to your WordPress dashboard by typing localhost/blog/wp-admin (or whatever you named your folder) in your browser. You can now start creating your website.
Changed: REHAN 27.01.2026 / 18:43