Talk:PHP 5 safe mode

From mediawiki.org
Latest comment: 15 years ago by Duesentrieb in topic How to thumbnail while safe mode is enabled?

How to thumbnail while safe mode is enabled?[edit]

I really need some info abouht thumbnailing (ImageMagick/svg) with safe-mode enabled. Could anyone provide it? Thanks in advance.

In safe mode, you can only run programs located in the directory designated by PHP's safe_mode_exec_dir directive [1]. So, ImageMagic's convert program needs to be in that directory, and any svg converter you want to use too. It's highly recommended not to use ImageMagick for rendering SVG by the way - it simply sucks at that. Use rsvg instead.
Anyway, tell your host that safemode will go away in PHP6, so they should look into an alternative security model. -- Duesentrieb ⇌ 07:28, 27 August 2008 (UTC)Reply