#23672 [NEW]: safe_mode in certain cases not displayed in phpinfo() output
| From: | jacques@php.net | Date: | Sat, 17 May 2003 15:02:54 +0000 |
| Subject: | #23672 [NEW]: safe_mode in certain cases not displayed in phpinfo() output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39841@lists.php.net to get a copy of this message | ||
From: jacques@php.net
Operating system: FreeBSD 4.8-STABLE
PHP version: 4.3.2RC3
PHP Bug Type: Feature/Change Request
Bug description: safe_mode in certain cases not displayed in phpinfo() output
For some odd reason when I enable safe mode on a virtual host on apache
1.3.27 (not using the option in my php.ini file) it does not display that
directive safe_mode has a local value "on" in the phpinfo() output. It
shows local value of directive safe_mode is off even when it is on.
"Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid
is 1000 is not allowed to access
/home/jacques/cvsstuff/php/phpweb/backend/ip-to-country.idx owned by uid 0
in /usr/home/jacques/cvsstuff/php/phpweb/include/ip-to-country.inc on line
90"
Yes I've confirmed that safe_mode is on (busy rsyncing the backend stuff
for my local checked out copy of phpweb where I've enabled safe_mode to
test my findings from my main production webservers.
In my httpd.conf I have in the following lines added to my
NameVirtualHost 192.168.0.64
<VirtualHost 192.168.0.64>
ServerName 192.168.0.64
ServerAlias phpweb.labs.ataris.co.za
ServerAdmin yourname@yourdomain.com
# Webroot of PHP mirror site
DocumentRoot /home/jacques/cvsstuff/php/phpweb
# These PHP settings are necessary to run a mirror
php_value include_path .:/home/jacques/cvsstuff/php/phpweb/include
php_flag register_globals on
# Log server activity
ErrorLog /var/log/php-error_log
TransferLog /var/log/php-access_log
# Set directory index
DirectoryIndex index.php
# Set mirror's preferred language here
SetEnv MIRROR_LANGUAGE "en"
# The next lines are only necessary if you would
# like to provide local search support (see below)
SetEnv HTSEARCH_PROG /usr/local/etc/htdig/htphp.sh
SetEnv HTSEARCH_EXCLUDE "/print/ /printwn/ /manual/howto/ /cal.php"
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode on
php_admin_value open_basedir
"/home/jacques/cvsstuff/php/phpweb:/tmp"
</IfModule>
</VirtualHost>
--
Edit bug report at http://bugs.php.net/?id=23672&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23672&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23672&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23672&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23672&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23672&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23672&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23672&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23672&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23672&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23672&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23672&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23672&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23672&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23672&r=gnused