致命错误:require_once(): 需要打开失败


Fatal error: require_once(): Failed opening required

这是我第一次上传网站 - http://indianrestaurantmumbai.com/,我已经将所有必要的内容添加到我的文件夹中(我认为),它给了我这个错误消息:

Warning: require_once(/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php): failed to open stream: No such file or directory in /home/ecoconst/public_html/IndianRestaurantMumbai.com/index.php on line 21

Fatal error: require_once(): Failed opening required '/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ecoconst/public_html/IndianRestaurantMumbai.com/index.php on line 21

请别人帮我吗?

错误实际上似乎很明显。该文件:

/

home/ecoconst/public_html/IndianRestaurantMumbai.com/include/defines.php

您的主机帐户中似乎不存在。路径似乎是正确的,将其与尝试引用 defines.php 的 index.php 文件之一进行比较。

我建议您确认文件定义.php已正确上传到:

/

home/ecoconst/public_html/印度餐厅孟买.com/包括

如果是这样,请确保它的权限为 644 或 755。

如果这是一个现有的Joomla并且文件丢失,我建议您联系您的托管服务提供商,看看他们是否正在使用ConfigServer eXploit Scanner(cxs)。如果您的 Joomla 遭到入侵,扫描程序通常会隔离文件,从而导致类似的问题。

我找到了解决方案,只是.htaccess正在寻找第一页"index.html",而我的.html文件是"Index.html",大写字母"I",所以我只是重命名了它,一切都很好。