Reputation: 829
I do not understand this error :
Warning: include(): Failed opening '/app/database/alsalemcorpdb.php' for inclusion (include_path='.:/app/database/alsalemcorpdb.php') in /var/www/html/index.php on line 4
I have now explicitly mentioned the file in include_path, and CHMODed the file to 777.
My code: include ("/app/database/alsalemcorpdb.php");
Any ideas?
Upvotes: 0
Views: 55
Reputation: 829
Actually, it turned out to be SELINUX.... It causes this to fail for whatever reason, disabling it fixes the issue.
Upvotes: 0
Reputation: 324610
Unless you literally have /app
as a root-level folder on the filesystem (ie. not the domain root), then you should not have a /
at the beginning of your path.
Instead, try:
include("app/database/alsalemcorpdb.php");
Upvotes: 1