I have a system recently developed in PHP7 on Windows, and I decided to migrate to Debian9. At the moment everything works, however the autoload (psr-4) located in vendor has problems requesting the classes, returning error 500 in the browser.
I executed tail -f /var/log/apache2/error.log
and it returns PHP Fatal error: require(): Failed opening required 'Src/Core/Router.class.php' (include_path='.:/usr/share/php') in /var/www/html/project/vendor/autoload.php on line 16
.
I have tried to use absolute as well as relative path, but none works.
Tests
When I run is_writable or is_readable it also returns the error.
I created an index.php in root (/ var / www / html /) and included the index.html file inside the project and it worked; so I've discarded permissions, which are: folder (755) / files (644).
In the same index.php file I checked if the Router.class.php exists and it returns true. But if you do this in autoload it returns false.
I have always worked with Debian and this problem has never occurred.