#38566 [Com]: SAFE MODE Restriction in effect without calling any php-file
ID: 38566 Comment by: tb at tbits dot net Reported By: noc at smartterra dot de Status: Feedback Bug Type: Apache2 related Operating System: FreeBSD 5.3 PHP Version: 4.4.4 New Comment: I've the same problem since 4.3.11 ! If also tried the SNAPSHOT php4-STABLE-200609072030 without any success. Why checks php normal html files ? The only one solution at the moment is to downgrade to 4.3.11 with many security problems. :-(. Thomas Previous Comments: [2006-09-06 09:17:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2006-09-06 09:12:26] noc at smartterra dot de Hm, sometimes this bug is still present with my new setup: PHP Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 0/0 is not al lowed to access /usr/home/phpissue owned by uid/gid 1025/1025 in Unknown on line 0 Don't halloo till you're out of the wood! :-( [2006-09-05 20:17:19] noc at smartterra dot de I set up a completly new system with FreeBSd 6.1, Apache 2.0.59 and PHP4.4.4 - it works for me without any problems. [2006-09-05 10:21:04] info at nrg-systems dot de We have the same PHP warning messages in our log files since we've upgraded from 4.3.11 to 4.4.2 (also with 4.4.3 and 4.4.4). It looks like as every file access (including static HTML pages and even images) from the Apache server results in this PHP message. But the files are delivered to the clients browser. Especially the part in Unknown on line 0 is an evidence that the PHP check is called even for non-PHP scripts. [2006-08-24 09:24:17] noc at smartterra dot de I saved a copy here: http://smartterra.de/phpissue.html 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/38566 -- Edit this bug report at http://bugs.php.net/?id=38566edit=1
#35121 [Bgs]: Warning: Unknown(): SAFE MODE Restriction in effect.
ID: 35121 User updated by: tb at tbits dot net Reported By: tb at tbits dot net Status: Bogus Bug Type: Output Control Operating System: Linux Kernel 2.6 PHP Version: 4.4.1 New Comment: Sorry but this is a bug ! I'd downgrade to php 4.3.11 and it works ! also phpMyAdmin and so on are not working. Thomas Previous Comments: [2005-11-06 03:55:38] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. [2005-11-06 02:44:23] tb at tbits dot net Description: after starting apache 2.0.55 with php 4.4.1 and accessing a test.php i got this error. Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /var/www/webfarm/0_tbitsnet/projekte.tbits.net owned by uid 48 in Unknown on line 0 Reproduce code: --- every php code, my test.php was ? print hallo; ? Expected result: here my strace [pid 13946] waitpid(-1, 0xbfea7550, WNOHANG|WUNTRACED) = 0 [pid 13946] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout) [pid 13946] waitpid(-1, 0xbfea7550, WNOHANG|WUNTRACED) = 0 [pid 13946] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout) [pid 13946] waitpid(-1, 0xbfea7550, WNOHANG|WUNTRACED) = 0 [pid 13946] select(0, NULL, NULL, NULL, {1, 0} unfinished ... [pid 13952] ... poll resumed [{fd=10, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8, events=POLLIN}, {fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 6, -1) = 1 [pid 13952] accept(3, {sa_family=AF_INET, sin_port=htons(3645), sin_addr=inet_addr(195.243.63.218)}, [16]) = 19 [pid 13952] semop(35422303, 0xb7f89bd2, 1 unfinished ... [pid 13954] ... semop resumed ) = 0 [pid 13952] ... semop resumed ) = 0 [pid 13954] poll( unfinished ... [pid 13952] fcntl64(19, F_GETFL)= 0x2 (flags O_RDWR) [pid 13952] fcntl64(19, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 13952] read(19, GET /test.php HTTP/1.0\r\nHost: pr..., 8000) = 483 [pid 13952] gettimeofday({1131241209, 66044}, NULL) = 0 [pid 13952] time(NULL) = 1131241209 [pid 13952] semop(35291227, 0xb7f89bcc, 1) = 0 [pid 13952] write(18, [Sun Nov 06 02:40:09 2005] [1395..., 141) = 141 [pid 13952] semop(35291227, 0xb7f89bd2, 1) = 0 [pid 13952] time(NULL) = 1131241209 [pid 13952] semop(35291227, 0xb7f89bcc, 1) = 0 [pid 13952] write(18, [Sun Nov 06 02:40:09 2005] [1395..., 141) = 141 [pid 13952] semop(35291227, 0xb7f89bd2, 1) = 0 [pid 13952] stat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net/test.php, {st_mode=S_IFREG|0644, st_size=22, ...}) = 0 [pid 13952] open(/var/www/webfarm/.htaccess, O_RDONLY) = -1 ENOENT (No such file or directory) [pid 13952] open(/var/www/webfarm/0_tbitsnet/.htaccess, O_RDONLY) = -1 ENOENT (No such file or directory) [pid 13952] open(/var/www/webfarm/0_tbitsnet/projekte.tbits.net/.htaccess, O_RDONLY) = -1 ENOENT (No such file or directory) [pid 13952] open(/var/www/webfarm/0_tbitsnet/projekte.tbits.net/test.php/.htaccess, O_RDONLY) = -1 ENOTDIR (Not a directory) [pid 13952] lstat64(/var, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] stat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] brk(0) = 0x831f000 [pid 13952] brk(0x8341000) = 0x8341000 [pid 13952] setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0 [pid 13952] rt_sigaction(SIGPROF, {0xb7d1e688, [PROF], SA_RESTART}, {SIG_DFL}, 8) = 0 [pid 13952] rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 [pid 13952] gettimeofday({1131241209, 69682}, NULL) = 0 [pid 13952] getcwd(/, 4095) = 2 [pid 13952] chdir(/var/www/webfarm/0_tbitsnet/projekte.tbits.net) = 0 [pid 13952] lstat64(/var, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet, {st_mode
#35040 [Com]: slowness and timeouts when using php-4.4.1
ID: 35040 Comment by: tb at tbits dot net Reported By: sbailey at mileone dot com Status: Feedback Bug Type: Performance problem Operating System: FreeBSD 5.3 PHP Version: 4.4.1RC1 New Comment: I've the same problem with 4.4.1 with timeouts :-(, my os is linux, if i go back to 4.3.11 its working. -Thomas Previous Comments: [2005-11-02 11:01:02] mc at nuxit dot net I don't think it is a SquirrelMail issue because it would seem that other scripts are experiencing the same type of problem [2005-11-02 08:32:44] mc at nuxit dot net I have the same problem. SquirrelMail is taking a lot of CPU since 4.4.1 and timeouts. I've got a backtrace with gdb when it timeouts : #0 zend_hash_copy (target=0x8531ee4, source=0x0, pCopyConstructor=0x81dd370 zval_add_ref, tmp=0x5da5b718, size=4) at /src/php-4.4.1/Zend/zend_hash.c:799 #1 0x081dd4c5 in _zval_copy_ctor (zvalue=0x87b8a6c) at /src/php-4.4.1/Zend/zend_variables.c:125 #2 0x081ed959 in execute (op_array=0x846b4f8) at /src/php-4.4.1/Zend/zend_execute.c:1899 #3 0x081ece16 in execute (op_array=0x8489538) at /src/php-4.4.1/Zend/zend_execute.c:1719 #4 0x081ece16 in execute (op_array=0x84656ec) at /src/php-4.4.1/Zend/zend_execute.c:1719 [2005-11-01 17:46:58] gabe at mudbugmedia dot com I haven't managed to discover if this is a SquirrelMail bug or a PHP bug, but the change from 4.4.0 to 4.4.1 definitely causes the break down. A bug report with a work around is available at SquirrelMail's sourceforge page. http://sourceforge.net/tracker/index.php? func=detailaid=1344216group_id=311atid=100311 . The work around is to turn on server side sorting (in your config.php file) to prevent the effected function from being called. [2005-10-31 21:35:21] vmlinuz386 at yahoo dot com dot ar I have the same problem, but running on apache-1.3.34 (Linux), with the php-4.4.1, i am back to php-4.4.0 and this fixes. Here is the phpinfo() http://www.vmlinuz.com.ar/phpinfo.php Squirrelmail is 1.4.5, can browse all pages, but the problem appear when open a message. Another problem is that httpd takes many more seconds to stop with 4.4.1, not with 4.4.0. [2005-10-31 21:13:21] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. 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/35040 -- Edit this bug report at http://bugs.php.net/?id=35040edit=1
#35121 [NEW]: Warning: Unknown(): SAFE MODE Restriction in effect.
From: tb at tbits dot net Operating system: Linux Kernel 2.6 PHP version: 4.4.1 PHP Bug Type: Output Control Bug description: Warning: Unknown(): SAFE MODE Restriction in effect. Description: after starting apache 2.0.55 with php 4.4.1 and accessing a test.php i got this error. Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /var/www/webfarm/0_tbitsnet/projekte.tbits.net owned by uid 48 in Unknown on line 0 Reproduce code: --- every php code, my test.php was ? print hallo; ? Expected result: here my strace [pid 13946] waitpid(-1, 0xbfea7550, WNOHANG|WUNTRACED) = 0 [pid 13946] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout) [pid 13946] waitpid(-1, 0xbfea7550, WNOHANG|WUNTRACED) = 0 [pid 13946] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout) [pid 13946] waitpid(-1, 0xbfea7550, WNOHANG|WUNTRACED) = 0 [pid 13946] select(0, NULL, NULL, NULL, {1, 0} unfinished ... [pid 13952] ... poll resumed [{fd=10, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8, events=POLLIN}, {fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 6, -1) = 1 [pid 13952] accept(3, {sa_family=AF_INET, sin_port=htons(3645), sin_addr=inet_addr(195.243.63.218)}, [16]) = 19 [pid 13952] semop(35422303, 0xb7f89bd2, 1 unfinished ... [pid 13954] ... semop resumed ) = 0 [pid 13952] ... semop resumed ) = 0 [pid 13954] poll( unfinished ... [pid 13952] fcntl64(19, F_GETFL)= 0x2 (flags O_RDWR) [pid 13952] fcntl64(19, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 13952] read(19, GET /test.php HTTP/1.0\r\nHost: pr..., 8000) = 483 [pid 13952] gettimeofday({1131241209, 66044}, NULL) = 0 [pid 13952] time(NULL) = 1131241209 [pid 13952] semop(35291227, 0xb7f89bcc, 1) = 0 [pid 13952] write(18, [Sun Nov 06 02:40:09 2005] [1395..., 141) = 141 [pid 13952] semop(35291227, 0xb7f89bd2, 1) = 0 [pid 13952] time(NULL) = 1131241209 [pid 13952] semop(35291227, 0xb7f89bcc, 1) = 0 [pid 13952] write(18, [Sun Nov 06 02:40:09 2005] [1395..., 141) = 141 [pid 13952] semop(35291227, 0xb7f89bd2, 1) = 0 [pid 13952] stat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net/test.php, {st_mode=S_IFREG|0644, st_size=22, ...}) = 0 [pid 13952] open(/var/www/webfarm/.htaccess, O_RDONLY) = -1 ENOENT (No such file or directory) [pid 13952] open(/var/www/webfarm/0_tbitsnet/.htaccess, O_RDONLY) = -1 ENOENT (No such file or directory) [pid 13952] open(/var/www/webfarm/0_tbitsnet/projekte.tbits.net/.htaccess, O_RDONLY) = -1 ENOENT (No such file or directory) [pid 13952] open(/var/www/webfarm/0_tbitsnet/projekte.tbits.net/test.php/.htaccess, O_RDONLY) = -1 ENOTDIR (Not a directory) [pid 13952] lstat64(/var, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] stat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] brk(0) = 0x831f000 [pid 13952] brk(0x8341000) = 0x8341000 [pid 13952] setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0 [pid 13952] rt_sigaction(SIGPROF, {0xb7d1e688, [PROF], SA_RESTART}, {SIG_DFL}, 8) = 0 [pid 13952] rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 [pid 13952] gettimeofday({1131241209, 69682}, NULL) = 0 [pid 13952] getcwd(/, 4095) = 2 [pid 13952] chdir(/var/www/webfarm/0_tbitsnet/projekte.tbits.net) = 0 [pid 13952] lstat64(/var, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm/0_tbitsnet/projekte.tbits.net/test.php, {st_mode=S_IFREG|0644, st_size=22, ...}) = 0 [pid 13952] setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0 [pid 13952] rt_sigaction(SIGPROF, {0xb7d1e688, [PROF], SA_RESTART}, {0xb7d1e688, [PROF], SA_RESTART}, 8) = 0 [pid 13952] rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 [pid 13952] getcwd(/var/www/webfarm/0_tbitsnet/projekte.tbits.net, 4096) = 51 [pid 13952] lstat64(/var, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952] lstat64(/var/www/webfarm, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 13952