Control Web Panel
WebPanel => CentOS 8 Problems => Topic started by: crouso on July 09, 2025, 11:04:46 AM
-
Hello,
since i am trying to fix my troubles with recompiling different php versions in CWPpro, i maybe found some strange things.
I always get error-messages in the php build logs like "bz2" not found.
So i tried to "ld -libbz2 --verbose" and see
attempt to open //usr/lib64/libibbz2.so
So libibbz2.so is definiteley not installed, because there is no libibbz2 lib, right?
I tested with other libs like librt, and found out, that ld is also searching for the libIBrt.so file? Where is this coming from and
how to fix that?
attempt to open //usr/lib64/libibrt.so failed
OS: AlmaLinux 8
Update:
The output of ldconfig is correct...
[root@s1 ~]# ldconfig -p | grep bz2
libbz2.so.1 (libc6,x86-64) => /usr/lib64/libbz2.so.1
libbz2.so (libc6,x86-64) => /usr/lib64/libbz2.so
Thank you very much,
regards
-
What is your end goal? Which mode are you going to use -- PHP switcher, suPHP, or php-fpm? Which versions of PHP would you like to have? Each case is a bit different.
-
Thank you for your reply.
What is your end goal? Which mode are you going to use -- PHP switcher, suPHP, or php-fpm? Which versions of PHP would you like to have? Each case is a bit different.
PHP switcher also did not work correctly, i tried it, same error messages in logfile regarding bz2... seems i am stuck at 7.4.33?
My end goal/s would be to (depends on solution/s)
- keep PHP 7.4.33 for compatibility issues as "base version"
- be able to compile (php >8.2 needed) other versions with php selector
- and maybe php-fpm selector too
Or a way how i can add alternate php versions manually?
-
If you want to PM me login details, I could take a look for you. I recommend PHP-FPM for performance reasons, plus the versatility of running php versions on a site-by-site basis with separate configs is a good thing. I have 4 versions running on one server -- legacy 5.6 for one site, 7.4 for a WordPress site that needs full compatibility, 8.1 for other WP sites, and 8.2 for a Drupal site.
-
I was having the same problem and I have used and follow this Guide https://holhol24.com/2025/07/25/fixing-php-compilation-failures-and-ld-ldconfig-issues-on-cwp-with-centos-8-almalinux-8/ (https://holhol24.com/2025/07/25/fixing-php-compilation-failures-and-ld-ldconfig-issues-on-cwp-with-centos-8-almalinux-8/)
-
I also tried a lot of things, read smth there and so on - nothing changed anything.
Then i had the idea to watch the happenings directly in a clen /src directory. Clicking on build on the CWP panel will create/download 3 bash scripts to it (and auto-remove them when finished).
So i quickly copied the files on a safe place and investigated them a little bit and just removed the auto-self-deletion parts.
I ran them - and surprisingly - the build process ran through and i have php 8.2 now. (Also in the php selector available).
I then tried to compile another version from GUI - which unsurprisingly failed again. So its not a "problem" caused by a "shooten" system - its a(nother) problem/side effect of CWP. Something is "uncommon" on my system and CWP does not like it - thats no reason why i should (like the CWP support said) setup a fresh server and install CWP again. I told them if i have to start from a scratch server i wont install CWP augain. Maybe they are calling the scripts from the GUI with wrong parameters/user or permissions?