ivikas
May 4th, 2012, 11:24 AM
Magento 1.7 Installation Guide Along With Sample Data
Target System
Operating System : Ubuntu 12.04 LTS
Apache Version : 2.2.22
PHP Version : 5.3.10-1
MySQL Version : 5.2.22
Install LAMP in Ubuntu (What i did from terminal)
Install Apache 2 WebServer
sudo apt-get install apache2
Install PHP5
sudo apt-get install php5
Install Mysql Server
sudo apt-get install mysql-server
Apart from default installation of LAMP we need to install php5-curl,from terminal issue the command
sudo apt-get install php5-curl
After this you need to enable mod_rewrite by issuing this command in the terminal(This is for Clean SEO URLS,you can skip this if you do not want)
sudo a2enmod rewrite
Now Open up(Not Sure on this...edit if required )
/etc/apache2/sites-enabled/000-default
And change text FROM “AllowOverride None” TO “AllowOverride All”
Finally restart the apache
/etc/init.d/apache2 restart
Install Magento
---------------
1. Download the files.
magento-1.7.0.0.tar.bz2
2. Download the sample data.
magento-sample-data-1.6.1.0.tar.bz2
3. Extract the sampledata,you will get a .sql file and a folder named media.This MUST BE DONE before Magento Installation,if you did want Magento Installation with SAMPLE DATA or else skip.
Create a Database and import this sql file into it.
4. Extract magento-1.7.0.0.tar.bz2 to your webroot(www) and copy
“catalog” folder FROM “sampledata/media” folder TO “webroot/ma
gento/media”.
5. Give full permission to your Magento Folder in www
chmod -Rv 777 /var/www/magento
6. Now Run the install
http://localhost/magento
7.During the installation process,you can select the option
'Server (Apache) Rewrites', If you had previously enabled
mod_rewrite in Apache2.
Finally after the installation finishes,you won't be able to log into the Admin Area of magento.
This is the fix for it.
Copy the files at THIS LOCATION
www/magento/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
TO
www/magento/app/code/local/Mage/Core/Model/Session/Abstract/Varien.php
The above 'TO' LOCATION DOES NOT Exists,you need to create folders and subfolders and paste the file Varien.php and Edit this file.
Open the above file and locate the following php code
if (isset($cookieParams['domain'])){
$cookieParams['domain'] = $cookie->getDomain();
}
And Replace it with the below code.
if (isset($cookieParams['domain']) && !in_array("127.0.0.1",self::getValidatorData())){
$cookieParams['domain'] = $cookie->getDomain();
}
Now you will be able to log into the Admin Area.
That's all !! You're Done.
Target System
Operating System : Ubuntu 12.04 LTS
Apache Version : 2.2.22
PHP Version : 5.3.10-1
MySQL Version : 5.2.22
Install LAMP in Ubuntu (What i did from terminal)
Install Apache 2 WebServer
sudo apt-get install apache2
Install PHP5
sudo apt-get install php5
Install Mysql Server
sudo apt-get install mysql-server
Apart from default installation of LAMP we need to install php5-curl,from terminal issue the command
sudo apt-get install php5-curl
After this you need to enable mod_rewrite by issuing this command in the terminal(This is for Clean SEO URLS,you can skip this if you do not want)
sudo a2enmod rewrite
Now Open up(Not Sure on this...edit if required )
/etc/apache2/sites-enabled/000-default
And change text FROM “AllowOverride None” TO “AllowOverride All”
Finally restart the apache
/etc/init.d/apache2 restart
Install Magento
---------------
1. Download the files.
magento-1.7.0.0.tar.bz2
2. Download the sample data.
magento-sample-data-1.6.1.0.tar.bz2
3. Extract the sampledata,you will get a .sql file and a folder named media.This MUST BE DONE before Magento Installation,if you did want Magento Installation with SAMPLE DATA or else skip.
Create a Database and import this sql file into it.
4. Extract magento-1.7.0.0.tar.bz2 to your webroot(www) and copy
“catalog” folder FROM “sampledata/media” folder TO “webroot/ma
gento/media”.
5. Give full permission to your Magento Folder in www
chmod -Rv 777 /var/www/magento
6. Now Run the install
http://localhost/magento
7.During the installation process,you can select the option
'Server (Apache) Rewrites', If you had previously enabled
mod_rewrite in Apache2.
Finally after the installation finishes,you won't be able to log into the Admin Area of magento.
This is the fix for it.
Copy the files at THIS LOCATION
www/magento/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
TO
www/magento/app/code/local/Mage/Core/Model/Session/Abstract/Varien.php
The above 'TO' LOCATION DOES NOT Exists,you need to create folders and subfolders and paste the file Varien.php and Edit this file.
Open the above file and locate the following php code
if (isset($cookieParams['domain'])){
$cookieParams['domain'] = $cookie->getDomain();
}
And Replace it with the below code.
if (isset($cookieParams['domain']) && !in_array("127.0.0.1",self::getValidatorData())){
$cookieParams['domain'] = $cookie->getDomain();
}
Now you will be able to log into the Admin Area.
That's all !! You're Done.