Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to configure opencart 2.2.0.0 in your localhost with Virtual host

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 816
    Comment on it

    Opencart is one of the most popular E-commerce Framework in PHP. Opencart is easy to develop high level E-commerce websites. It's follow nicely defined MVC structure. This tutorial is belong to who are looking for best E-commerce solution.

    We are going to setup Opencart on ubantu development environment.

     

    Step 1: Download the stable release from

    http://www.opencart.com/?route=download/download 

     

    Step 2: Extract file

    Note:- My project name is basket.me and Project location is /var/www/html/staging/basket

     

    Step 3: Upload all file from upload directory to /var/www/html/staging/basket

     

    Step 4: rename config-dist.php to config.php and admin/config-dist.php to admin/config.php

     

    Step 5: For Linux/Unix make sure the following folders and files are writeable.

    chmod -R 777 /var/www/html/staging/basket/system/storage/
    chmod -R 777 /var/www/html/staging/basket/image/

    Now if all configuration are correct. you are able to access website using http://localhost/staging/basket but hold on we are not done yet! We are going to setup virtual domain for our project.

     

    Step 6: Make host entry in hosts

    127.0.0.1 basket.me

     

    Step 7: make copy of 000-default.conf

    sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/basket.conf

    Edit basket.conf

    ServerName basket.me
    DocumentRoot /var/www/html/staging/basket

    Add code for directory .htaccess permission

    <Directory /var/www/html/staging/basket>
                Options Indexes FollowSymLinks MultiViews
                # changed from None to FileInfo
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

    before </VirutualHost>

     

    Step 8: run

    sudo a2ensite basket.conf
    sudo service apache2 reload

    Now virtual domain setup process is complete. you can access your site using http://basket.me

    Accept the term and condition and continue follow the remain step. Thats it! Your store is ready to use.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: