[英]opencart moving to domain
我通過將文件移動並導出和導入數據庫,並更改config.php文件,將網站從opencart中的子域移動到了域中,但是出現了以下錯誤:
Warning: require_once(/home/inti/public_html/system/startup.php): failed to open stream: Permission denied in /home/smartmobile/public_html/index.php on line 17
Fatal error: require_once(): Failed opening required '/home/inti/public_html/system/startup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/smartmobile/public_html/index.php on line 17
這通常是文件夾權限問題或在配置文件中設置的路徑無效。
您可以通過以下方式獲取路徑
echo getcwd();
並在配置文件中使用此路徑。
可以通過多種方法檢查和更改權限,具體取決於您對服務器的訪問權限。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.