View Full Version : Imagemagick Problem After Server Move
January 7th, 2007, 08:57 AM
Hi - it get the following error when trying to upload to the gallery since the server move:
Error creating thumbnail! Error code: 127
"/usr/bin/mogrify" +profile "*" -size 100x75 -quality 60 -geometry 100x75 -unsharp 10 '/home/migweb/public_html/gallery/data/500/thumbs/P1000644_Small_.JPG'
I have full access to the server and SSH and have verified the location of mogrify as being /usr/bin.mogrify - so this isn't the issue.
Any ideas on what the problem may be? I'm assuming this is a server config issue as opposed to the Photopost issue as vBulletin is also having issues with mogrify.
January 7th, 2007, 09:28 AM
I have just updated ImageMagick to the latest version and it still does not work.
I have checked and php safe_mode is turned off.
January 7th, 2007, 11:30 AM
127 error means your path to image magick is incorrect as it can not be found. Update the config setting with the true path to mogrify like maybe /usr/local/bin/mogrify?
January 7th, 2007, 11:44 AM
I already tried that path, still the same message.
January 9th, 2007, 04:23 AM
January 9th, 2007, 11:00 AM
The path that Chuck listed may not be the right path for your server. Do you have shell access? If so login in with Putty or the SSL client of your choice and type locate mogrify. If nothing comes back type updatedb. That will usually take a few minutes to run. When you get back to the prompt type locate mogrify again.
Thats the path you will use
January 9th, 2007, 01:26 PM
yes you may need to ssh to your server and do whereis mogrify. My suggestion was just that an example.
January 16th, 2007, 02:54 PM
Doing this spits back:
mogrify: /usr/bin/mogrify /usr/share/man/man1/mogrify.1.gz
What does this mean? I have tried /usr/bin/mogrify but that does not work. WHat is the last bit all about?
January 16th, 2007, 02:57 PM
Ok, I tried /usr/share/man/man1/mogrify.1.gz as the location. Now I get this error:
Error creating thumbnail! Error code: 126
"/usr/share/man/man1/mogrify.1.gz" +profile "*" -size 100x75 -quality 60 -geometry 100x75 -unsharp 10 '/home/migweb/public_html/gallery/data/500/thumbs/P1000644_Small_.JPG'
January 16th, 2007, 03:01 PM
No, thats a link to a manual page.
is your correct path.
Can you try manually running the command it is spitting out? You may need to create a copy of an image you can try it on just to see what happens.
January 16th, 2007, 04:21 PM
Ok - I've fixed this. The user name and password I was using in the setting (i.e. for the database) did not have root rights. I changed the username and password to one with root rights and it started working straight away. Thanks for the input on this - it may be worth making a note of this in case of future problems for other users.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.