problem with php3 and safe mode
| From: | Denis Chapligin | Date: | Thu, 05 Jul 2001 14:06:58 +0000 |
| Subject: | problem with php3 and safe mode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56312@lists.php.net to get a copy of this message | ||
Hi
I have apache compiled with next configuration:
Server: Apache/1.3.19 (Unix) PHP/4.0.5 PHP/3.0.18 mod_perl/1.25 mod_ssl/2.8.3 OpenSSL/0.9.6a
rus/PL30.4
It runs on SunOS censo.red.cityline.ru 5.7 Generic_106541-12 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
Where php4 compiles as dso and php3 is builtin to server. All works fine except for safe mode in
php3. When any script, thet interpreted by php3 tries to read file from filesystem i got next
message(not only for this script):
===
Warning: SAFE MODE Restriction in effect. The script whose uid is 1 is not allo:by uid 65533 in
/opt/apache/clients/www.kcl.ru/news.php3 on line 26
===
But uid of this script is 65533 (gid is 65534) and uid of apache process is 39! From where comes
uid==1???
btw, on current apache installation (Server: Apache/1.3.14 (Unix) PHP/4.0.4pl1 PHP/3.0.18
rus/PL30.0) this script just fine...
--
Denis Chapligin
Sorry for my English :)