Control Web Panel

WebPanel => Updates => Topic started by: nleaudio on June 23, 2026, 05:30:47 PM

Title: Unable to load dynamic library 'intl'
Post by: nleaudio 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
Title: Re: Unable to load dynamic library 'intl'
Post by: nleaudio 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
Title: Re: Unable to load dynamic library 'intl'
Post by: overseer 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/
Title: Re: Unable to load dynamic library 'intl'
Post by: nleaudio 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
Title: Re: Unable to load dynamic library 'intl'
Post by: overseer on June 25, 2026, 08:36:30 PM
Should be the same for AL9:
https://starburst.help/control-web-panel-cwp/control-web-panel-cwp-admin-tutorials/update-roundcube-webmail-to-version-1-5-15-in-cwp-on-almalinux-8-9/
Title: Re: Unable to load dynamic library 'intl'
Post by: cyberspace on June 25, 2026, 09:36:12 PM
Quote from: nleaudio on June 23, 2026, 05:30:47 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


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*

Title: Re: Unable to load dynamic library 'intl'
Post by: Starburst 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/ (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:
/usr/local/cwp/php71/bin/php --version
Title: Re: Unable to load dynamic library 'intl'
Post by: nleaudio 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
Title: Re: Unable to load dynamic library 'intl'
Post by: Starburst 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.
Title: Re: Unable to load dynamic library 'intl'
Post by: Starburst on June 26, 2026, 11:24:53 PM
Quote from: cyberspace on June 25, 2026, 09:36:12 PM

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:
Quotemake: *** [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?
Title: Re: Unable to load dynamic library 'intl'
Post by: Starburst 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/ (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.
Title: Re: Unable to load dynamic library 'intl'
Post by: cyberspace on June 27, 2026, 01:37:11 PM
Quote from: Starburst on June 26, 2026, 11:24:53 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:


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

Title: Re: Unable to load dynamic library 'intl'
Post by: Starburst 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
QuotePHP 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.
Title: Re: Unable to load dynamic library 'intl'
Post by: venty on September 14, 2026, 05:50:15 PM
Hi,

My situation is as follows:

https://prnt.sc/2qU7iBKYGeQw


What should I use to fix the error? I am using AlmaLinux release 9.8
What should I do?

Also, the error message I'm seeing says:

....with the ionCube PHP Loader + ionCube24 v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd.

Thanks in advance!
Title: Re: Unable to load dynamic library 'intl'
Post by: Martins-phpbb on September 15, 2026, 10:45:07 AM
 ;) https://www.alphagnu.com/topic/633-standalone-cwp-php-cli-build-manager-build-php-7485-php-fpm-selector-switcher-and-pie-extensions/
Title: Re: Unable to load dynamic library 'intl'
Post by: Martins-phpbb on September 18, 2026, 06:38:14 PM
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/
Title: Re: Unable to load dynamic library 'intl'
Post by: Starburst on September 19, 2026, 02:02:52 AM
If that doesn't work, Sandeep has published a different fix at:

https://www.alphagnu.com/topic/632-update-roundcube-and-fix-php-intl-extension-in-cwp/#comment-1482 (https://www.alphagnu.com/topic/632-update-roundcube-and-fix-php-intl-extension-in-cwp/#comment-1482)
Title: Re: Unable to load dynamic library 'intl'
Post by: venty on September 22, 2026, 05:36:43 PM
Quote from: Martins-phpbb on September 18, 2026, 06:38:14 PM
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/

Hi,

I plan to follow the steps in article, but I didn't understand the explanations following the line:

"Thanks to @cyberspcae over at the CWP forums for the below"
(Has been modified if your server shows PHP 7.4.33 on AlmaLinux 9.8)

What should I execute—which lines should I run and which ones shouldn't I?

Thanks...

BR
Venty
Title: Re: Unable to load dynamic library 'intl'
Post by: cyberspace on September 22, 2026, 09:18:59 PM
What do you get when you execute the following command on your server/vps ?

cat /etc/redhat-release

and

/usr/local/cwp/php71/bin/php --version
Title: Re: Unable to load dynamic library 'intl'
Post by: Starburst on September 22, 2026, 10:36:24 PM
Quote from: venty on September 22, 2026, 05:36:43 PM
Quote from: Martins-phpbb on September 18, 2026, 06:38:14 PM
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/

Hi,

I plan to follow the steps in article, but I didn't understand the explanations following the line:

"Thanks to @cyberspcae over at the CWP forums for the below"
(Has been modified if your server shows PHP 7.4.33 on AlmaLinux 9.8)

What should I execute—which lines should I run and which ones shouldn't I?

Thanks...

BR
Venty

I had answered you on that, that it was a thanks to Cyberspace, and isn't in any command areas on the KB.

Code areas look totally different than comment areas.

Code areas, are grey background with black text.

The article is 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 (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)

Here is a snippet of the area, I don't know how to blonde proof any further, except to delete.

https://i.postimg.cc/J0ZtP8kQ/Screenshot-2026-09-22-223151.png
Title: Re: Unable to load dynamic library 'intl'
Post by: venty on September 23, 2026, 05:29:19 AM
Quote from: cyberspace on September 22, 2026, 09:18:59 PM
What do you get when you execute the following command on your server/vps ?

cat /etc/redhat-release

and

/usr/local/cwp/php71/bin/php --version


Hi,

For `cat /etc/redhat-release`, I get the following:

AlmaLinux release 9.8 (Olive Jaguar)

For `For `cat /etc/redhat-release`, I get the following:

https://prnt.sc/9zVq-w9js5Y9

When I start executing the code from the article:

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


for `rpm -q libicu`, I get: libicu-67.1-10.el9_6.x86_64

...but the error persists... what should I do?


BR
Venty



Title: Re: Unable to load dynamic library 'intl'
Post by: cyberspace on September 23, 2026, 11:16:16 PM
Follow the instructions provided right under the words:

(Has been modified if your server shows PHP 7.4.33 on AlmaLinux 9.8)