Forum Moderators: phranque

Message Too Old, No Replies

PHP Warning: Unknown: failed to open stream: No such file or director

PHP Fatal error

         

separtners

10:39 am on Dec 19, 2006 (gmt 0)



hi,

(FreeBSD 6.1 apache-1.3.37_1 php5-5.2.0)
php configure (./configure --with-config-file-scan-dir=/usr/local/etc/php --with-regex=php --with-apxs=/usr/local/sbin/apxs --prefix=/usr/local --with-zlib=/usr --with-zlib-dir=/usr --with-bz2=/usr/local --with-mysql=/usr/local --enable-sockets --with-pcre-regex --enable-ftp --enable-sockets --enable-session --enable-curl --with-curl --enable-versioning --with-xml --enable-session)

register_globals = Off
safe_mode = Off

I have this errors in my logfile:

[19-Dec-2006 06:33:30] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[19-Dec-2006 06:33:30] PHP Fatal error: Unknown: Failed opening required '/home/sites/#*$!x.info/web/file.php' (include_path='.:./include:../include:../:./includes:../includes') in Unknown on line 0

file.php file some time work some time not. (i refresh file.php in browser and it work 90% refresh, 10% error)
file file.php not contain include or require.

separtners

11:22 am on Dec 19, 2006 (gmt 0)



If you install php from freebsd ports Suhosin [http://www.hardened-php.net/suhosin.127.html] is enable default

Solution: disable Suhosin.

10x