lighttpd forum lighty > PHP: Failed to open stream

Posted by Sebastian J.
on 13.05.2008 15:24
Hey,

I am running out of things to try to get my issue resolved, so I thought 
I'd try and get some help here.

I have mod_fastcgi enabled, with php 5.2.5. The lighttpd.conf has the 
fastcgi server defined for php files:
 fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/bin/php-cgi",
                     "socket" => "/tmp/php.socket"
                 )))


And the php.ini has:
cgi.fix_pathinfo=1

However, whenever I try to load up my site I get the error:
Warning: require_once(conf/conf.php) [function.require-once]: failed to 
open stream: No such file or directory in /var/www/index.php on line 26

Fatal error: require_once() [function.require]: Failed opening required 
'conf/conf.php' (include_path='.:/usr/share/php:/usr/share/pear') in 
/var/www/index.php on line 26


I can post my phpinfo() as well if it would be helpful..
Thanks
Posted by Sebastian J.
on 13.05.2008 18:50
I should add, that the files are indeed there.
Posted by Alan Quinlan
on 16.05.2008 13:09
PHP is trying to include a php file called 'conf/conf.php' and it can't 
find it in the include path defined in PHP.INI initialisation file. You 
can either change PHP.INI to include the directory where this file 
lives, or change the require_once() call on line 26 of index.php to 
reference the directory where the 'conf.php' lives...