I got a message on my screen: Warning: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access xxxx.inc.php3 owned by uid 500 in /usr/local/httpd/htdocs/xxxx.php on line 31 How can I solve that? bye Ronald Ronald Wiplinger (ÃQ¤¯¯Ç), CEO, ELMIT - The Solution Provider Tel. +886 2 8809-7980, Fax. +886 2 2809-0183, Mobile: +886 915 653-452 Net2Phone:8869550066, ICQ: 111651169 http://www.elmit.com http://www.wiplinger.org
This is a safemode restriction within PHP. Open your php.ini file (usually /etc/httpd/php.ini) and search for safe mode there... I don't recall the exact statement, but it is there... Joseph Hobbs Team Lead Backup Tier II/III Web Support Compaq Web Services / GEAE Team Joseph.Hobbs@ae.ge.com hobbsj@somecrazyfool.com -----Original Message----- From: Ronald Wiplinger [mailto:ronald@elmit.com] Sent: Friday, October 05, 2001 3:28 AM To: suse-linux-e@suse.com Subject: [SLE] SAFE MODE Restrictions in effect. I got a message on my screen: Warning: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access xxxx.inc.php3 owned by uid 500 in /usr/local/httpd/htdocs/xxxx.php on line 31 How can I solve that? bye Ronald Ronald Wiplinger (ÃQ¤¯¯Ç), CEO, ELMIT - The Solution Provider Tel. +886 2 8809-7980, Fax. +886 2 2809-0183, Mobile: +886 915 653-452 Net2Phone:8869550066, ICQ: 111651169 http://www.elmit.com http://www.wiplinger.org
On Friday 05 October 2001 12:58 pm, Joseph Hobbs wrote:
This is a safemode restriction within PHP.
Open your php.ini file (usually /etc/httpd/php.ini) and search for safe mode there... I don't recall the exact statement, but it is there...
/etc/php.ini
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
However, it's best to keep the default setting on on your development server
to help debug. You'd be better off sorting out the permissions/ownership.
Your files need to be readable by the PHP process UID rather than your system
username. Your UID is likely to be 500 (root, which runs PHP is 0). You
probably need to change ownership of the files using chown - this problem
often occurs when files are uploaded to the server.
M
--
Martin Webster
What version of SuSE are you running? I just checked my SuSE 7.1 box and this is what I found The file is located /etc/httpd/php.ini The value to be changed is safe_mode = On (should be OFF). I have never tinkered with error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING Thanks Joseph Hobbs Team Lead Backup Tier II/III Web Support Compaq Web Services / GEAE Team Joseph.Hobbs@ae.ge.com hobbsj@somecrazyfool.com -----Original Message----- From: Martin Webster [mailto:mwebster@ntlworld.com] Sent: Friday, October 05, 2001 6:41 PM To: suse-linux-e@suse.com Subject: Re: [SLE] SAFE MODE Restrictions in effect. On Friday 05 October 2001 12:58 pm, Joseph Hobbs wrote:
This is a safemode restriction within PHP.
Open your php.ini file (usually /etc/httpd/php.ini) and search for safe mode there... I don't recall the exact statement, but it is there...
/etc/php.ini
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
However, it's best to keep the default setting on on your development server
to help debug. You'd be better off sorting out the permissions/ownership.
Your files need to be readable by the PHP process UID rather than your
system
username. Your UID is likely to be 500 (root, which runs PHP is 0). You
probably need to change ownership of the files using chown - this problem
often occurs when files are uploaded to the server.
M
--
Martin Webster
On Saturday 06 October 2001 12:55 pm, Joseph Hobbs wrote:
What version of SuSE are you running? I just checked my SuSE 7.1 box and this is what I found
The file is located /etc/httpd/php.ini The value to be changed is safe_mode = On (should be OFF).
I have never tinkered with
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
SuSE 7.2 (Apache PHP module) -> /etc/php.ini
When safe_mode is on, PHP checks to see if the owner of the current script
matches the owner of the file to be operated on by a file function. safe_mode
is often set by ISPs on shared (production servers) and disables PHP
functions such as exec(), chown(), unlink() etc. - use with
safe_mode_exec_dir. As an alternative to safe_mode, you could use
open_basedir.
M
--
Martin Webster
participants (3)
-
Joseph Hobbs
-
Martin Webster
-
Ronald Wiplinger