Monday, December 1, 2014

How to install Magento on WAMP server localhost ?

Installing WAMP:

  1. Download WAMP from http://www.wampserver.com/en/.

    Download Wampserver and install Magento on WAMP
  2. Install and start the WAMP server.

    wamp-icon
  3. Make sure that your wamp icon is green, if it’s not green then it’s not active.
    To make it active click on it and “Restart All Services”

    restart-wamp
  4. Open any browser and type localhost or 127.0.0.1 on the address bar and you will see your WAMP server dashboard page.

    wamp-dashboard
Download Magento CE:
You can download magento community edition from this link. You can select your format of choice and download.

download magento

Installing Magento:-

Now that you have the server all set, you can start the process of installing Magento.
Extract the downloaded Magento file. Inside the extracted file you will see a folder named “magento”. You have to copy this folder in the root directory of your WAMP server. To get to the root directory, click on green WAMP icon and click “www directory”, your server root directory will open up.

www root folder

Copy the “magento” folder in this directory.
Ok, so now you have the magento files ready for installation. But before you start installation, you have to create database for your site.
Create Database:
In your WAMP server Dashboard click on phpMyadmin link in Tools section.

create-database phpmyadmin

This will open the phpMyAdmin Page.
Click on the database tab and type in the database name (suppose we name it magento1) and create the new database.

phpmyadmin-database creation

Your database creation is complete.

Server configuration:

For error-free installation you have to change some settings of your WAMP server.
  • Enable curl extension
    1. Click on your green WAMP icon -> PHP -> PHP extensions -> php_curl (at the top of the list) and click on it to make it active. Click on WAMP icon and Restart all services.

  • php_curl

    rewrite-module
  • Enable Apache rewrite module
    1. Click on WAMP icon -> Apache -> Apache Modules -> rewrite_module(towards the bottom of the list). Click on WAMP icon and Restart all services.
  • Modify php.ini file
      1. Click on WAMP icon -> PHP -> php.ini

    php-ini-file

    1. This will open up your php.ini file in a text editor. Search for “ max_execution_time “ in the file and you will find something like max_execution_time = 30 , change 30 to some arbitrary large value such as 1500. This change means we are changing the Maximum execution time of our server from 30 seconds to 1500 seconds.
    2. Similarly search for “ max_input_time ” and you will find “max_input_time = 60 ”, change 60 to 1500. Save the php.ini file.
Now you are all set to install magento.
    1. Click on WAMP icon and Restart all services.Wait till the icon turs green.
    2. Open your WAMP dashboard and click on magento folder in Your Project section.

magento-projects

    1. The Magento installation wizard opens up. Accept the terms and conditions and click on continue.

Install-wizard

    1. The Localization settings page appears. No need to change anything here, you can change settings from backend later.
      Click on continue.
    2. Next the Configuration settings page appears. You have to give the Host name which will be “localhost” in this case. The Database name would be the one that we created earlier.
    3. User Name should be the Database user name. If you haven’t changed anything then it should be “root” and the password section would be blank.

database-connection

  1. Keep others as it is and click on continue. This step will take some time as Magento will be creating the Database Tables.
  2. After this the Admin Account creation page appears. Fill in the details and remember the Username and Password, it will be required to access the Admin section. You can leave the Encryption Key section Blank. Click on continue.
  3. That’s it. You are done and have set up your first Magento Webstore.
General errors while installing Magento
Errors Solution
PHP extension “curl” must be loaded Server Configuration Point 1
Maximum execution time of 30 seconds exceeded in ‘Installation path of WAMP/WWW/magento/lib/ZendDB/Statement/Pdo.php Server Configuration Point 3
If you face any other issue while trying to install Magento on WAMP, please feel free to post it in the comment and I will be more than happy to help you.
If you want any other Magento related post you can request that too. I will try my best to write a post on your requests.  Keep an eye here for the upcoming posts.

No comments:

Post a Comment

Dharamart.blogspot.in