Day by Day E-Commerce sites getting popular in India. Magento is one of the best Free E-Commerce solution. Magento based on php technology. Magento come in 3 editions Community,Enterprise and pro. Among these Community edition is free and open source. You can use it as you like. In this tutorial I will explain you how to install Magento Community edition on localhost. You can check official magento demo site from below link.
You first need to download the following tools.
Download above two files.Usually i prefer tar.bz2 because they are very less in size and also you can extract it with winrar.
I am doing all this process on windows7.
Its easy just run the file you have downloaded earlier. Select the drive where you want to install.
Change Config in php.ini
For Magento you need to do change some config changes to your XAMPP.
Go to xampp>php and open php.ini.
Search for _max_execution_time_. By default its value is 60, Change it to 200 so that _max_execution_time = 200_.
If you don’t do it will throw an exception in installation process.
Search for_;extension=php_curl.dll_ and uncomment it my removeing ; from that line.
otherwise while installing you will get the error
Now restart your apache server. Your phpinfo must be
Run your Apache and mysql servers form XAMPP control panel.
Goto http://localhost/phpmyadmin/ create new database say magento we will use it later.
Now extract the previouly downloaded magento-220.127.116.11.tar.bz2(current version) using winrar to XAMPP>htdocs.
Go to http://localhost/magento/
just follow the screen shots below.
Select your timezone,locale and currency(ie.Indian Rupee if India)
Enter your Database details. Previosusly we have created a database that should be entered here.
Here you need to enter admin details. You need to select Encryption key. If you leave it blank it will create random key for you.
Installing sample data
You can install sample data from the magentocommerce.com so that you can see how it look with data. Extract the sample data magento-sample-data-18.104.22.168.tar.bz2 which you have download earler .In the extracted folder you have magento-sample-data-22.214.171.124.sql and media folder.
Copy the media folder into meganto install root folder.
Now open the megento-sample-data-126.96.36.199.sql in a notpad and copy the complete sql script. Go to http://localhost/phpmyadmin/index.php?db=magento change the magento value here with your db name.
click on sql tab and past the sql script there and click on GO. Thats it you successfully installed magento in your localhost.
To go to the front end just go http://localhost/magento/
For admin got http://localhost/magento/admin/
Front End screen