Skip to main content

Thread: Magento Installation In Ubuntu 12.04LTS


magento 1.7 installation guide along 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 did terminal)

install apache 2 webserver

code:
sudo apt-get install apache2
install php5

code:
sudo apt-get install php5
install mysql server

code:
sudo apt-get install mysql-server

apart default installation of lamp need install php5-curl,from terminal issue command

code:
sudo apt-get install php5-curl
after need enable mod_rewrite issuing command in terminal(this clean seo urls,you can skip if not want)

code:
sudo a2enmod rewrite
now open up(not sure on this...edit if required )

code:
/etc/apache2/sites-enabled/000-default
and change text “allowoverride none” “allowoverride all”

restart apache

code:
/etc/init.d/apache2 restart

install magento
---------------

1. download files.

magento-1.7.0.0.tar.bz2

2. download sample data.

magento-sample-data-1.6.1.0.tar.bz2

3. extract sampledata,you .sql file , folder named media.this must done before magento installation,if did want magento installation sample data or else skip.

create database , import sql file it.

4. extract magento-1.7.0.0.tar.bz2 webroot(www) , copy
“catalog” folder “sampledata/media” folder “webroot/ma
gento/media”.


5. give full permission magento folder in www

chmod -rv 777 /var/www/magento

6. run install

http://localhost/magento

7.during installation process,you can select option
'server (apache) rewrites', if had enabled
mod_rewrite in apache2.


after installation finishes,you won't able log admin area of magento.


fix it.

copy files @ location

code:
 www/magento/app/code/core/mage/core/model/session/abstract/varien.php   www/magento/app/code/local/mage/core/model/session/abstract/varien.php
the above 'to' location not exists,you need create folders , subfolders , paste file varien.php , edit file.

open above file , locate following php code

code:
if (isset($cookieparams['domain'])){             $cookieparams['domain'] = $cookie->getdomain();  }
and replace below code.

code:
if (isset($cookieparams['domain']) && !in_array("127.0.0.1",self::getvalidatordata())){             $cookieparams['domain'] = $cookie->getdomain();  }
now able log admin area.

that's !! you're done.

this great write , i'm sure me later today when tackle this, have question.

i'm setting local dev environment on laptop. difficult transfer on live server later on? ask out of curiousity because time take transfer entire magento install server days think. quite large amount of files transfer can tell.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Magento Installation In Ubuntu 12.04LTS


Ubuntu

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?