Code: Select all
<?php phpinfo();
include ("/usr/local/apache/php/connect.inc");
?>[text][Tue Jan 18 13:48:39 2011] [error] [client 127.0.0.1] PHP Warning: include(): Failed opening '/usr/local/apache/php/connect.inc' for inclusion (include_path='.:/var/php:/usr/local/apache/php') in /var/www/html/phpinfo.php on line 2[/text]
'ls -l' shows:
[text]-rwxrwxrwx. 1 apache apache 473 Nov 12 08:23 /usr/local/apache/php/connect.inc[/text]
I am stumped - what else is there to restrict access to the file? I thought an absolute path include didn't need anything set but its access rights, but that didn't work so I have opened everything I could think of. As you can see the file exists; it is in the php include_path; I have given the file full access rights; and it belongs to the apache user and apache group.
How do I enable absolute path includes? Changing the source is not an option - there are over 450 files in the app and ALL of them at a minimum include connect.inc to gain access to the db.