ImageMagick Derivative Error

Hello,

I am trying to use Omeka 2.01 but I cannot get ImageMagick to work. I installed Omeka just a few days ago and my hosting provider (Webhostingpad) says that ImageMagick is installed and available at /usr/bin/convert however I tried both /usr/bin and /usr/bin/ in Omeka's setting and only got errors.

The exact error I am getting is below from the developer mod to the htc.access file:

Omeka_File_Derivative_Exception
ImageMagick is not properly configured: invalid directory given for the ImageMagick command!

<br />
#0 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/File/Derivative/Image/Creator.php(26): Omeka_File_Derivative_Image_Creator->setImageMagickDirPath('/usr/bin/')<br />
#1 /home/pna6fb9i/public_html/omeka/application/models/File.php(270): Omeka_File_Derivative_Image_Creator->__construct('/usr/bin/')<br />
#2 /home/pna6fb9i/public_html/omeka/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()<br />
#3 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()<br />
#4 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)<br />
#5 /home/pna6fb9i/public_html/omeka/application/models/File.php(120): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)<br />
#6 [internal function]: File->afterSave(Array)<br />
#7 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)<br />
#8 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)<br />
#9 /home/pna6fb9i/public_html/omeka/application/models/Item.php(270): Omeka_Record_AbstractRecord->save()<br />
#10 /home/pna6fb9i/public_html/omeka/application/models/Builder/Item.php(204): Item->saveFiles()<br />
#11 /home/pna6fb9i/public_html/omeka/application/libraries/globals.php(554): Builder_Item->addFiles('Upload', 'file', Array)<br />
#12 /home/pna6fb9i/public_html/omeka/application/models/Item.php(253): insert_files_for_item(Object(Item), 'Upload', 'file', Array)<br />
#13 /home/pna6fb9i/public_html/omeka/application/models/Item.php(159): Item->_uploadFiles()<br />
#14 [internal function]: Item->beforeSave(Array)<br />
#15 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)<br />
#16 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(531): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array)<br />
#17 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Controller/AbstractActionController.php(176): Omeka_Record_AbstractRecord->save(false)<br />
#18 /home/pna6fb9i/public_html/omeka/application/controllers/ItemsController.php(88): Omeka_Controller_AbstractActionController->editAction()<br />
#19 /home/pna6fb9i/public_html/omeka/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()<br />
#20 /home/pna6fb9i/public_html/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')<br />
#21 /home/pna6fb9i/public_html/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))<br />
#22 /home/pna6fb9i/public_html/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()<br />
#23 /home/pna6fb9i/public_html/omeka/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()<br />
#24 /home/pna6fb9i/public_html/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()<br />
#25 /home/pna6fb9i/public_html/omeka/admin/index.php(28): Omeka_Application->run()<br />
#26 {main}<br />

What can I do to fix this?

Can you check if your host has open_basedir or other restrictions turned on? There would be warnings in the PHP server log if that's the problem.

Those could make Omeka unable to use that ImageMagick install even if /usr/bin/ is the right path.

Yes, open_basedir is on. Is there a workaround for this?

My hosting company solved the problem by uploading the server's php.ini file to my omeka folder and now it works. Thanks for your help!