[Typo3] Anyway around SAFE MODE restrictions

Peter Russ peter.russ at 4dfx.de
Sun Feb 27 16:04:37 CET 2005


Devon Retemyer schrieb:

> Thanks Michael but I am stuck after installing the database. The error
> is on the index.php page and shows up when I try to log into Admin.
> How do I get past this?
> 
> I replaced my path with (path)
> Here it is:
> 
> Warning: fopen(): SAFE MODE Restriction in effect. The script whose
> uid is 687 is not allowed to access /.(path)../typo3temp/llxml owned
> by uid 398 in /(path).../t3lib/class.t3lib_div.php on line 2020
> 
> Warning: fopen(path...)/typo3temp/llxml/tsfe.xml_3e73584d10.default.iso-8859-1.cache):
> failed to open stream: No such file or directory in
> /(path).../t3lib/class.t3lib_div.php on line 2020
> ERROR: File not written to disk! Write permission error in filesystem?
> 

In safe_mode only a user with the same uid can run a file.
Workaround (ref. php.ini)
; 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 = On

BUT when you doing that you MUST set open_basedir
; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
;
;open_basedir =

Otherwise apache/php/typo3 might be able to read other data from other 
directories owned by the same gid.

Regs. Peter.



More information about the TYPO3-english mailing list