download 7.x-2.62.tar.gz file from the below link
(https://www.drupal.org/project/commerce_kickstart)
extract the commerce module by right click-> extract here
rename it to commerce
sudo mv commerce /opt/lampp/htdocs/
create Database
Go to your Database Manager (in our case PhpMyAdmin) and create a new database.
Keep the name of this database something that you will remember during installation of the distribution.
give the database name as commerce(NOTE: the database name should be same as commerce folder name)
in our case the name given is commerce
database name:commerce
utf8_general_ci
click on create
click on privileges-> Add user account
you can give any name
user name:commerce
choose host name:local
password:commerce
retype password:commerce
in global privileges check the check all option
then click on go option
then in Administrator section check grant
then again click on go
go to the browser type
http://localhost/commerce
click on let's get started
----------------------------------------------
ERROR FOUND
File system
The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the
installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more
information, see INSTALL.txt or the online handbook.
-----------------------------------------------
SOLVE THIS BY
go to the directory
cd /opt/lampp/htdocs/commerce/
sudo mkdir sites/default/files
sudo chmod a+w sites/default/files
----------------------------------------------------
ONE MORE ERROR MESSAGE
Settings file
The settings file does not exist.
The Commerce Kickstart installer requires that you create a settings file as part of the installation process. Copy the ./sites/default/default.settings.php file to ./sites
/default/settings.php. More details about installing Drupal are available in INSTALL.txt.
----------------------------------------------------
go to the directory
/opt/lampp/htdocs/commerce/sites/default
cp default.settings.php settings.php
sudo chmod a+w settings.php
go to the browser and
click on proceed with the installation
--------------------------------------------------------
Give the Database Name
Database Username
Database password
(For our convenience we have kept all as commerce)
Click on Save and Continue
After installing all modules remove write permission
sudo chmod go-w sites/default/files
go to the directory
/opt/lampp/htdocs/commerce/sites/default
sudo chmod go-w settings.php
cd /opt/lampp/htdocs/commerce
sudo chmod go-w sites/default/files