include not working properly?
| From: | robert mena | Date: | Tue, 07 Mar 2006 15:01:24 +0000 |
| Subject: | include not working properly? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-231588@lists.php.net to get a copy of this message | ||
Hi,
I am facing a strange problem. One of my classes uses a include("Log.php")
to enable to to use the Log class that comes with pear.
*Fatal error*: require_once()
[function.require<http://www.manaushoteis.tur.br/function.require>]:
Failed opening required 'Log.php'
(include_path='.:/usr/local/lib/php/:/home/httpd/html/php/:/home/httpd/html/include/php/')
in */var/www/html/domain/php/Conexion.inc* on line *14*
**
*I do have the Log.php*
**
*ls -lsa /usr/local/lib/php/Log.php
20 -rw-r--r-- 1 root root 18563 Mai 25 2005 /usr/local/lib/php/Log.php*
**
*My virtualhost*
**
<VirtualHost A.B.C.D:80>
ServerAdmin webmaster@domain
DocumentRoot /var/www/html/domain
ServerName www.domain
ErrorLog logs/domain-error_log
CustomLog logs/domain-access_log combined
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory /var/www/html/domain/>
php_admin_value doc_root "/var/www/html/domain/"
php_admin_flag safe_mode off
php_admin_value safe_mode_include_dir
"/var/www/html/domain/:/tmp/:/usr/local/lib/php"
php_admin_value open_basedir "/var/www/html/domain/:/tmp/"
php_admin_value safe_mode_exec_dir "/var/www/php_exec_dir"
AllowOverride AuthConfig Limit
</Directory>
</VirtualHost>
You will notice that the safe mode is off. It was originally on but the
same error happened. I've even tryied using a include
("/usr/local/lib/php/Log.php") with the same error.
Any ideas?
PHP Version 5.1.2
System Linux baco.argo.com.br 2.6.12-1.1381_FC3 #1 Fri Oct 21 03:46:55 EDT
2005 i686
Build Date Jan 31 2006 10:17:45
Configure Command './configure' '--with-mysql' '--with-gd'
'--with-apxs2'
'--with-xml' '--with-ftp' '--enable-session'
'--enable-trans-sid'
'--with-zlib' '--enable-inline-optimization'
'--with-mcrypt=/usr/local'
'--with-imap=/usr/include/imap' '--with-kerberos' '--enable-sigchild'
'--with-gettext' '--with-freetype' '--with-ttf' '--with-ftp'
'--enable-ftp'
'--with-jpeg-dir=/usr' '--with-imap-ssl=/usr/include/openssl'
'--with-xpm-dir=/usr/X11R6' '--enable-gd-native-ttf' '--with-png'
'--with-freetype-dir=/usr' '--with-openssl=/usr'
'--with-openssl-dir=/usr/'
'--with-pgsql'