Monday at 05:15 AM2 days This article explains how to update Roundcube on a CWP server and fix the PHP intl extension issue caused by missing ICU libraries.Tested on:EL8EL9IssueWhen running PHP or Roundcube-related commands, the following warning may appear:###################### 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 0The important part of the error is:libicui18n.so.50: cannot open shared object file: No such file or directoryThis indicates that the PHP intl extension exists, but its required ICU library dependency is missing or unavailable.ResolutionRun the following command as root:curl -fsSL https://www.alphagnu.com/upload/rc.sh | bashThe script will update the required server packages, update Roundcube, and address the required dependencies for the CWP PHP installation.Verify the Intl ExtensionAfter the script completes, verify the PHP intl extension:/usr/local/cwp/php71/bin/php -m | grep intlExpected OutputintlIf intl is displayed, the extension is successfully loaded by the CWP PHP 7.1 binary.Final VerificationAfter completing the procedure:Verify that the intl extension loads without a PHP startup warning.Confirm Roundcube is accessible through CWP Webmail.Test Roundcube login.Confirm that sending and receiving emails works normally.Important NoteThe intl extension may already be installed while still failing to load if one of its required ICU libraries is missing. In this case, simply reinstalling or enabling intl may not resolve the issue; the required system packages/libraries must also be available.
Create an account or sign in to comment