Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 12-06-2008, 10:41 PM
Psalmist Psalmist is offline
 
Join Date: Jul 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default getting ImageMagick to work with vB (on Windows)

I'm running vBulletin on a windows server. I changed the Image Processing Library setting in vBulletin from GD to ImageMagick.

But now when I try to upload an avatar (as a user, under "Edit Avatar" in the User CP), I get this vBulletin Message: "Invalid File".

When I installed ImageMagick on my server, I had two different installation packages to choose from, the DLL version and the static version:

ImageMagick-6.4.7-2-Q16-windows-dll.exe
ImageMagick-6.4.7-2-Q16-windows-static.exe

I chose the DLL version (since it was the recommended one).

Is that the problem?

If it matters, the ImageMagick Binary Path I set is:
C:\Program Files\ImageMagick-6.4.7-Q16\

(And that is indeed the path to the program folder for ImageMagick.)

(I know that ImageMagick is working on my server because I did their test to verify.)

So in short, my question is, which version of ImageMagick should be installed (on Windows)? The DLL or the Static? Or does it matter?

Thanks
Reply With Quote
  #2  
Old 12-07-2008, 06:37 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you set the ImageMagick path in the Admin CP?
Reply With Quote
  #3  
Old 12-07-2008, 08:02 AM
Psalmist Psalmist is offline
 
Join Date: Jul 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I did set the path. That was not the problem (although, if you have spaces in your path, that could be a problem on Windows (if vB doesn't know to put quotes around it), so just to be safe, I installed ImageMagick to C:\ImageMagick\ instead of the default C:\Program Files\ImageMagick\).

The problem is described in a bulletin from Microsoft. Apparently it's a somewhat common problem with CGI (or FastCGI). (By the way you have to use CGI or FastCGI on Windows because the ISAPI module version of PHP is not stable on Windows, because it's not really thread-safe as Windows applications need to be.)

The problem is that when you're running in CGI/FastCGI, the internet user guest account (IUSR_*your_machine_name*) is denied access to the Windows system program Cmd.exe (which I guess vB needs in order to execute ImageMagick). So you have to explicitly grant read and execute permissions on Cmd.exe to the IUSR_*your_machine_name* account.

Here's the bulletin from Microsoft:

http://support.microsoft.com/kb/311481

(In case anyone else running vB on Windows runs into the same problem.)

Thanks
Reply With Quote
  #4  
Old 04-28-2009, 03:34 PM
FFSBC FFSBC is offline
 
Join Date: Apr 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried this and couldn't get it to work with Server 2003 and IIS 6. There is another permission that needs to be added. I needed to grant the IIS_WPG (IIS Worker Process Group) read/write access to the Windows temp directory and the IUSR account needs read access to cmd.exe. Now it's working fine.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03780 seconds
  • Memory Usage 2,182KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete