Xampp WordPress: How to install wordpress on localhost?

Run WordPress on your PC

In this tutorial we will learn to install WordPress on your computer and run it,

First of all we will need to install Xampp server. So download Xampp and install it on your PC.

Now we will download the wordpress setup from wordpress.org.

I am assuming that you have installed the xampp server in C Drive.

Now open C:\xampp\htdocs\ and paste the wordpress setup zip file there.

C:\xampp\
C:\xampp\htdocs\

You can rename the “wordpress ” folder with any name you would like.

I renamed my wordpress site folder with “thissite”

Open your site folder and create a copy of wp-config-sample.php and rename it as “wp-config.php”

If “wp-config.php” already exists, skip this step.

Run Xampp Server and start the Apche server and MySQL.

Open your web browser and type http://localhost/phpmyadmin/ to open phpMyAdmin


Click on New option and create a new database. You can name it what you want.

I named my database “thissite”.

thissite database

Open” wp-config.php file”

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );

/** MySQL database username */
define( 'DB_USER', 'username_here' );

/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

Change the database name with the dtabase you just created using phpMyAdmin.

define( 'DB_NAME', 'thissite' );

Now change the database username with “root”.

/** MySQL database username */
define( 'DB_USER', 'root' );

Remove the database password and leave empty.

/** MySQL database password */
define( 'DB_PASSWORD', '' );

Save “wp-config.php” file and close it.

Now open your WordPress website in web browser as http://localhost/your_iste/

In my case, the site folder name is “thisiste” so I will type http://localhost/thisiste/ open run the site.

Well done! Just fill in the username and password and other details and you are ready to design your wordpress site.

Conslusion:

You can design wordpress site on local server and move it to the live server when it is ready!

Video Tutorial:

Leave a Reply

Back To Top