Error installing Imagick and Memcached for Openlitespeed on Almalinux 9.4

#1
Hello,

On a fresh Almalinux 9.4 I installed Openlitespeed, but when I try to install lsphp 8.2 all other packages install fine except for imagick and memcached.

This is the command I used:

dnf install -y lsphp82 lsphp82-common lsphp82-bcmath lsphp82-dba lsphp82-gd lsphp82-intl lsphp82-json lsphp82-mbstring lsphp82-mysqlnd lsphp82-opcache lsphp82-soap lsphp82-zip lsphp82-xml lsphp82-sodium lsphp82-pecl-imagick lsphp82-pecl-memcached

and this is the error I got:

Error: Problem 1: conflicting requests - nothing provides ImageMagick(x86-64) >= 7.1.0 needed by lsphp82-pecl-imagick-3.7.0-4.el9.8.2.x86_64 from litespeed-update Problem 2: conflicting requests - nothing provides libmemcached.so.11()(64bit) needed by lsphp82-pecl-memcached-3.2.0-4.el9.8.2.x86_64 from litespeed-update - nothing provides libmemcachedutil.so.2()(64bit) needed by lsphp82-pecl-memcached-3.2.0-4.el9.8.2.x86_64 from litespeed-update - nothing provides libmemcachedprotocol.so.0()(64bit) needed by lsphp82-pecl-memcached-3.2.0-4.el9.8.2.x86_64 from litespeed-update - nothing provides libmemcached-libs needed by lsphp82-pecl-memcached-3.2.0-4.el9.8.2.x86_64 from litespeed-update(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Thank you for any help
 
#3
Hi is there any update on this? I need to build a new server for a WordPress site and these two modules are really important.

Thanks
 
#4
hello,

we have a new installation, (new VPS) and just now in SEPT 13 2024 we also have the same problem:
Code:
[root@dns ~]# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.7.19 Open (BUILD built: Tue Apr 16 15:14:26 UTC 2024)
        module versions:
        lsquic 3.3.2
        modgzip 1.1
        cache 1.66
        mod_security 1.4 (with libmodsecurity v3.0.12)
[root@dns ~]#
and we have PHP 8
Code:
[root@dns ~]# php -v
PHP 8.1.29 (cli) (built: Jun  5 2024 05:51:57) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.29, Copyright (c) Zend Technologies
    with the ionCube PHP Loader v12.0.5, Copyright (c) 2002-2022, by ionCube Ltd.
    with Zend OPcache v8.1.29, Copyright (c), by Zend Technologies
[root@dns ~]#
but when try install from yum, ever we obtain
Code:
[root@dns ~]# yum -y install lsphp81-imagick
Last metadata expiration check: 0:19:32 ago on Thu 12 Sep 2024 04:46:49 PM -05.
Error:
 Problem: conflicting requests
  - nothing provides ImageMagick(x86-64) >= 7.1.0 needed by lsphp81-pecl-imagick-3.7.0-4.el9.8.1.x86_64 from litespeed-update
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
You have new mail in /var/spool/mail/root
[root@dns ~]#
which is the solution?, with old versions of LSWS never we have this error, all run fine, but we want use LiteSpeed/1.7.19
 
#6
hello master @Cold-Egg, following yours instructions we execute:
Code:
### first choice the PHP version for install iMagick:

ln -sfn /usr/local/lsws/lsphp80/bin/php /usr/bin/php
ln -sfn /usr/local/lsws/lsphp81/bin/php /usr/bin/php

### confirm using:
php -v | head -n 1 | cut -d " " -f 2 && php -m | grep imagick

### because in 2024 this traditional line not work on my AlmaLinux 9:
yum -y install lsphp80-imagick
yum -y install lsphp81-imagick

### then I need run first the line:
yum -y install ImageMagick-devel

### and finally install imagick:
/usr/local/lsws/lsphp80/bin/pecl install imagick
/usr/local/lsws/lsphp81/bin/pecl install imagick

### and finally add the line to each php.ini:
extension=imagick.so
regards!

PD: if some user can share the line/code to REMOVE the "newline" from the command
Code:
php -v | head -n 1 | cut -d " " -f 2 && php -m | grep imagick
then print all and 1 line, we will appreciate this :)

again, thanks master @Cold-Egg for your help
 
Top