Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Safe Mode Error

Status
Not open for further replies.

tijerina

Vendor
Joined
Mar 4, 2003
Messages
132
Location
US
I am getting the following error:

Warning: SAFE MODE Restriction in effect. The script whose uid/gid is 503/503 is not allowed to access / owned by uid/gid 0/0 in /home/virtual/site1/fst/var/ on line 9
Possible file upload attack! Here's some debugging info: -Product has been updated.

I know about the php.ini file, but I am not sure how to modify it, I have read the online manuals and within the php.ini file, there is useful manaul information, but I tried the following and it still did not work.

This is what my php.ini file looks like now.

_________start of copy and paste of php.ini_________

; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On

; Safe Mode
;
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
safe_mode_include_dir =

_________End of Copy and Paste of php.ini file_____________

I have tried to turn "On" safe_mode and this did not work.

I have tried to turn "On" safe_mode_gid and this did not work.


All help will be greatly appreciated.

Thanks.
 
Yes I did reboot several times as I tried to modify settings with a process of elimination approach. (Yes I created a bkup of the php.ini file), but I still get the safe mode error. Any ideas?

Here is the error I get with safe_mode = off in my php.ini which is located at /etc/php.ini :

Warning: SAFE MODE Restriction in effect. The script whose uid is 503 is not allowed to access / owned by uid 0 in /home/virtual/site1/fst/var/ on line 9
Possible file upload attack! Here's some debugging info: -Super Product has been updated.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top