having trouble moving from xampp to web-server (his might be answered before, i'm newbee to all this)
gettting this error:
Warning: require_once(public_html/shop/system/startup.php): failed to open stream: No such file or directory in /home/virtual/ibarts.dk/public_html/shop/index.php on line 17
Fatal error: require_once(): Failed opening required 'public_html/shop/system/startup.php' (include_path='.:/usr/local/php/lib/php') in /home/virtual/ibarts.dk/public_html/shop/index.php on line 17
the problem is guess is the way i altered the config.php file:
<?php
// HTTP
define('HTTP_SERVER', 'http://www.ibarts.dk/shop/');
// HTTPS
define('HTTPS_SERVER', 'http://www.ibarts.dk/shop/');
// DIR
define('DIR_APPLICATION', 'public_html/shop/catalog/');
define('DIR_SYSTEM', 'public_html/shop/system/');
define('DIR_LANGUAGE', 'public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', 'public_html/shop/system/config/');
define('DIR_IMAGE', 'public_html/shop/image/');
define('DIR_CACHE', 'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'public_html/shop/system/download/');
define('DIR_UPLOAD', 'public_html/shop/system/upload/');
define('DIR_MODIFICATION', 'public_html/shop/system/modification/');
define('DIR_LOGS', 'public_html/shop/system/logs/');
it would be nice to know how my config.php should look thanks
attachment filestructure at http://www.ibarts.dk:
Attachments
ScreenHunter_27 Mar. 22 13.51.jpg (43.46 KiB) Viewed 4599 times
Code: Select all
// DIR
define('DIR_APPLICATION', 'public_html/shop/catalog/');
define('DIR_SYSTEM', 'public_html/shop/system/');
define('DIR_LANGUAGE', 'public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', 'public_html/shop/system/config/');
define('DIR_IMAGE', 'public_html/shop/image/');
define('DIR_CACHE', 'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'public_html/shop/system/download/');
define('DIR_UPLOAD', 'public_html/shop/system/upload/');
define('DIR_MODIFICATION', 'public_html/shop/system/modification/');
define('DIR_LOGS', 'public_html/shop/system/logs/');
// DIR
define('DIR_APPLICATION', 'home/username/public_html/shop/catalog/');
define('DIR_SYSTEM', 'home/username/public_html/shop/system/');
define('DIR_LANGUAGE', 'home/username/public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'home/username/public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', home/username/'public_html/shop/system/config/');
define('DIR_IMAGE', 'home/username/public_html/shop/image/');
define('DIR_CACHE', home/username/'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'home/username/public_html/shop/system/download/');
define('DIR_UPLOAD', 'home/username/public_html/shop/system/upload/');
define('DIR_MODIFICATION', home/username/'public_html/shop/system/modification/');
define('DIR_LOGS', 'home/username/public_html/shop/system/logs/');
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
kirkhall wrote:At most of the popular web hosts the below section of your configthe paths would be more likeCode: Select all
// DIR define('DIR_APPLICATION', 'public_html/shop/catalog/'); define('DIR_SYSTEM', 'public_html/shop/system/'); define('DIR_LANGUAGE', 'public_html/shop/catalog/language/'); define('DIR_TEMPLATE', 'public_html/shop/catalog/view/theme/'); define('DIR_CONFIG', 'public_html/shop/system/config/'); define('DIR_IMAGE', 'public_html/shop/image/'); define('DIR_CACHE', 'public_html/shop/system/cache/'); define('DIR_DOWNLOAD', 'public_html/shop/system/download/'); define('DIR_UPLOAD', 'public_html/shop/system/upload/'); define('DIR_MODIFICATION', 'public_html/shop/system/modification/'); define('DIR_LOGS', 'public_html/shop/system/logs/');
// DIR
define('DIR_APPLICATION', 'home/username/public_html/shop/catalog/');
define('DIR_SYSTEM', 'home/username/public_html/shop/system/');
define('DIR_LANGUAGE', 'home/username/public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'home/username/public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', home/username/'public_html/shop/system/config/');
define('DIR_IMAGE', 'home/username/public_html/shop/image/');
define('DIR_CACHE', home/username/'public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'home/username/public_html/shop/system/download/');
define('DIR_UPLOAD', 'home/username/public_html/shop/system/upload/');
define('DIR_MODIFICATION', home/username/'public_html/shop/system/modification/');
define('DIR_LOGS', 'home/username/public_html/shop/system/logs/');
i tryed this:
// DIR
define('DIR_APPLICATION', 'home/username/public_html/shop/catalog/');
define('DIR_SYSTEM', 'home/username/public_html/shop/system/');
define('DIR_LANGUAGE', 'home/username/public_html/shop/catalog/language/');
define('DIR_TEMPLATE', 'home/username/public_html/shop/catalog/view/theme/');
define('DIR_CONFIG', home/username/public_html/shop/system/config/');
define('DIR_IMAGE', 'home/username/public_html/shop/image/');
define('DIR_CACHE', home/username/public_html/shop/system/cache/');
define('DIR_DOWNLOAD', 'home/username/public_html/shop/system/download/');
define('DIR_UPLOAD', 'home/username/public_html/shop/system/upload/');
define('DIR_MODIFICATION', home/username/public_html/shop/system/modification/');
define('DIR_LOGS', 'home/username/public_html/shop/system/logs/');
which gave: Parse error: syntax error, unexpected 'DIR_IMAGE' (T_STRING) in /home/virtual/ibarts.dk/public_html/shop/config.php on line 14
i think i am getting further
thanks
Code: Select all
define('DIR_CONFIG', home/username/public_html/shop/system/config/');
Since many years I am arguing for creating the configs like that (which would be much simplier when moving/editing) - frontend config (similiar goes for the admin config):
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://MYSHOP.com/');
// HTTPS
define('HTTPS_SERVER', 'https://MYSHOP.com/');
$dir = 'public_html/shop/';
// DIR
define( 'DIR_APPLICATION', $dir . 'catalog/' );
define( 'DIR_SYSTEM', $dir . 'system/' );
define( 'DIR_LANGUAGE', $dir . 'catalog/language/' );
define( 'DIR_TEMPLATE', $dir . 'catalog/view/theme/' );
define( 'DIR_CONFIG', $dir . 'system/config/' );
define( 'DIR_IMAGE', $dir . 'image/' );
define( 'DIR_CACHE', $dir . 'system/storage/cache/' );
define( 'DIR_DOWNLOAD', $dir . 'system/storage/download/' );
define( 'DIR_LOGS', $dir . 'system/storage/logs/' );
define( 'DIR_MODIFICATION', $dir . 'system/storage/modification/' );
define( 'DIR_UPLOAD', $dir . 'system/storage/upload/' );
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Basically true, but if you are moving and have to edit the configs, it would be easier if only 1 line has to be edited.Randem wrote:If you just installed OpenCart on the new server it would create everything in your config file for you.
But currently I (as developer and maintainer of a few sites) have to edit each week around 200 lines - boring!
define('DIR_APPLICATION', '/home/virtual/ibarts.dk/public_html/catalog/');
it was the home/virtual which i could not figure out. afterwards i moved all the files, i localy have altered, and every thing is working ok
thanks all
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Users browsing this forum: No registered users and 141 guests