apache - PHP Warning: Unknown: failed to open stream -


I recently edited the apache httpd.conf file for mod_rewrite to work. I do not know whether this problem has arisen since that time, but I am having this problem since that day.
This is what I see at the time of running on software -

The website encountered an error while retrieving server error. It may be down for maintenance or can be configured incorrectly.

There is no special file that triggers it. But I saw that there are usually 4-5 php files with small programs, okay, but there are no software with many files (like PrestaShop). I checked the logs and I found it. [Error: March 16, 19:33:39 2011] [Error] [Client :: 1] PHF Warning: Unknown: Failed to open Section: Permission entered from unknown line 0 [Mercury] March 16 19: 33: 39 2011] [Error] [Client :: 1] PHP Serious Error: Unknown: Required to Open Required '/var/www/html/yomig/index.php' (include_path = '.: / Usr / share / pear: / Usr / share / php ') On line Unknown [Wednesday 16 March 19:33:39 2011] [Error] [Client :: 1] File does not exist: / var / www / html / Favicon.ico [Mercury March 16, 19:33:41 2011] [Error] [Client :: 1] PA Chef Warning: Unknown: Failed to open the stream: Permission entered in the unknown line 0 [Mercury March 16 19:33:41 2011] [Error] [Client :: 1] PHP serious error: Unknown: Required to open the necessary ' Unknown in line 0

experienced the same error, this was the reason for me because on my Mac, I changed DocumentRoot to my user sites directory. Land.

To fix this, I run recursive command to make sure Apache service has read the permissions.

  sudo chmod -r 755 ~ / sites    

Comments