[Typo3-linux] Problems with ImageMagick 5.5.7
Franz Holzinger
franz at fholzinger.com
Tue Sep 20 12:44:11 CEST 2005
Hello Michael,
>
>>Maybe this has to do with safe_mode.
>>I have included /usr/local/
>>
>>safe_mode On On
>>safe_mode_exec_dir /usr/local/ /usr/local/
>>safe_mode_gid Off Off
>>safe_mode_include_dir /usr/local/ /usr/local/
>
>
> Hmmm, it seems there are some unresolved issues pending with safe_mode.
>
> Just an idea: Could it be that safe_mode_exec_dir does not work recursively?
> Try setting the value to /usr/local/<pathToYourImageMagick>/
>
--------------------------------
; Safe Mode
;
safe_mode = On
; 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 = /usr/local/imagemagick6/
; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir = /usr/local/imagemagick6/
----------------------------
leads to
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid
is 10001 is not allowed to access
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3temp/llxml/misc.xml_7c18212dec.default.iso-8859-1.cache
owned by uid 30 in
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3_src-3.8.0/t3lib/class.t3lib_div.php
on line 2117
Warning:
fopen(/home/httpd/vhosts/fholzinger.com/httpdocs/typo3temp/llxml/misc.xml_7c18212dec.default.iso-8859-1.cache):
failed to open stream: Success in
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3_src-3.8.0/t3lib/class.t3lib_div.php
on line 2117
ERROR: File not written to disk! Write permission error in filesystem?
-------------------------
; then turn on safe_mode_gid.
safe_mode_gid = On
leads to
---------------------------
Warning: fopen(): SAFE MODE Restriction in effect. The script whose
uid/gid is 10001/10001 is not allowed to access
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3temp/llxml/misc.xml_7c18212dec.default.iso-8859-1.cache
owned by uid/gid 30/8 in
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3_src-3.8.0/t3lib/class.t3lib_div.php
on line 2117
Warning:
fopen(/home/httpd/vhosts/fholzinger.com/httpdocs/typo3temp/llxml/misc.xml_7c18212dec.default.iso-8859-1.cache):
failed to open stream: Success in
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3_src-3.8.0/t3lib/class.t3lib_div.php
on line 2117
ERROR: File not written to disk! Write permission error in filesystem?
-------------------
ls -l
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3_src-3.8.0/t3lib/class.t3lib_div.php
-rw-r--r-- 1 franzhol psacln 143189 May 23 02:41
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3_src-3.8.0/t3lib/class.t3lib_div.php
ls -l
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3temp/llxml/misc.xml_7c18212dec.default.iso-8859-1.cache
-rwxrwxr-x 1 wwwrun www 2038 Sep 20 10:45
/home/httpd/vhosts/fholzinger.com/httpdocs/typo3temp/llxml/misc.xml_7c18212dec.default.iso-8859-1.cache
/etc/passwd
franzhol:x:10001:10001::/home/httpd/vhosts/fholzinger.com:/bin/false
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
/etc/group
www:x:8:
So maybe I have to make wwwrun:www the owner of the ImageMagick files.
Franz
More information about the TYPO3-linux
mailing list