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.
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.
You can rename the “wordpress ” folder with any name you would like.
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”.
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.
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.
You can design wordpress site on local server and move it to the live server when it is ready!