View Full Version : ImageMagick problem
iraqiboy90
09-18-2013, 11:53 PM
How can I get ImageMagick to work on my vbulletin?
I have tried so many ways, and all of them fails.
ImageMagick is installed on my VPS, and the extention is added to php.ini
PHPinfo picks it up as well.
But when I select it on vbulletin panel and select the path (which is the correct path),
the upload of pictures does not work;
- Uploading an avatar gives a white page
- Uploading a picture as attachment with ajax on posts, does nothing.
I am forced to use GD, as this is the only one working.
Running:
- vBulletin 4.2.1
- VPS with Centos
- Latest ImageMagick through "pecl"
ForceHSS
09-19-2013, 04:43 AM
Post link being used
iraqiboy90
09-19-2013, 10:27 AM
huh?
Zachery
09-19-2013, 01:00 PM
If you want to use imagemagick, you have to have the binary executable version installed in your server. Not the PELC extension.
Once its installed, you need to be able to use exec() (it can't have been disabled).
Then you need to know the path to the imagemagick binaries, its normally something like /usr/bin or /usr/local/bin etc. You enter that into the ImageMagick setting.
iraqiboy90
09-19-2013, 01:07 PM
thanks for the reply
I have installed the ImageMagick with;
Installing the necessaries
yum install php-pear gcc
Installing ImageMagick
yum install ImageMagick ImageMagick-devel ImageMagick-perl
Compiling imagick for PHP
pecl install imagick
and then
echo extension=imagick.so >> /etc/php.ini
and yes, it does show on phpinfo
http://www.tecmint.com/install-imagemagick-in-linux/
--------------- Added 1379599788 at 1379599788 ---------------
currently, this is my func.blacklist on vhost config
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
Zachery
09-19-2013, 01:10 PM
Then you cannot use the ImageMagick setting with vBulletin.
iraqiboy90
09-19-2013, 01:17 PM
why?
I have VPS and I can change settings. What should I change?
Zachery
09-19-2013, 01:23 PM
You'd need to remove exec from the blacklist.
iraqiboy90
09-19-2013, 01:26 PM
oh, god!
I just did and it worked, but it uses LOTS of RAM and the system load jumped to 5-6.
--------------- Added 1379600847 at 1379600847 ---------------
Thanks, but I might just go back to GD
Zachery
09-19-2013, 01:59 PM
ImageMagick shouldn't be consuming anywhere near that much memory, or system resources.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.