• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

ImageMagick configuration on multi Php

kude

New Pleskian
Hello, I installed another php version a while ago. Today I am trying to add ImageMagick to this php version but after launching the following command

Code:
./configure '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php-5.6.5' '--with-config-file-path=/usr/local/php-5.6.5/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--enable-fastcgi' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php-5.6.5' '--with-png-dir=/usr/local/php-5.6.5' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php-5.6.5' '--with-openssl' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr' '--enable-shmop' '--enable-calendar' '--without-sqlite3' '--with-libxml-dir=/usr/local/php-5.6.5' '--enable-pcntl' '--enable-mbstring' '--enable-mbregex' '--with-gd' '--enable-bcmath' '--with-xmlrpc' '--with-mysql=/usr' '--with-mysqli' '--with-snmp' '--enable-soap' '--with-xsl' '--enable-xmlreader' '--enable-xmlwriter' '--enable-pdo' '--with-pdo-mysql' '--with-pdo-pgsql' '--with-pear=/usr/local/php-5.6.5/pear' '--with-mcrypt' '--enable-intl' '--enable-imagick'  '--without-pdo-sqlite' '--with-config-file-scan-dir=/usr/local/php-5.6.5/php.d'

it sends me back this error configure:
Code:
WARNING: unrecognized options: --enable-fastcgi, --enable-imagick
Could you help me, please?
 
Hi kude,

please have a look at the warning:
WARNING: unrecognized options: --enable-fastcgi, --enable-imagick

Please read the manual, when compiling PHP:

http://php.net/manual/en/configure.about.php
...
--enable-fastcgi
If this is enabled, the CGI module will be built with support for FastCGI also.

As of PHP 5.3.0 this argument no longer exists and is enabled by --enable-cgi instead.


For imagick, it is easier to use PECL:

pear config-set preferred_state beta
pecl install imagick

If you don't have "PEAR" and "PECL" installed, please install it first on your system. with for example: "apt-get install php-pear php5-dev" ( or equivalent commands instead of "apt-get" depending on your system )
 
Back
Top