× Installation and guides about a great free, plesk and cpanel alternative project

CWP Update: Fixed PHP intl Warning and Cleaned update_cwp Output on AlmaLinux

Περισσότερα
1 Εβδομάδα 1 Ημέρα πριν - 1 Εβδομάδα 6 Ώρες πριν #346 από infogate
I wanted to share a small CWP maintenance note in case it helps someone else.

On one of my CWP / Control Web Panel servers, running the CWP update script was showing repeated PHP warnings related to the internal CWP PHP 7.1 intl extension.

The update was started with:

sh /scripts/update_cwp


Before the fix, the warning looked like this:

PHP Warning: PHP Startup: Unable to load dynamic library 'intl'
libicui18n.so.50: cannot open shared object file: No such file or directory


After investigation, the warning was coming from the internal CWP PHP configuration:

/usr/local/cwp/php71/php.d/intl.ini


The check command was:

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


It showed:

Additional .ini files parsed: /usr/local/cwp/php71/php.d/intl.ini


In my case, after cleaning the broken configuration and running the CWP update again, CWP downloaded a fresh intl.so file automatically:

--2026-07-01 10:27:25--  http://static.cdn-cwp.com/files/mail/intl.so
Saving to: ‘/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so’
TS="$(date +%F_%H%M%S)"
mv /usr/local/cwp/php71/php.d/intl.ini /usr/local/cwp/php71/php.d/intl.ini.disabled_$TS 2>/dev/null
systemctl restart cwpsrv
/usr/local/cwp/php71/bin/php -v 2>&1 | head -n 10
intl.so 100% 465.11K  2.29MB/s    in 0.2s


The update also reported that the needed ICU package was already installed:

package libicu69-69.1-4.el7.remi.x86_64 is already installed


After that, the CWP update completed much cleaner.

The command used was:

sh /scripts/update_cwp


The successful update flow looked like this:

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

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

######################
Update Server Packages
######################

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 nginx.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl restart httpd.service


Important note: running the CWP update may restart or reload services like:

cwpsrv
httpd
nginx


So it is better to run it during a quiet time, because websites may briefly reload or monitoring may report a short downtime.

There were still a few harmless warnings related to root SSH authorized keys:

chattr: No such file or directory while trying to stat /root/.ssh/authorized_keys
sed: can't read /root/.ssh/authorized_keys: No such file or directory
chown: cannot access '/root/.ssh/authorized_keys': No such file or directory
chmod: cannot access '/root/.ssh/authorized_keys': No such file or directory


In my case, this only meant that the file did not exist:

/root/.ssh/authorized_keys


This is not critical if you are not using root SSH key authentication.

There were also these messages:

chsh: Shell not changed.
chsh: Shell not changed.


These are usually harmless and simply mean that the shell was already set or did not need to be changed.

After the update, I checked for failed services:

systemctl --failed --no-pager


It is also useful to check the main services:

systemctl status cwpsrv httpd nginx -l --no-pager


Summary:

sh /scripts/update_cwp
/usr/local/cwp/php71/bin/php --ini
systemctl --failed --no-pager
systemctl status cwpsrv httpd nginx -l --no-pager


In my case, the main issue was the internal CWP PHP 7.1 intl extension. After the CWP update downloaded the correct intl.so file, the update output became much cleaner.

Hope this helps someone seeing PHP intl warnings when running:

sh /scripts/update_cwp


The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal

Last edit: 1 Εβδομάδα 6 Ώρες πριν by infogate.

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.071 δευτερόλεπτα
Powered by Kunena Φόρουμ