Hi, I've upgraded the php version from 4.2.2 to 4.3.0 yesterday and some of my users started complaining about errors in php scripts.
The errors do not occur all the times and the messages shown are weird (for me at least) ! The user is accessing a php file located under /var/www/html/site.com/private/alt.php3. It performs a mysql query. I have a virtual host in apache so /var/www/html/site.com/ is mapped as www.site.com. The error messages : Warning: Unknown(): open_basedir restriction in effect. File(/var/www/html/site.com/private/alt.php3) is not within the allowed path(s): (/home/httpd/html/anothersite.com/) in Unknown on line 0 Warning: Unknown(/var/www/html/site.com/private/alt.php3): failed to create stream: Operation not permitted in Unknown on line 0 Warning: Unknown(): Failed opening '/var/www/html/site.com/private/alt.php3' for inclusion (include_path='.:/usr/local/lib/php/:/home/httpd/html/php/:/home/httpd/html/include/php/') in Unknown on line 0 The strange part is that the safe_mode is off and it mentions a directory from another virtual host (anothersite.com). <VirtualHost IP> ServerAdmin webmaster DocumentRoot /home/httpd/html/site.com/ ServerName www.site.com.br ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/ <Directory /home/httpd/html/site.com/> # php_admin_value doc_root "/home/httpd/html/site.com/" php_admin_flag safe_mode off # php_admin_value open_basedir "/home/httpd/html/site.com/:/tmp/" </Directory> </VirtualHost> System : Linux / Redhat 7.3 / Apache 1.3 './configure' '--with-gd' '--with-apxs' '--with-xml' '--with-ftp' '--enable-session' '--enable-trans-sid' '--with-zlib' '--enable-inline-optimization' '--with-mcrypt=/usr/local' '--with-imap=../imap-2001a ' '--with-kerberos' '--with-oci8=/u01/app/oracle/product/8.1.7/' '--enable-sigchild' '--with-gettext' '--with-freetype' '--with-ttf' '--with-ftp' '--enable-ftp' __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php