Page 1 of 1

Install opencart on a local server using xampp

Posted: Mon Dec 05, 2011 9:23 pm
by wangllam
I have install xampp to setup a local server at my computer and going to try using Opencart
but when I am using other computer to visit the site, all the images can't display
I investigate a little and found that
the config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/shoppingCart/upload/');
define('HTTP_IMAGE', 'http://localhost/shoppingCart/upload/image/');
define('HTTP_ADMIN', 'http://localhost/shoppingCart/upload/admin/');

// HTTPS
define('HTTPS_SERVER', 'http://localhost/shoppingCart/upload/');
define('HTTPS_IMAGE', 'http://localhost/shoppingCart/upload/image/');

// DIR
define('DIR_APPLICATION', 'C:\xampp\htdocs\shoppingCart\upload/catalog/');
define('DIR_SYSTEM', 'C:\xampp\htdocs\shoppingCart\upload/system/');
define('DIR_DATABASE', 'C:\xampp\htdocs\shoppingCart\upload/system/database/');
define('DIR_LANGUAGE', 'C:\xampp\htdocs\shoppingCart\upload/catalog/language/');
define('DIR_TEMPLATE', 'C:\xampp\htdocs\shoppingCart\upload/catalog/view/theme/');
define('DIR_CONFIG', 'C:\xampp\htdocs\shoppingCart\upload/system/config/');
define('DIR_IMAGE', 'C:\xampp\htdocs\shoppingCart\upload/image/');
define('DIR_CACHE', 'C:\xampp\htdocs\shoppingCart\upload/system/cache/');
define('DIR_DOWNLOAD', 'C:\xampp\htdocs\shoppingCart\upload/download/');
define('DIR_LOGS', 'C:\xampp\htdocs\shoppingCart\upload/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'test');
define('DB_PREFIX', '');
?>
set the absolute path start from C drive so the images can't display on other computer
I have tried to modify the path to ./shoppingCart/upload.....
but it give me errors
how can i config it so I can view the site from other computer

Re: Install opencart on a local server using xampp

Posted: Tue Dec 06, 2011 12:07 pm
by wangllam
???

Re: Install opencart on a local server using xampp

Posted: Tue Dec 06, 2011 2:36 pm
by martinsstuart92
Hi,

Don't know how to do it in xampp. But I am doing the exact same thing using AMPPS http://www.ampps.com. I created a domain of my IP in AMPPS. Then I installed OpenCart(which is provided by Softaculous) in the domain I created. I don't know what does it do exactly but I am able to access OpenCart site from other computer with all the images, theme, etc. AMPPS is using vhost to create domain, that's all I know. Hope this helps. :)