ImageMagick

Remco00

Verified User
Joined
Feb 22, 2006
Messages
280
I installed ImageMagick on Fedora3 with yum install ImageMagick. When I disabled safe mode on a per domain basis, on that domain I could execute the convert command wich binary is in /usr/bin/

But I want safe mode to be on, not off. So I copied the virtual_host.conf to the custom dir and changed the php part in:

---

<Directory /home/admin/domains/domain.com/public_html>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value safe_mode_exec_dir /usr/bin/


</Directory>

---

After that I did: echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

phpinfo shows:

directive local value master value
safe_mode On Off
safe_mode_exec_dir /usr/bin/ no value
safe_mode_gid Off Off


However, when I enable safe mode I have no rights to execute convert. My php.ini is the default file. Should I change this too or is it something else I overlooked?
 
Last edited:
Back
Top