Forums

Resolved
0 votes
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)
Friday, November 16 2018, 08:31 AM
Share this post:

Accepted Answer

Monday, November 19 2018, 08:30 AM - #Permalink
Resolved
0 votes
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
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Monday, November 19 2018, 10:52 AM - #Permalink
    Resolved
    0 votes
    Thanks a lot.
    Solution works. I have now the imagick library working.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 19 2018, 07:59 AM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, November 18 2018, 08:53 PM - #Permalink
    Resolved
    0 votes
    Try:
    yum search imagick --enablerepo=*
    When you have your package name, you can then search for the repo e.g.:
    yum list sclo-php71-php-pecl-imagick --enablerepo=* --showduplicates
    The reply is currently minimized Show
Your Reply