Installing WordPress on Localhost

Monday, 16 September 2013
New to WordPress? Want to learn how to use this amazing CMS of all time. You might want to become a WordPress developer.  So anyways, whatever the reason is, if you want to install WordPress on your local host, read this post to help you manage WordPress locally.


Things you need

You need a Server, PHP and SQL Database to make WordPress install and work properly. Now you have two options to go with, either download and install all these one by one and install them, or there is another easier way. Click here to download xampp and install it in one click.

It contain Apache Server, PHP and MySQL database, So you don't need to install them separately.

Once you installed xampp, open it's Control Panel and Start Apache, MySQL.

Now you need to download the latest package from WordPress site. Extract the package files somewhere and the copy 'wordpress' folder.

Now Go to C:\xampp\htdocs and paste it here.

You have added the WordPress files successfully, now you need to install Your local wordpress site.
Open up your browser, type localhost and press enter. It will show up default xampp screen. Now click on PHPMyAdmin under Tools

  • Now click on users tab from header menu.
  • Click Add user and
  • Enter Your name in Front of Username:
  • Select Local from Drop-down menu of Host:
  • Choose a new password to create, in from of Password, and repeat it.

Now from the Database for user section.

Click Create database with same name and grant all privileges.
This is create a database with your name and all the database privileges will be provided to the user. Now click add user.

Database work is completed. Please note the details of database you created, Database name, Username, User password.

Now go to C:\xampp\htdocs\wordpress
Rename wp-config-sample.php file to wp-config.php and open it.

Now you need to edit database details. File the below code in your 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');



Once you are done, save your changes in the file.
Now open your browser and type, localhost/wordpress and press enter.

Wow! You just installed WordPress on your local host.

Have Fun!

0 comments:

Post a Comment