如何在OpenCart中设置配置?

时间:2012-06-02 05:53:41

标签: php mysql opencart

  

警告:require_once(/sgweb1/minufashion/system/startup.php)   [function.require-once]:无法打开流:没有这样的文件或   目录   D:\ inetpub \ vhosts \ sgwebgene.com \ httpdocs \ minufashion \ index.php上线   15

     

致命错误:require_once()[function.require]:打开失败   required' /sgweb1/minufashion/system/startup.php'   (include_path ='。; ./ includes; ./ pear')in   D:\ inetpub \ vhosts \ sgwebgene.com \ httpdocs \ minufashion \ index.php上线   15

我正在托管服务器然后显示错误。

1 个答案:

答案 0 :(得分:6)

注意路径差异:

sgwebgene.com\httpdocs\minufashion\index.php

/sgweb1/minufashion/system/startup.php

部署opencart后是否更改了文件夹?

config.php中有这样的行:

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/');

确保这些适合您的设置