Author Topic: PHP-FPM 8.4/8.5 mbstring missing  (Read 26 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
PHP-FPM 8.4/8.5 mbstring missing
« on: Today at 07:12:42 AM »
Hello,

I found an issue with PHP-FPM 8.4 and 8.5 on CWP Pro running AlmaLinux 8.

I have the same problem on two different VPS servers.

In PHP-FPM Selector, mbstring is enabled, but after compiling PHP 8.4/8.5 the extension is not available.

The PHP configure command also does not contain:

Code: [Select]
--enable-mbstring

Looking at the CWP mbstring script:

Code: [Select]
/usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_selector/external_modules/8.5/mbstring.sh

https://github.com/mysterydata/md-disk/raw/main/el8-php85/mbstring.so

The build log shows:

Code: [Select]
--2026-08-18 03:52:27--  https://github.com/mysterydata/md-disk/raw/main/el8-php85/mbstring.so
HTTP request sent, awaiting response... 404 Not Found
ERROR 404: Not Found.

chmod: cannot access '/opt/alt/php-fpm85/usr/lib/php/extensions/no-debug-non-zts-20250925/mbstring.so': No such file or directory

ERROR: Missing extension file /opt/alt/php-fpm85/usr/lib/php/extensions/no-debug-non-zts-20250925/mbstring.so

PHP-FPM 8.3 on the same servers works correctly.

It looks like PHP 8.4 and 8.5 on EL8 are compiled without mbstring, and CWP then tries to install a precompiled mbstring.so, but the configured download URL no longer exists.

Could you please confirm if this is a known issue and whether the build configuration will be updated to compile mbstring directly with --enable-mbstring instead of relying on the missing external mbstring.so?

Thank you.

Offline
*
Re: PHP-FPM 8.4/8.5 mbstring missing
« Reply #1 on: Today at 07:18:38 AM »
I also found older CWP forum threads showing mbstring build problems with PHP 8.3 on EL8, where disabling mbstring was suggested as a workaround.

The current external mbstring.so mechanism may be related to that older build issue.