How can I install additional extensions to the PHP engines? (ClearOS 7)
I need the extension Imagick. From SSH/command line I can search for this packages and install this.
yum search imagick and
yum install php-pecl-imagick.x86_64
But this is only for the build in webserver//PHP5.4, so not for the PHP (7.1) version which I use for the website/webserver.
What is the procedure to install extensions to the different PHP Engines? (/opt/rh/rh-php71/root contains the environment of PHP7.1)
I need the extension Imagick. From SSH/command line I can search for this packages and install this.
yum search imagick and
yum install php-pecl-imagick.x86_64
But this is only for the build in webserver//PHP5.4, so not for the PHP (7.1) version which I use for the website/webserver.
What is the procedure to install extensions to the different PHP Engines? (/opt/rh/rh-php71/root contains the environment of PHP7.1)
In PHP Engines
Share this post:
Accepted Answer
That is because it is in a disabled repo. Generally if a repo is disabled, it is best left disabled and only enable it when you want to install a particular package from it, but it may eventually break the updates. Do:
yum install sclo-php71-php-pecl-imagick --enablerepo=centos-sclo-sclo-unverified
Responses (3)
-
Accepted Answer
-
Accepted Answer
Hello Nick,
yum list sclo-php71-php-pecl-imagick --enablerepo=* --showduplicates
result is:
Available Packages
sclo-php71-php-pecl-imagick.x86_64 3.4.3-2.el7 centos-sclo-sclo-testing-unverified
sclo-php71-php-pecl-imagick.x86_64 3.4.3-2.el7 centos-sclo-sclo-unverified
But how to install this?
Because 'yum install sclo-php71-php-pecl-imagick.x86_64' results in the error that package is not available.
And running pecl (from global or the local pecl command in the '/opt/rh/rh-php71/root/bin' directory results also in an error
# ./pecl install sclo-php71-php-pecl-imagick
parsePackageName(): only one version/state delimiter "-" is allowed in "sclo-php71-php-pecl-imagick"
invalid package name/package file "sclo-php71-php-pecl-imagick"
install failed
And# ./pecl install imagick
gives also only warnings and errors. -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »