INSYNC New Logo

How to install Magento on WAMP server localhost/localcomputer ?

In this post I will show you how to install Magento on WAMP server in your local computer.

Installing Magento on WAMP can be pretty painful for beginners, as Magento requires a lot of server configurations which are not set by default.

*For those who are wondering, Why a server? Well, for running a website you have to host the site in any server so that people on the internet can find it. In this case, you will be turning your computer into a server and will host your website in it so that you can see how your website behaves. But in this case, your website will open only from the server i.e. your local computer.*

Before you start installing you need the following:
1. WAMP server installed on your computer
2. Magento Community Edition Files.

For B2B users, it is a great way to expand their business and achieve a competitive edge. Check out the system requirements to setup Magento 2 B2B eCommerce store!

If you don’t have WAMP installed in your computer, then follow as explained below:

integrate magento with erp

Installing WAMP:

Download WAMP from https://www.wampserver.com/en/.

Download Wampserver and install Magento on WAMP

Install and start the WAMP server.

wamp-icon

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

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


integrate magento with erp

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.

integrate magento with erp

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

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
Click on WAMP icon -> Apache -> Apache Modules -> rewrite_module(towards the bottom of the list). Click on WAMP icon and Restart all services.

 

integrate magento with erp

 

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 turns 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.

integrate magento with erp

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 Hostname 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 username. 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
The maximum execution time of 30 seconds exceeded in ‘Installation path of WAMP/WWW/magento/lib/ZendDB/Statement/Pdo.php Server Configuration Point 3

 

integrate magento with erp

 

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.

Search

Search
On Key

Related Posts

APPSeCONNECT is now a completely new entity headquartered in the US! 🇺🇸