Magento Installation on Ubuntu with XAMPP



1. Installing & Setting up XAMPP



Download latest xampp-linux-1.7.3a.tar.gz version from apache friends and save it to a directory of your choice. On a  terminal execute:     

     sudo tar -xzvf xampp-linux-1.7.3a.tar.gz -C /opt


Follow the Steps 3 and 4 apache friends link.



2. Installing Magento

Now Where to set up magento folder. Download mangento and setup under /opt/lampp/htdocs. 
follow below given few lines on your terminal:
      sudo su
      cd /opt/lampp/htdocs
      mkdir magentosite
      cd magentosite

Download Latest magento version with demo data from Magentoecommerce site and copy that tar.gz 
files under  /opt/lampp/htdocs/magentosite. Here, I am downloanding magento-1.4.2.0.tar.gz (magento version), 
magento-sample-data-1.2.0.tar.gz 

     cp magento-1.4.2.0.tar.gz /opt/lampp/htdocs/magentosite/
     cp magento-sample-data-1.2.0.tar.gz /opt/lampp/htdocs/magentosite/
     
Uncompress downloaded files
     cd /opt/lampp/htdocs/magentosite/
     tar -zxvf magento-1.4.2.0.tar.gz
     tar -zxvf magento-sample-data-1.2.0

Move uncompressed data files to appropriate magento directory
     mv magento-sample-data-1.2.0/media/* magento/media/
     mv magento-sample-data-1.2.0/magento_sample_data_for_1.2.0.sql magento/data.sql


Move magento directory and its content to parent directory,i.e. under /opt/lampp/htdocs/magentosite
     mv magento/* magento/.htaccess .

Change initial permissions of files

     chmod o+w var var/.htaccess app/etc
     chmod -R o+w media


Setup test data to the database
     mysql -u root magentotestdb < data.sql

Cleanup downloaded files
      rm -fr magento-sample-data-1.2.0/ magento/
      rm magento-sample-data-1.2.0.tar.gz magento-1.4.2.0.tar.gz data.sql 

BROWSE! AND INSTALL

We’re done! Navigate to http://localhost/magentosite
During the installation procedure, choose localhost as address of host and give the database name used above (magentotestdb).




  

Comments

  1. Thank you Sir! Your doc help me so much.
    - Krupesh Laiya

    ReplyDelete
    Replies
    1. Thanks for reading Krupesh. This post is too old but happy to read your feedback. It will motivate me to activate my blog again with some technical writings... :)

      Delete

Post a Comment

Popular posts from this blog

OpenERP 7 installation

Geeta - Sea of divine knowledge and Motivation for Life time

Startup Script for openerp-server