Install opencart on a local server using xampp
Posted: Mon Dec 05, 2011 9:23 pm
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
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
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', '');
?>
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