New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Cannot Install PHP-FPM on Alma 8 & 9

Started by Reikor, August 03, 2026, 11:40:36 AM

Previous topic - Next topic

Reikor

Can someone help me with this, i dont know if there is a workaround now, it has been a week now when i install CWP on a fresh Alma 8 or 9 Building a php-fpm is a completelly fail. CWP Version 1.7

Thanks.

Reikor

onfigure: error: Package requirements (libpng) were not met:
Package 'libpng', required by 'virtual:world', not found
PHP's ./configure uses pkg-config to locate libpng (for the GD extension). pkg-config couldn't find it, so configure aborted and the whole build died.

Root cause: libpng-devel was installed — but only the i686 (32-bit) package. A 32-bit -devel drops its pkg-config file at:


/usr/lib/pkgconfig/libpng.pc      ← 32-bit path
But on a 64-bit box, pkg-config only searches:


/usr/lib64/pkgconfig : /usr/share/pkgconfig   ← note: /usr/lib (32-bit) NOT included
So pkg-config --exists libpng returned false even though the package looked installed. (This is a CWP-on-AL9 quirk — some of its build-dep steps pull .i686 packages.)

The fix — install the x86_64 dev package so the .pc lands in the path pkg-config actually searches:


dnf -y --enablerepo=crb,epel install libpng-devel.x86_64 gd-devel postgresql-devel
Note: on AlmaLinux 9 the -devel repo is crb (CodeReady Builder), which replaced AL8's powertools. After this, /usr/lib64/pkgconfig/libpng.pc exists and pkg-config --exists libpng → OK (1.6.37), so the GD/libpng configure step passes and PHP compiles.

overseer

Thanks! Key info for the future, unless this underlying behavior gets patched by Alma maintainers.

Starburst

PHP-FPM works fine on our AL9 ( AlmaLinux 9.8 ) and CWP 1.7 directly from the GUI.

Reikor

Quote from: Starburst on August 04, 2026, 02:44:12 AM
PHP-FPM works fine on our AL9 ( AlmaLinux 9.8 ) and CWP 1.7 directly from the GUI.

They are patching on the fly, deploy changes after hours. Really dont know what they are doing

Jack_C

Quote from: Starburst on August 04, 2026, 02:44:12 AM
PHP-FPM works fine on our AL9 ( AlmaLinux 9.8 ) and CWP 1.7 directly from the GUI.

Ok mate, but there are people still using AlmaLinux 8.10 and have an error message when trying to install PHP-FPM 8.4 or PHP 8.5.
I have tried all the available solutions but none of them work for me. Do you have any idea how we who use AlmaLinux 8.10 can fix it?

Thanks

Image attached