How to set configuration in OpenCart?

Warning: require_once (/sgweb1/minufashion/system/startup.php) [function.require-once]: could not open the stream: there is no such file or in the directory D: \ inetpub \ vhosts \ sgwebgene.com \ httpdocs \ minufashion \ index .php on line 15

Fatal error: require_once () [function.require]: Failed to open required '/sgweb1/minufashion/system/startup.php' (include_path = '.; ./ includes; ./ pear') in D: \ inetpub \ vhosts \ sgwebgene.com \ httpdocs \ minufashion \ index.php on line 15

I host the server, then an error is displayed.

+4
source share
1 answer

Failure along the way:

sgwebgene.com\httpdocs\minufashion\index.php 

and

 /sgweb1/minufashion/system/startup.php 

Did you change your folders after deploying opencart?

In config.php there are such lines:

 define('DIR_APPLICATION', '/home/xxxx/public_html/shop/catalog/'); define('DIR_SYSTEM', '/home/xxxx/public_html/shop/system/'); define('DIR_DATABASE', '/home/xxxx/public_html/shop/system/database/'); define('DIR_LANGUAGE', '/home/xxxx/public_html/shop/catalog/language/'); define('DIR_TEMPLATE', '/home/xxxx/public_html/shop/catalog/view/theme/'); define('DIR_CONFIG', '/home/xxxx/public_html/shop/system/config/'); define('DIR_IMAGE', '/home/xxxx/public_html/shop/image/'); define('DIR_CACHE', '/home/xxxx/public_html/shop/system/cache/'); define('DIR_DOWNLOAD', '/home/xxxx/public_html/shop/download/'); define('DIR_LOGS', '/home/xxxx/public_html/shop/system/logs/'); 

Make sure they fit your installation.

+6
source

Source: https://habr.com/ru/post/1415686/


All Articles