ID: 38670 Comment by: mspado at hotmail dot com Reported By: serokka at hrn dot ru Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.10 PHP Version: 4.4.4 New Comment:
Forgot to say: A common thread to issues with this bug has been the use of 'php_admin_value upload_tmp_dir /xxx/xxx/xxx/tmp' M. Previous Comments: ------------------------------------------------------------------------ [2007-03-09 07:10:51] mspado at hotmail dot com Hi, We've experienced this issue numerous times since rolling out Apache2 (2.2.3) with PHP 4 (4.4.2 - yes only 4.4.2 because of http://bugs.php.net/bug.php?id=40514) last week. Example error 1: Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 0/0 is not allowed to access /home/xx/xxx/xxxdomain.net/tmp owned by uid/gid 306628/100 in Unknown on line 0 Example error 2: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Only one top level element is allowed in an XML document. Error processing resource 'http://www.xxdomain.org/'. ... <b>Warning</b>: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 0/0 is not allowed to ... (cut off due to xml doc style error) Example error 3. This error is especially interesting because you can note that the requested file on yydomain and the allowed path of xxdomain (and no, its not a configuration error): *Warning*: Unknown(): open_basedir restriction in effect. File(/home/yy/yy/yydomain.com.au/public/www/admin/index.php) is not within the allowed path(s): (/home/xx/xx/xxdomain.org.au/:/usr/local/lib/php:/tmp/php_upload) in *Unknown* on line *0* This is a serious bug, we will have to roll back to Apache1. -- PHP PHP 4.4.2 (cli) (built: Feb 28 2007 17:14:01) Copyright (c) 1997-2006 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies -- Apache Server version: Apache/2.2.3 Server built: Feb 28 2007 16:59:03 Server's Module Magic Number: 20051115:3 Server loaded: APR 1.2.7, APR-Util 1.2.7 Compiled using: APR 1.2.7, APR-Util 1.2.7 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" -- OS Fedora Core Cannot pin it down to being limited to FC3 or FC5 or both. ------------------------------------------------------------------------ [2007-02-19 13:49:03] jos at webstekker dot nl The same problem exists when upgrading from 5.2.0 to 5.2.1 on Windows 2003 Server (web edition). safe_mode=on, safe_mode_gid=off: Warning: include() [function.include]: SAFE MODE Restriction in effect. The script whose uid is 1 is not allowed to access ./text/Home.txt owned by uid 0 in E:\wwwroot\test\Home.php on line 14 safe_mode=on, safe_mode_gid=on: Warning: include() [function.include]: SAFE MODE Restriction in effect. The script whose uid/gid is 1/1 is not allowed to access ./text/Home.txt owned by uid/gid 0/0 in E:\wwwroot\test\Home.php on line 14 This works fine in 5.2.0 without any changes to the server configuration. ------------------------------------------------------------------------ [2007-01-25 21:27:38] david at cryptix dot de I have the same issue on: Debian Etch Apache/2.2.3 (Debian) PHP/4.4.4-8 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_chroot/0.5 ------------------------------------------------------------------------ [2007-01-11 12:33:21] prieler at abm dot at hi! i also have this problem. as already said on some reloads of a simple .jpg image this error occurs: <br /> <b>Warning</b>: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is ... is not allowed to access ... owned by uid/gid ... in <b>Unknown</b> on line <b>0</b><br /> i've testet it with apache 2.2.0 and apache 2.2.4. and on each compiled the phpversions 4.3.11, 4.4.2 and 4.4.4. Operating-System is a SuSE-Linux 10.0 i think the error comes on the first time i open an image after apache is restarted. ignore_repeated_errors = On / Off doesn't change anything. thanks. ------------------------------------------------------------------------ [2006-11-28 19:50:43] steveny at missiondata dot com We are having the same issue on: Fedora Core release 4 PHP 4.4.4 (./configure --with-apxs2=/web/apache/bin/apxs --with-mysql --with-pgsql --with-gd --with-zlib --with-jpeg-dir --with-gettext --enable-mbstring --enable-track-vars --with-xml --with-curl) Apache/2.0.55 If there is more info that I can provide, please let me know. For now, I guess the only option is to pull back to PHP 4.3.11 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38670 -- Edit this bug report at http://bugs.php.net/?id=38670&edit=1