Top Menu

Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Tuesday 9 May 2017

Install WordPress locally on your Windows using WAMP Server

Having WordPress set up as a localhost on my computer has become invaluable to my workflow, particularly as I regularly test themes and plugins.


WordPress is a free and open source tool – a content management system (CMS) based on PHP and MySQL. WordPress powers 24% of the internet and growing stronger day by day. Numerous websites are created using WordPress every single day. It is the most powerful hosting platform and is the easiest way to create a free website or blog in short span of time.

WordPress is a fun blogging software, and if you are one of those who likes to try new things on your WordPress blog, it’s always a good idea to get a local installation of WordPress on your system. You can use it to try new WordPress plugin, making changes in your theme and many more task.

Benefits of using WordPress:

  • Before setting up and configuring custom domain using WordPress, one can always install WordPress locally for testing or learning or developing plugins for the same.
  • Users can install WordPress in their machines to test the themes, plugins and ensure that setup is perfect to deploy to the server.
  • WordPress is very easy to use. Adding new pages, blog posts, images, etc. on a regular basis is a can be done quickly.
  • It is SEO friendly.
  • As an administrator of a WordPress site, one can set-up multiple users for the website and assign access levels and capabilities to each user.
  • Supports Multilanguage

Did you know that you can install WordPress on your own Windows computer for learning and testing? Working with WordPress for Windows is a great way to test plugins, updates, and other website changes before pushing them live to your audience.

Setting up a local server environment for WordPress isn’t difficult and will save you time in the long run since you won’t have to install and uninstall a fresh copy of WordPress online each time you test or develop something for WordPress.
There are many options for Windows. I’ve previously looked at how to set up a localhost using XAMPP. WAMP is a Windows web development environment and is combination of Apache2, PHP, and a MySQL database. In this tutorial I’ll walk you through how to set up WampServer, including installation, creating a MySQL database, and installing WordPress.


Please follow the steps mentioned in below link for installing WAMP on your PC

Installing WampServer on your PC

After installing WAMP you have to run the WAMP server. Always remember to first activate WAMP server simply by double clicking on its icon. After activating it, the icon will become green from red in the task-bar. Also make sure that you have started 'Start all services'

The color of the WampServer icon allows you to quickly determine the status of your servers.
  1. If the icon is red, the server isn’t running and is offline. You may need to restart WampServer or check out the WampServer forums for more help.
  2. If it is orange, the server is partially running, i.e. Apache may be running and the MySQL service is offline. Click on the WampServer icon and check the service status next to Apache and MySQL to see if they are running. You may need to restart WampServer, and if it still doesn’t work, check out the WampServer forums.
  3. If the icon is green, it means the server is running and you should be able to access localhost from your browser.
To test it, go to “localhost” in your browser.


Note: At times, While installing sometimes WAMP shows error 'MSVCR100.dll' is missing.


How to remove or fix this  above error click here

Before we install WordPress, we need a database.

Setting Up Your MySQL Database

Click on the WampServer icon in your system tray and then click on phpMyAdmin.


 A new browser window will automatically open with the phpMyAdmin interface.


Click on “Databases” near the top-left and you’ll be prompted to create a new database. I’ve called mine “WP”.
When you’ve entered a name, click “Create” and close the window.


Download and Install WordPress

 

Download the latest version of WordPress.
In order to get WordPress working with WampServer you need to unzip WordPress to the right folder. Extract WordPress to the C:/wamp/www/ folder.
You can rename the WordPress folder whatever you like. I’m going to keep it as “wordpress.”

Next, open your WordPress folder, find the wp-config-sample.php file and rename it wp-config.php. Open the file and scroll down until you see the following lines:


 These lines of code define the login details for your database. Replace “database_name_here” with the name of your database, which in my case is “WP.”
Replace “username_here” with “root” and leave “password_here” blank.
Save the file and close it.
Now we can get on with installing WordPress.
Open your browser and go to http://localhost/wordpress/
The WordPress database setup will start automatically. First it will ask you to select your language. After that it will show you some information about setting up your database. Click the Let’s Go button when you’re ready.
On the next screen, you’ll need to provide your database information. The database name will be the one that you entered in the last step. In our case, we called it test_db.
Your default database username will be root and you can leave the password blank.
Next, click on the submit button and WordPress will create a configuration file for you.


 After this you will see a screen informing you that WordPress has successfully connected to your database, and you can proceed with the installation.
Go ahead and click the Run the install button.


On the next screen, you can fill out the installation form. You need to provide a title for your website, choose an admin username / password, and provide admin email address.
Once you’re ready, press the Install WordPress button.


WordPress will quickly run the installation and create database tables. Once done, you will see a success message after the installation is complete.
You can then proceed to your WordPress dashboard by clicking on the Log in button.
Congratulations, you have successfully installed WordPress on a windows computer using WAMP.






No comments:

Post a Comment