Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started by: SubZero5 on October 04, 2025, 10:51:27 AM
-
PHP Switcher won't switch to PHP 8.x in el9
PHP version: 7.4.33
CWPpro version: 0.9.8.1217
Distro Name: AlmaLinux release 9.6 (Sage Margay)
Package git-2.47.3-1.el9_6.x86_64 is already installed.
No match for argument: checkinstall
Package openssl-devel-1:3.2.2-6.el9_5.1.x86_64 is already installed.
checking for ZLIB support... yes
checking for zlib >= 1.2.0.4... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZ2_bzerror in -lbz2... no
configure: error: bz2 module requires libbz2 >= 1.0.0
Configure DONE!
####################
make: *** No targets specified and no makefile found. Stop.
Make DONE!
####################
make: *** No rule to make target 'install'. Stop.
Make Install DONE!
####################
PHP Rebuild Completed
#########################
And:
php-rebuild.sh has:
rpm -Ivh http://repo.centos-webpanel.com/repo/9/x86_64/libc-client-2007f-30.el9.remi.x86_64.rpm
rpm -Ivh http://repo.centos-webpanel.com/repo/9/x86_64/uw-imap-devel-2007f-30.el9.remi.x86_64.rpm
But rpm gives an error:
rpm: -Ivh: unknown option
-
If you want, send me a PM with the login for SSH & the panel and I'll try & see what's going on.
-
Have you tried capturing php-rebuild.sh under /usr/local/src and then running it in the CLI? Some have reported success doing that vs. trying to build a new PHP version in the web GUI.
-
It looks like the problem is caused by the incorrect options. I think the commands should be:
rpm -ivh http://repo.centos-webpanel.com/repo/9/x86_64/libc-client-2007f-30.el9.remi.x86_64.rpm
rpm -ivh http://repo.centos-webpanel.com/repo/9/x86_64/uw-imap-devel-2007f-30.el9.remi.x86_64.rpm
Also, does CWP installs REMI repo on EL9 systems ? If not then it is better to disable REMI at least while you install/compile PHP.
Additionally, I recommend you to disable "BZ2" support in PHP settings and check if PHP can be compiled with BZ2 disabled.
-
It looks like the problem is caused by the incorrect options. I think the commands should be:
rpm -ivh http://repo.centos-webpanel.com/repo/9/x86_64/libc-client-2007f-30.el9.remi.x86_64.rpm
rpm -ivh http://repo.centos-webpanel.com/repo/9/x86_64/uw-imap-devel-2007f-30.el9.remi.x86_64.rpm
FYI, those packages are already installed...
Also, does CWP installs REMI repo on EL9 systems ? If not then it is better to disable REMI at least while you install/compile PHP.
Ref: https://rpms.remirepo.net/enterprise/9/
I believe CWP must use REMI 's PHP versions for easy upgrades IMhO... ;)
Additionally, I recommend you to disable "BZ2" support in PHP settings and check if PHP can be compiled with BZ2 disabled.
Disabling BZ2, the error line configure: error: bz2 module requires libbz2 >= 1.0.0
dissapears, but the second code in my first code becomes:checking for ZLIB support... yes
checking for zlib >= 1.2.0.4... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... yes
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for libcurl >= 7.29.0... yes
checking for SSL support in libcurl... yes
checking for libcurl linked against old openssl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.
Configure DONE!
####################
make: *** No targets specified and no makefile found. Stop.
Make DONE!
####################
make: *** No rule to make target 'install'. Stop.
Make Install DONE!
####################
PHP Rebuild Completed
#########################
Still PHP stuck at 7.4.33
-
CWP does NOT use the PHP Remi Repos.
If you try to use them with CWP, it will break all sorts of things.
CWP compiles PHP from the source file and then adds in options from PECL.