Skip to content
Advertisement

PHP Warning: Unknown: failed to open stream

I edited the apache httpd.conf file recently for the mod_rewrite to work. I don’t know if this problem originated from that or not, but i’m getting this problem from that day.
This is what I see on the frontend when I run the software –

Server error The website encountered an error while retrieving http://localhost/prestashop/. It may be down for maintenance or configured incorrectly.

There is no specific file that triggers this. But I saw that usually small programs that consists of 4-5 php files, runs fine, but softwares with a lot of files(like PrestaShop) don’t.
I checked the logs and this is what I found.

JavaScript

Advertisement

Answer

Experienced the same error, for me it was caused because on my Mac I have changed the DocumentRoot to my users Sites directory.

To fix it, I ran the recursive command to ensure that the Apache service has read permissions.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement