Author Topic: Unable to load dynamic library 'intl'  (Read 301 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Unable to load dynamic library 'intl'
« on: June 23, 2026, 05:30:47 PM »
Hello,

Just this past week, I got a call from a user on one of my CWP boxes that said that Roundcube was broken.  Checked into it, and found that the php extension intl was not loaded, which Roundcube uses.
I finally found the log that showed me the error:

PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so

The odd thing is that the file *does* exist at that location, and seems fine.

So, I tried to force an update with:

/scripts/update_cwp
/scripts/mail_roundcube_update

...But that only seemed to try to install an even older version of Roundcube, and now I get a bunch of the PHP warning messages in the emailed cron:

/etc/cron.daily/cwp:

PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so (libicui18n.so.50: cannot open shared object file: No such file or directory)) in Unknown on line 0

====================================================
============= CentOS Web Panel Cron ================
====================================================

###########################
Firewall Flush Daily Blocks
###########################

######################
Update Server Packages
######################
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so (libicui18n.so.50: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so (libicui18n.so.50: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so (libicui18n.so.50: cannot open shared object file: No such file or directory)) in Unknown on line 0
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl restart httpd.service
chsh: Shell not changed.
chsh: Shell not changed.
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so (libicui18n.so.50: cannot open shared object file: No such file or directory)) in Unknown on line 0

Date which backup script is using: 2026-06-23 07:46:46

How can I fix this?
Also, I know there have been some recent security updates to Roundcube - have any of these been implemented in what runs under CWP?

Bob

Offline
*
Re: Unable to load dynamic library 'intl'
« Reply #1 on: June 23, 2026, 05:37:48 PM »
Other info I neglected to mention:

 cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)

(Actually running Oracle Linux 8)

 uname -r
5.15.0-313.189.5.1.el8uek.x86_64

CWPpro version: 0.9.8.1236

Offline
*****
Re: Unable to load dynamic library 'intl'
« Reply #2 on: June 24, 2026, 02:35:21 AM »
Usual advice:
Follow Sandeep's guide to install INtl and also update Roundcube to the last 1.5.15 LTS version (update all paths and references from 1.5.8 to 1.5.15):
https://www.alphagnu.com/topic/33-update-cwp-roundcube-mail-version-158-%E2%80%93-control-web-panel/

Offline
*
Re: Unable to load dynamic library 'intl'
« Reply #3 on: June 25, 2026, 07:47:17 PM »
Thanks for the reply.  I looked at that page, he has links for EL7 and EL8 files, but not for EL9.  Are there any updates for that?

Bob


Offline
****
Re: Unable to load dynamic library 'intl'
« Reply #5 on: June 25, 2026, 09:36:12 PM »

PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so


Code: [Select]
cd /usr/local/src/
wget https://www.php.net/distributions/php-7.2.30.tar.gz
tar -xvzf php-7.2.30.tar.gz
cd php-7.2.30/ext/intl/
/usr/local/cwp/php71/bin/phpize
./configure --with-php-config=/usr/local/cwp/php71/bin/php-config
make
make install
rm -rf /usr/local/src/php-7.2.30*

Offline
*****
Re: Unable to load dynamic library 'intl'
« Reply #6 on: June 26, 2026, 02:44:14 AM »
You can use @cyberspace 's way if you are running PHP 7.2

If you are running AL9 that is showing PHP 7.4, we created a KB article this morning at:
https://starburst.help/control-web-panel-cwp/control-web-panel-cwp-admin-tutorials/fix-for-php-startup-unable-to-load-dynamic-library-intl-cwp-on-almalinux-9/

You can find out what PHP version CWP us running with:
Code: [Select]
/usr/local/cwp/php71/bin/php --version

Offline
*
Re: Unable to load dynamic library 'intl'
« Reply #7 on: June 26, 2026, 12:25:09 PM »
Thank you guys, that fixed it!

I noticed that now *ALL* my CWP boxes are showing this error, from the emailed crons.  Perhaps a recent update borked this? 

Might need to put this same fix in an update for others facing the same issue.

Bob

Offline
*****
Re: Unable to load dynamic library 'intl'
« Reply #8 on: June 26, 2026, 10:47:36 PM »
I think the .1235/.1236 update broke something.

Noticed the update from last night didn't change the CWP version number.

Also stick with @cyberspace 's fix, the one I posted doesn't work 100%, and I'm investigating more.

Offline
*****
Re: Unable to load dynamic library 'intl'
« Reply #9 on: June 26, 2026, 11:24:53 PM »

Code: [Select]
cd /usr/local/src/
wget https://www.php.net/distributions/php-7.2.30.tar.gz
tar -xvzf php-7.2.30.tar.gz
cd php-7.2.30/ext/intl/
/usr/local/cwp/php71/bin/phpize
./configure --with-php-config=/usr/local/cwp/php71/bin/php-config
make
make install
rm -rf /usr/local/src/php-7.2.30*

@cyberspace tried your fix with your posted 7.2 and make & make install end with:
Quote
make: *** [Makefile:284: transliterator/transliterator_class.lo] Error 1

PHP compiles OK, but now it's just showing:
Quote
[php71]# /usr/local/cwp/php71/bin/php --version
PHP Warning:  Module 'intl' already loaded in Unknown on line 0
PHP 7.4.33 (cli) (built: Apr 26 2023 00:00:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader + ionCube24 v15.5.0, Copyright (c) 2002-2026, by ionCube Ltd.

Any ideas?

Also with the forums still being unstable, would you consider cross-posting at ayadmin.help?
« Last Edit: June 26, 2026, 11:34:10 PM by Starburst »

Offline
*****
Re: Unable to load dynamic library 'intl'
« Reply #10 on: June 27, 2026, 02:00:25 AM »
Got everything fixed and running on AlmaLinux 9.8.

Created a new updated KB articles at:
https://starburst.help/control-web-panel-cwp/control-web-panel-cwp-admin-tutorials/fix-for-php-startup-unable-to-load-dynamic-library-intl-cwp-error-on-almalinux-9/

Let me know if anyone find anything wrong.

Offline
****
Re: Unable to load dynamic library 'intl'
« Reply #11 on: June 27, 2026, 01:37:11 PM »

Quote
[php71]# /usr/local/cwp/php71/bin/php --version
PHP Warning:  Module 'intl' already loaded in Unknown on line 0
PHP 7.4.33 (cli) (built: Apr 26 2023 00:00:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader + ionCube24 v15.5.0, Copyright (c) 2002-2026, by ionCube Ltd.

I think you tried to fix the problem using my solution on Almalinux 9. Right ? Almalinux 8 and Almalinux 9 use different php version for the base system. To make it working on Almalinux 9 use:

Code: [Select]
cd /usr/local/src/
wget https://www.php.net/distributions/php-7.4.33.tar.gz
tar -xvzf php-7.4.33.tar.gz
cd php-7.4.33/ext/intl/
/usr/local/cwp/php71/bin/phpize
./configure --with-php-config=/usr/local/cwp/php71/bin/php-config
make
make install
rm -rf /usr/local/src/php-7.4.33

Offline
*****
Re: Unable to load dynamic library 'intl'
« Reply #12 on: June 27, 2026, 02:27:14 PM »
Yea, I got it working.

But something has recreated the /usr/local/cwp/php71/php.d/intl.ini that I can renamed to intl.ini.old

So the
Quote
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
popped it's head back up, since PHP is trying to load intl twice, again.