如何在OpenCart中设置配置? [英] How to set the config in OpenCart?
问题描述
警告:require_once(/sgweb1/minufashion/system/startup.php) [function.require-once]:无法打开流:无此文件或 目录在 D:\ inetpub \ vhosts \ sgwebgene.com \ httpdocs \ minufashion \ index.php在线 15
Warning: require_once(/sgweb1/minufashion/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in D:\inetpub\vhosts\sgwebgene.com\httpdocs\minufashion\index.php on line 15
致命错误:require_once()[function.require]:打开失败 必需的'/sgweb1/minufashion/system/startup.php' (include_path ='.; ../includes; ./pear')在 D:\ inetpub \ vhosts \ sgwebgene.com \ httpdocs \ minufashion \ index.php在线 15
Fatal error: require_once() [function.require]: Failed opening required '/sgweb1/minufashion/system/startup.php' (include_path='.;./includes;./pear') in D:\inetpub\vhosts\sgwebgene.com\httpdocs\minufashion\index.php on line 15
我正在托管服务器,然后显示错误.
I am hosting to the server then the error is showing.
推荐答案
注意路径差异:
sgwebgene.com\httpdocs\minufashion\index.php
和
/sgweb1/minufashion/system/startup.php
您在部署opencart之后是否更改了文件夹?
Did you change your folders after deploying 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/');
确保这些设置适合您的设置
Make sure those are proper for your setup
这篇关于如何在OpenCart中设置配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!