0

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_');
?>

我想我的配置文件有什么问题我创建了数据库并导入所有表

4

1 回答 1

0

使用服务器基本路径/home/yoursite/public_html/而不是sitename

于 2013-07-19T18:50:23.813 回答