opencart我尝试移动但是我收到了错误 像这样
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /www/zxq.net/r/a/s/rasvi/htdocs/shop/index.php on line 15
Warning: require_once(http://zxq.net/r/a/s/rasvi/htdocs/shop/system/startup.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /www/zxq.net/r/a/s/rasvi/htdocs/shop/index.php on line 15
Fatal error: require_once() [function.require]: Failed opening required 'http://zxq.net/r/a/s/rasvi/htdocs/shop/system/startup.php' (include_path='.:/usr/lib/php') in /www/zxq.net/r/a/s/rasvi/htdocs/shop/index.php on line
15
所以我打开了配置文件
到
define('HTTP_SERVER', 'http://www.rasvi.zxq.net/shop/');
define('HTTP_IMAGE', 'http://www.rasvi.zxq.net/shop/image/');
define('HTTP_ADMIN', 'http://www.rasvi.zxq.net/shop/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://www.rasvi.zxq.net/shop/');
define('HTTPS_IMAGE', 'http://www.rasvi.zxq.net/shop/image/');
// DIR
define('DIR_APPLICATION', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/catalog/');
define('DIR_SYSTEM', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/system/');
define('DIR_DATABASE', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/system/database/');
define('DIR_LANGUAGE', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/catalog/language/');
define('DIR_TEMPLATE', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/catalog/view/theme/');
define('DIR_CONFIG', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/system/config/');
define('DIR_IMAGE', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/image/');
define('DIR_CACHE', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/system/cache/');
define('DIR_DOWNLOAD', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/download/');
define('DIR_LOGS', 'http://zxq.net/r/a/s/rasvi/htdocs/shop/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'myusername');
define('DB_PASSWORD', 'mypassword');
define('DB_DATABASE', 'rasvi_zxq_shop');
define('DB_PREFIX', 'sh_');
?>
我想我的配置文件有什么问题我制作了数据库并导入了所有表格
答案 0 :(得分:0)
使用服务器基本路径/home/yoursite/public_html/
代替sitename