Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Why can't I shell_exec ImageMagick from a plugin?
djh_
New
I'm used to using shell_exec("/usr/bin/convert ") to run ImageMagick on my server. It works everywhere but in an upload.php file I've called via plupload in a plugin I'm making. This is working me up into a rage right now because I'm burning hours on a problem that just makes no sense to me. I don't understand why this isn't working.
Anyone?
0
Comments
one can only assume you have some restriction effective this section for your site. It could be also, you could have server security preventing files owned/or run but users using shell calls.
End of the day 'doesn't work' could be anything, you are developing it for your particular server environment. You would need to work through the possibilities. Check the server error log.
Why don't you install ImageMagic PECL package for PHP?
grep is your friend.
I didn't install the PECL package because it doesn't have the full list of parameters.
Having tried it elsewhere on the server, it now seems that shell_exec has simply stopped working overnight. I guess this isn't a Vanilla issue, then.
shell_exec should rightly have restrictions on use. You will need to configure your server, and php settings.
grep is your friend.
exec was indeed disabled for all users. Thanks for putting me on the right track. It's working now.