You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rudolf Wolf <ru...@dantax.cz> on 2002/07/10 14:08:52 UTC

Apache 2.0.39 + PHP 4.2.1 + SafeMode

I have Debin 2.2 and I'm trying to use safe mode in PHP, but when I enable safe mode in php.ini and type URL: http://www.some.cz/mail.php, I get this error message in my browser:
Warning: SAFE MODE Restriction in effect. The script whose uid is -1 is not allowed to access /var/www/htdocs/mail.php owned by uid 10000 in Unknown on line 0

Warning: Failed opening '/var/www/htdocs/mail.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

php.ini
----------
safe_mode = On
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =


httpd.conf:
------------
User	www
Group	www
DocumentRoot /var/www/htdocs

UID of user www is 10000.

Filesystem /var/www/htdocs 
------------------------------
drwxr-xr-x    3 www      root         4096 Jul 10 12:34 htdocs
-rw-r--r--    1 www      www           104 Jun 10 12:59 mail.php (file is of course in /var/www/htdocs directory).

I don't know, where the problem is. Is it Apache or PHP?

Thanks,
Ruda.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org