php 如何在 OpenCart 中设置配置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10860150/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to set the config in OpenCart?
提问by 3lok
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
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
警告:require_once(/sgweb1/minufashion/system/startup.php) [function.require-once]:无法打开流:D:\inetpub\vhosts\sgwebgene.com\httpdocs\minufashion\index 中没有这样的文件或目录第 15 行的 .php
致命错误:require_once() [function.require]: Failed opening required '/sgweb1/minufashion/system/startup.php' (include_path='.;./includes;./pear') 在 D:\inetpub\vhosts\ sgwebgene.com\httpdocs\minufashion\index.php 第 15 行
I am hosting to the server then the error is showing.
我托管到服务器然后显示错误。
回答by RandomWhiteTrash
Notice path discrepancy:
注意路径差异:
sgwebgene.com\httpdocs\minufashion\index.php
and
和
/sgweb1/minufashion/system/startup.php
Did you change your folders after deploying opencart?
部署 opencart 后,您是否更改了文件夹?
In config.phpthere are lines like these:
在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
确保这些适合您的设置

