I have trouble for requiring a file:
$path_requires = "/var/www/vhosts/website.com/v3" ;
require("$path_requires/vars.inc.php") ;
The error is:
/var/www/vhosts/website.com/portraits Fatal error: require(): Failed opening required '/var/www/vhosts/website.com/v3/vars.inc.php'
If i do from a terminal:
cat /var/www/vhosts/website.com/v3/vars.inc.php
I checked the permissions on the directory. website.com. it's:
drwxr-xr-x 17 apache psaserv 4096 Oct 18 03:32 v3
I changed the permissions to that directory with no success.
Does anyone know what is going on. Why I can't require this php file ?