ImageMagick path and OVH hosting provider

Hello and thank you for welcoming me to this forum (sorry for my english, I'm french, but I'll try to be clear).
After searching in the topics, I perceive that this problem is not resolved. My hosting provider is OVH (share hosting), and when i write in SSH this command line [which convert] and [convert] i have this :

Welcome to Ovh
centreia@ssh1.20gp.ha.ovh.net:~$ which convert
/usr/bin/convert
centreia@ssh1.20gp.ha.ovh.net:~$ convert
Version: ImageMagick 6.6.0-4 2012-05-03 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

So ImageMagick seem be installing on my hosting share server. But i've a troubleshouting with omeka (the test bouton in omeka's admin interface for ImageMagick path don't detected a problem, but my derivatives are not generate). Here is my error log:

2014-03-18T18:46:58+01:00 ERR (3): exception 'Omeka_File_Derivative_Exception' with message 'ImageMagick is not properly configured: invalid directory given for the ImageMagick command!' in /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/File/Derivative/Image/Creator.php:44
Stack trace:
#0 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/File/Derivative/Image/Creator.php(26): Omeka_File_Derivative_Image_Creator->setImageMagickDirPath('/usr/bin/conver...')
#1 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/models/File.php(356): Omeka_File_Derivative_Image_Creator->__construct('/usr/bin/conver...')
#2 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#3 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#4 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#5 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/models/File.php(209): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#6 [internal function]: File->afterSave(Array)
#7 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#8 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#9 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/models/Item.php(322): Omeka_Record_AbstractRecord->save()
#10 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/models/Builder/Item.php(204): Item->saveFiles()
#11 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/globals.php(554): Builder_Item->addFiles('Filesystem', Array, Array)
#12 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/plugins/Dropbox/DropboxPlugin.php(100): insert_files_for_item(Object(Item), 'Filesystem', Array, Array)
#13 [internal function]: DropboxPlugin->hookAfterSaveItem(Array)
#14 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Plugin/Broker.php(157): call_user_func(Array, Array)
#15 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(298): Omeka_Plugin_Broker->callHook('after_save_item', Array)
#16 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#17 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Controller/AbstractActionController.php(175): Omeka_Record_AbstractRecord->save(false)
#18 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/controllers/ItemsController.php(88): Omeka_Controller_AbstractActionController->editAction()
#19 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#20 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')
#21 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#22 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#23 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#24 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#25 /homez.775/centreia/centre-iannis-xenakis-archives.org/omeka-2.1.4/admin/index.php(28): Omeka_Application->run()
#26 {main}

So I don't understand. Thanks for your answer.
PS : I read that the omeka 2.2 perhaps solve this problem about derivative ?
Many thanks

The path looks right. It's possible that the server doesn't have permissions to execute convert. That'd be something to check with the hosting provider.

Omeka 2.2 will include the ability to use the IMagic PHP module, but of course only if it is installed on the server.

When which returns /usr/bin/convert, it's just the /usr/bin part that you should put into the "Path to ImageMagick" field of the Site Settings page.

It looks like you included the /convert part at the end. Do you get any better results if you switch it to just /usr/bin?

Thanks you for your fast answers.
Thank John, I was hoping that your solution would work, but this is not the case.
I expect a response from hosting provider, according to patrickmj's suggest.

If you look at the PHP log (this is different from the Omeka log, it's often stored somewhere on its own or in the Apache logs), that might give you some hint as to what's happening.

Some servers have fairly restrictive settings about what paths PHP is allowed to access, which causes trouble for Omeka when it tries to verify that the path you gave us exists. That's often the problem when an apparently correct path causes an error.

Dear John Flatness,
Thanks for your answer.
You can find here the web log of my server, curiously my server didn't generate an error log for the april month. So I post just the extract concerning ImageMagick.
According to Patrickmj, I'm still waiting for an answer of my webhost concerning the blocking of convert :

83.154.165.203 www.centre-iannis-xenakis-archives.org - [07/Apr/2014:18:55:14 +0200] "GET /admin/settings/check-imagemagick?path-to-convert=%2Fcentre-iannis-xenakis-archives.org%2Fimagemagick%2FImageMagick-6.8.8-10 HTTP/1.1" 200 103 "http://www.centre-iannis-xenakis-archives.org/admin/settings/edit-settings" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10"

83.154.165.203 www.centre-iannis-xenakis-archives.org - [07/Apr/2014:18:55:18 +0200] "GET /admin/settings/check-imagemagick?path-to-convert=%2Fcentre-iannis-xenakis-archives.org%2Fimagemagick%2FImageMagick-6.8.8-10 HTTP/1.1" 200 103 "http://www.centre-iannis-xenakis-archives.org/admin/settings/edit-settings" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10"

83.154.165.203 www.centre-iannis-xenakis-archives.org - [07/Apr/2014:18:55:24 +0200] "GET /admin/settings/check-imagemagick?path-to-convert=%2Fcentre-iannis-xenakis-archives.org%2Fimagemagick%2FImageMagick-6.8.8-10 HTTP/1.1" 200 103 "http://www.centre-iannis-xenakis-archives.org/admin/settings/edit-settings" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10"

83.154.165.203 www.centre-iannis-xenakis-archives.org - [07/Apr/2014:18:55:25 +0200] "GET /admin/settings/check-imagemagick?path-to-convert=%2Fcentre-iannis-xenakis-archives.org%2Fimagemagick%2FImageMagick-6.8.8-10 HTTP/1.1" 200 103 "http://www.centre-iannis-xenakis-archives.org/admin/settings/edit-settings" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10"

Hi,

This issue is frequent when Omeka or any other cms is installed on a shared host (see http://omeka.org/forums/topic/imagemagick-as-php-module).

So you can replace application/libraries/Omeka/File/Derivative/Image/creator.php with the file https://gist.github.com/Daniel-KM/7559570.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

Thanks, Daniel!

We're actually moving to bring aspects of this and more into the core for Omeka 2.2. See more on the dev list.