# PHP startup - error unable to load redis.so

**URL:** <https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939>\
**Category:** ℹ️ Support\
**Created:** [January 22, 2020, 3:21pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939 "2020-01-22T15:21:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdG973](https://help.nextcloud.com/letter_avatar/edg973/32/6_22734026db12803ebb3e059622ac3534.png) [@EdG973](https://help.nextcloud.com/u/EdG973)\
**Post date:** [January 22, 2020, 3:21pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/1 "2020-01-22T15:21:38Z")

</div>

Hello,  
I have installed Nextcloud 17 on centos 8 (with Nginx) ; it works great except for cache memory.  
I have a message about redis.so which seems not be avalaible from EPEL centos 8 : “PHP Startup : unable to load dynamic library ‘redis.so’ …”  
Is there a way to install redis properly ?

Best Regards,

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [January 22, 2020, 3:37pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/2 "2020-01-22T15:37:34Z")

</div>

Hi,

Could you please do the following?

- tell us your PHP version installed (not PHP-CLI)
- post the full error message
- check if the redis.so file does exist on your system

What I am aiming at is a change in a PHP version, where modules are no longer enabled by the name “redis.so” but “redis” instead. The .so extension is appended automatically when looking for the file. So enabling with “redis.so” would search the module folder for a file “redis.so.so”.

Could be another issue for you, but I would like to rule that out as well.

---

<div class="post-metadata">

**Author:** ![EdG973](https://help.nextcloud.com/letter_avatar/edg973/32/6_22734026db12803ebb3e059622ac3534.png) [@EdG973](https://help.nextcloud.com/u/EdG973)\
**Post date:** [January 22, 2020, 5:19pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/3 "2020-01-22T17:19:38Z")

</div>

php.x86\_64 7.2.11-2.module\_el8.1.0+209+03b9a8ff @AppStream

php-fpm[16524]: [13-Jan-2020 11:25:01] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [January 22, 2020, 5:33pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/4 "2020-01-22T17:33:24Z")

</div>

> [@EdG973](#):
>
> /usr/lib64/php/modules/redis.so.so: cannot open shared object file

This looks suspicious to me.  
So have you checked?

- if the file /usr/lib64/php/modules/redis.so exists
- where and how you enabled the redis module in your ini files

Did you try to change the config line in the relevant ini file and remove the “.so” extension?

---

<div class="post-metadata">

**Author:** ![EdG973](https://help.nextcloud.com/letter_avatar/edg973/32/6_22734026db12803ebb3e059622ac3534.png) [@EdG973](https://help.nextcloud.com/u/EdG973)\
**Post date:** [January 23, 2020, 12:23pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/5 "2020-01-23T12:23:48Z")

</div>

It seems php-pecl-redis is not anymore avalaible from EPEL in centos 8

# yum list php-pecl-redis

CentOS-8 - AppStream 2.4 kB/s | 4.3 kB 00:01  
CentOS-8 - Base 4.0 kB/s | 3.8 kB 00:00  
CentOS-8 - Extras 927 B/s | 1.5 kB 00:01  
Extra Packages for Enterprise Linux Modular 8 - 66 kB/s | 56 kB 00:00  
Extra Packages for Enterprise Linux 8 - x86\_64 128 kB/s | 59 kB 00:00  
Erreur : Aucun paquet correspondant à lister

So /usr/lib64/php/modules/redis.so is not installed

But maybe is a way to install it different from EPEL ?

(To make Nexcloud works, I installed php-fpm on centos 8 from default appstream repository

# yum install php php-mysqlnd php-fpm php-opcache php-gd php-xml php-mbstring -y

---

<div class="post-metadata">

**Author:** ![MeiRos](https://help.nextcloud.com/user_avatar/help.nextcloud.com/meiros/32/8211_2.png) [@MeiRos](https://help.nextcloud.com/u/MeiRos)\
**Post date:** [January 23, 2020, 1:27pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/6 "2020-01-23T13:27:16Z")

</div>

I think you can install Redis from Remi repository.

---

<div class="post-metadata">

**Author:** ![EdG973](https://help.nextcloud.com/letter_avatar/edg973/32/6_22734026db12803ebb3e059622ac3534.png) [@EdG973](https://help.nextcloud.com/u/EdG973)\
**Post date:** [January 23, 2020, 1:41pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/7 "2020-01-23T13:41:46Z")

</div>

OK, but do I have to remove my previous installation of php-fpm from AppStream ?  
Is the php-pecl-redis compatible with php\* from AppStream ?

Is there any hope that php-pecl-redis to be again available from AppStream or EPEL ?

---

<div class="post-metadata">

**Author:** ![Ezequiel](https://help.nextcloud.com/letter_avatar/ezequiel/32/6_22734026db12803ebb3e059622ac3534.png) [@Ezequiel](https://help.nextcloud.com/u/Ezequiel)\
**Post date:** [June 18, 2020, 3:57am UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/8 "2020-06-18T03:57:19Z")

</div>

Hello,  
I have a centos 8 installation and fixed it adding this module  
dnf install -y php php-igbinary

creating: /etc/php.d/20-redis.ini  
adding the module:  
`extension=redis.so`

removing from php.ini  
`extension=redis.so`

restart:  
systemctl restart php-fpm

I guess redis.so need to be loaded before some other modules.  
hope it helps.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 4:48pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/9 "2024-09-23T16:48:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 8:19pm UTC](https://help.nextcloud.com/t/php-startup-error-unable-to-load-redis-so/68939/10 "2024-12-11T20:19:01Z")

</div>


