php - 加载资源失败:服务器响应状态为 500 () PHP 网站
问题描述
当我尝试打开我的 PHP 网站时,它在控制台中给出了 500 错误。错误日志显示此错误:
PHP Fatal error: require_once(): Failed opening required '../assets/init.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home3/bcaftanc/public_html/thequrantube/index.php on line 13
但是在第 13 行的 index.php 文件中,我没有像错误所说的那样,它是这样写的:
require_once('./assets/init.php');
可能是什么问题 ?
解决方案
推荐阅读
- node.js - 如何在服务器 Node.js 上安装 Cloudflare Origin CA 证书
- laravel - laravel 望远镜没有什么可迁移的
- html - 如何使用 Socket.io 修复这个 CORS?
- java - 使用 Java 只有一个对象可用时将 XML 转换为 JSON 数组
- django - 允许用户删除但保留对他们的引用
- linux - Ubuntu 上的 Docker 无法连接到 localhost 但可以连接到它的 ip
- c# - 你调用的对象是空的?(异常错误~ASP.NET MVC)
- javascript - 代码在本地主机上运行良好,但在托管主机提供商上运行良好 - 在互联网上搜索了 3 天,到目前为止许多尝试都是徒劳的
- c# - 在 EventHandler 中调用 this.StateHasChanged
- php - MySQL 更新查询使用等于 (=) 和 LIKE 与字母数字标准值