I really need some help here. I have been running php 7.0 with mod_php and mod_ruid2 and imagick extension installed from source, it have worked correct. However I have now changed to use php-fpm, it seems to work correct except I am not able to get imagick extension to work correctly.
imagick extension shows up correct in a phpinfo page, however when I upload a test file like this to a domain:
Then I try to visit the domain, it shows a blank page. When the test work correctly it should show this text: /usr/local/bin/convert
Here is a link to a phpinfo page: (removed link because problem now is solved)
Here is how I installed imagick:
On a different server wich still is using mod_php and it is working, I notice that on phpinfo page under "Environment" section I have this:
However as you can see in the phpinfo page linked to above (where imagick is not working correctly), it only have this path under "Environment" section:
So I suspect it has something to do with /usr/local/bin not being in the path in phpinfo for the user?
Maybe I should have deleted some old files from the mod_php installation? I really need some help here, completely stuck.
imagick extension shows up correct in a phpinfo page, however when I upload a test file like this to a domain:
Code:
<?php
echo "<pre>";
system("which convert");
echo "</pre>";
?>
Then I try to visit the domain, it shows a blank page. When the test work correctly it should show this text: /usr/local/bin/convert
Here is a link to a phpinfo page: (removed link because problem now is solved)
Here is how I installed imagick:
Code:
cd /root
wget http://pecl.php.net/get/imagick-3.4.3.tgz
tar zxf imagick-3.4.3.tgz
cd imagick-3.4.3
/usr/local/php70/bin/phpize
./configure --with-php-config=/usr/local/php70/bin/php-config
make
make install
On a different server wich still is using mod_php and it is working, I notice that on phpinfo page under "Environment" section I have this:
Code:
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
However as you can see in the phpinfo page linked to above (where imagick is not working correctly), it only have this path under "Environment" section:
Code:
HOME /home/USERNAME
So I suspect it has something to do with /usr/local/bin not being in the path in phpinfo for the user?
Maybe I should have deleted some old files from the mod_php installation? I really need some help here, completely stuck.
Last edited: