vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   ImageMagick problem (https://vborg.vbsupport.ru/showthread.php?t=302432)

iraqiboy90 09-18-2013 11:53 PM

ImageMagick problem
 
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
Code:

yum install php-pear gcc
Installing ImageMagick
Code:

yum install ImageMagick ImageMagick-devel ImageMagick-perl
Compiling imagick for PHP
Code:

pecl install imagick
and then
Code:

echo extension=imagick.so >> /etc/php.ini
and yes, it does show on phpinfo

http://www.tecmint.com/install-imagemagick-in-linux/

--------------- Added [DATE]1379599788[/DATE] at [TIME]1379599788[/TIME] ---------------

currently, this is my func.blacklist on vhost config

Code:

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 [DATE]1379600847[/DATE] at [TIME]1379600847[/TIME] ---------------

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.


All times are GMT. The time now is 08:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01727 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete