In these days I was installing a script in a production environment that uses FuelPHP as MVC backend framework and Imagick extension to manipulate some jpg images.

I really like FuelPHP and I often use it in my projects (you can download it at https://fuelphp.com/) but installing the code in production environment I get the exception “Class Imagick not found”.

In my development machine all works ok and in the production environment Imagick has been correctly installed as you can see in the image below:

Production server phpInfo

 

Moreover, creating a standard PHP script that doesn’t rely on a FuelPHP controller I could successfully use Imagick, so this confirm that the extension has been correctly installed.

After attempts of every kinds I switched PHP version from 5.4.16 to 5.6.37 and magically all started working.

I don’t know who to blame for this problem… Of course there is something that doesn’t work between PHP 5.4.16, FuelPHP 1.8.1, Imagick 3.4.3 and maybe something else.