1
| Introduction
|
Magento is the most popular content management system for e-commerce websites. It is used by small businesses and large enterprise companies alike, and can be enhanced by thousands of extensions and themes. Magento uses the MySQL database system, the PHP programming language, and parts of the Zend Framework.
In this tutorial we will see how to install and configure magento in CentOS-6/Fedora21
This tutorial assumes you have already installed and configured LAMP
Click the link here to install LAMP
1. First of all we need to install prerequisite packages :-
1
| yum install php-mcrypt php-curl php-gd curl php-soap -y
|
2. Next we need to create a database for magento:-
1
2
3
4
5
| CREATE DATABASE magento;
CREATE USER magento@localhost IDENTIFIED BY 'magento';
GRANT ALL PRIVILEGES ON magento.* TO magento@localhost IDENTIFIED BY 'magento';
FLUSH PRIVILEGES;
exit
|
3. Next we need to download the latest version from website
1
| https://www.magentocommerce.com/download
|
Download the zip package and move it to the /tmp directory in server.
4. Extract the file with following command:-
1
2
| cd /tmp
unzip magento*.zip
|
5. Now let's create a directory for magento in public_html
1
2
3
4
5
| mkdir /home/sarfaraz/public_html/magento <= Change your path according to yours
You can also copy data in /var/www/html
mv /tmp/magento/. ~sarfaraz/public_html/magento/ #change the path
|
Now change the permission of this folders:-
1
2
| # cd magento
# chmod -R 777 app media var
|
6. After that access it from browser for gui installation:-
1
2
3
| http://192.168.15.47/~sarfaraz/magento/
http://localhost <= If you have in /var/www/html/
|
Configure your Language type, your Timezone and Currency
Configure your database which we have previously created.
Copy the encrption key and put it on safe location
The frontend looks like below:-
The backend looks like below:-
Login with username and password you entered:-
7.You will get this error on first login to resolve do the following:-
Download the patch file from the website and copy it magento folder
Patch number will be give on the screen download the same
Copy the patch in magento directory :-
1
| cp PATCH_SUPEE-6482_CE_1.9.2.0_v1-2015-08-03-06-51-10.sh ~sarfaraz/public_html/magento/
|
Now patch it :-
chmod +x PATCH_SUPEE-6482_CE_1.9.2.0_v1-2015-08-03-06-51-10.sh
sh PATCH_SUPEE-6482_CE_1.9.2.0_v1-2015-08-03-06-51-10.sh
Enjoy using magento
Please do Likes,Share and Comments:-
Subscribe by Email
Follow Updates Articles from This Blog via Email
1 Comments
Awesome, work like charm
Reply Delete