问题
This is the first time I upload a site - http://indianrestaurantmumbai.com/ , I have added everything necessary to my folder (I think), and it gives me this error message:
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
Can please someone help me out?
回答1:
The error actually seems clear. The file:
/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php
does not seem to exist on your hosting account. The path seems correct, comparing it with the one of your index.php file that tries to reference the defines.php.
I would recommend that you confirm that the file defines.php is properly uploaded in:
/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes
and if so, please make sure that it's permissions are 644 or 755.
If this is an existing Joomla and the file is missing, I would recommend that you contact your hosting provider and see if they are using ConfigServer eXploit Scanner (cxs). If your Joomla has been compromised, the scanner often quarantines files, resulting in similar issues.
回答2:
I found the solution, simply the .htaccess was looking for first page "index.html" and my .html file was "Index.html" with capital "I", so I just renamed it and everything was fine.
来源:https://stackoverflow.com/questions/36113216/fatal-error-require-once-failed-opening-required