vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can't Get ImageMagick to work. (https://vborg.vbsupport.ru/showthread.php?t=194163)

BigJohnny 10-21-2008 10:38 AM

Can't Get ImageMagick to work.
 
My host has image magick installed, and Ive entered the path as many different ways as I can, but it just won't seem to work on my board.

Am I doing something wrong or missing something? I've had it working before on a different host, just doesn't seem to want to work with my current host.

Dismounted 10-21-2008 11:06 AM

There is only one path to ImageMagick...What has your host said the path is?

BigJohnny 10-21-2008 11:14 AM

/usr/local/bin/convert/

I have tried also
/usr/local/bin/
/usr/bin/

and still the image magick picture doesn't show up.... I'm not sure why?!

Dismounted 10-22-2008 06:37 AM

If you host says it is /usr/local/bin/convert/ and it does not work - you will need to consult them. We cannot really help you with a server-specific path.

BigJohnny 10-22-2008 10:49 AM

I am in contact with them, I was asking here because I was wondering if anyone else had the same problem before, or maybe I did something wrong or missed something.

I don't want to use GD, but its starting to look like i might have to.

jfk1 10-22-2008 12:16 PM

u might ask, have they got ALL the modules installed.... in other words, does their install support all graphic formats..... jpg, png, gif etc...
i had a nightmare installing ImageMagick on the server, (linux), even with a lot of help and support from the ImageMagick crew... got there in the end.....
i haven't got a clue how to actually use ImageMagick, i installed for a pal, however it is interesting that u need specify a path... with the correct install, i believe u need only call the module, something like "use Image::Magick" (dont quote me on this, it was for perl scripts, not PHP)

BigJohnny 10-23-2008 01:10 AM

well vbulletin only has one input box for a path.

So if the convert binaries are located in /usr/bin/convert/ wouldn't the identify binaries be in /usr/bin/identify/, which would mean the path to use in vbulletin would be /usr/bin/ ...

correct? .... maybe?

Videx 10-23-2008 02:44 AM

I couldn't get mine to work at first either. But after opening a ticket, eventually my host got it working. I forget the exact reason they gave me.

RedWingFan 10-23-2008 03:26 AM

Quote:

Originally Posted by BigJohnny (Post 1649627)
/usr/local/bin/convert/

I have tried also
/usr/local/bin/
/usr/bin/

and still the image magick picture doesn't show up.... I'm not sure why?!

Quote:

Originally Posted by Dismounted (Post 1650236)
If you host says it is /usr/local/bin/convert/ and it does not work - you will need to consult them. We cannot really help you with a server-specific path.

If you type "which convert" at a shell prompt, it should return the complete path to the convert utility. On my dedicated server, it comes out as:

/usr/local/bin/convert

...which means in vB, I enter "/usr/local/bin/" (with the trailing slash) to point to the directory in which convert and identify reside. Works fine on our server.

You do NOT want to use a backslash after ......./convert, since you'll have vB looking for a directory named "convert". You have to think of convert as being the filename of the "program" you are running, whereas everything preceding it (in my case, the /usr/local/bin/) being the directory hierarchy in which it is found.

BigJohnny 10-23-2008 11:03 AM

This is the email I got from my host most recently.... it still doesnt work though.

I dont have access to a shell prompt on my host :(

Quote:

Howdy,

The convert binary is located at the following path:

[root@cp ~]# which convert
/usr/bin/convert
[root@cp ~]#

If you have any questions concerning this, please let me know!


Videx 10-23-2008 12:09 PM

Well, you've got their ear, so let them know. Send them a screenshot because you can bet they aren't familiar with vb and don't know you have a little test utility right there in Options.

Here, I dug back through my support tickets and found their explanation - this after giving them admin access and jumping through all kinds of hoops:
Quote:

The exec() was disabled in the server for security reasons. We have enabled this for your particular account .

jfk1 10-24-2008 05:58 AM

i would ask hosts if any other domain holder is using IM, and see some "physical" evidence that it is actually working for someone else. as stated before, i had a nightmare with this package, until i finally got it installed "properly". u could save urself a lot of useless testing etc

BigJohnny 10-24-2008 11:06 AM

well they cant enable exec() or its enabled for the whole server and this is a huge security risk they say.

I did however find this useful test script
http://www.expertzzz.com/Downloadz/view/880

which i put on my server
http://96cougar.com/cgi-bin/magickpm.cgi

and it tells me that they are using version 5.51, and not image magick 6

jfk1 10-24-2008 12:38 PM

Quote:

Originally Posted by BigJohnny (Post 1651731)
well they cant enable exec() or its enabled for the whole server and this is a huge security risk they say.

I did however find this useful test script
http://www.expertzzz.com/Downloadz/view/880

which i put on my server
http://96cougar.com/cgi-bin/magickpm.cgi

and it tells me that they are using version 5.51, and not image magick 6

i clicked your "test" link.... and it says it all. i guess ur hosts are going going to tell u anything but the real reason why IM wont run, that being, IM is a +++++ to install! :) they either can't figure it, or can't be bothered. i will try dig out the exact build files that i used on the server, which u can suggest to them. they will, however, still need to load libs for each graphic format u need, (thats after u installed the app!). it really is a ball-ache. :(

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

here are some details of my install:
IM build = ImageMagick-6.4.1
here are 3 of the lib files i installed (the "-devel" extension is important!)
libjpeg-devel.i386
libpng-devel.i386
libtiff-devel.i386
here is the shell command i used to configure, prior to "make", then "make install" (which worked for me :) = ./configure --enable-shared --with-perl --disable-openmp --with-jpeg --with-png --with-tiff --disable-static LDFLAGS='-L/usr/local/lib -L/usr/lib -rpath,/usr/lib'

here are 2 shell commands which tell the whole story, about the install and config, of IM
identify -list configure
identify -list format

hope this helps

BigJohnny 10-24-2008 07:02 PM

they installed 6.4.4 for me, and it still isnt working.

the test script now returns good info, and passes all tests, except the one for the font which says it needs to be uploaded (it is) and it doesnt tell you the directory that the script is located in, or the path to upload the font file.... which is the path the script is located in.

ill pass your post on to them and see what they say about.... what i do know, is that they wont enable exec(), they said they've had a hacker break in with that enabled.

jfk1 10-24-2008 10:21 PM

Quote:

Originally Posted by BigJohnny (Post 1651978)
they installed 6.4.4 for me, and it still isnt working.

the test script now returns good info, and passes all tests, except the one for the font which says it needs to be uploaded (it is) and it doesnt tell you the directory that the script is located in, or the path to upload the font file.... which is the path the script is located in.

ill pass your post on to them and see what they say about.... what i do know, is that they wont enable exec(), they said they've had a hacker break in with that enabled.

i would say u are nearly there! :)

edit: default location for libfreetype would be /usr/lib

BigJohnny 10-25-2008 09:31 PM

this is what my host has to say most recently

I have did the
Quote:

./configure --enable-shared --with-perl --disable-openmp --with-jpeg --with-png --with-tiff --disable-static LDFLAGS='-L/usr/local/lib -L/usr/lib -rpath,/usr/lib'

before make and make install.

jfk1 10-26-2008 12:17 AM

Quote:

Originally Posted by BigJohnny (Post 1652659)
this is what my host has to say most recently

I have did the

i dont know what to say....
however, i am seriously tempted to open a server just for "ppl who cant get their host to run IM".............

Videx 10-26-2008 12:29 AM

Correct me if I'm wrong, but isn't IM mostly just useful for fancier captchas? If so, forget it - captchas were broken long ago, and now the bots have an easier time reading them than people do.

jfk1 10-27-2008 01:16 PM

Quote:

Originally Posted by Videx (Post 1652782)
Correct me if I'm wrong, but isn't IM mostly just useful for fancier captchas? If so, forget it - captchas were broken long ago, and now the bots have an easier time reading them than people do.

i think it used for a little bit more than this :p

Videx 10-27-2008 04:14 PM

Not from what I'm seeing. Most of the newer features in IM won't ever be used in vb (composite, montage, HDR, etc.). IM had cropping long before GD, but even that feature isn't used in vb. GD has no trouble doing thumbnails now.

I think .gif support has been dropped in GD, but I'm not sure.


All times are GMT. The time now is 06:18 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.01177 seconds
  • Memory Usage 1,769KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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