Author Topic: PHP Switcher won't switch to PHP 8.x in el9  (Read 69 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP Switcher won't switch to PHP 8.x in el9
« 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)

Code: [Select]
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.
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
rpm: -Ivh: unknown option

Offline
*****
Re: PHP Switcher won't switch to PHP 8.x in el9
« Reply #1 on: October 05, 2025, 06:01:34 AM »
If you want, send me a PM with the login for SSH & the panel and I'll try & see what's going on.

Offline
*****
Re: PHP Switcher won't switch to PHP 8.x in el9
« Reply #2 on: October 05, 2025, 01:14:32 PM »
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.

Offline
***
Re: PHP Switcher won't switch to PHP 8.x in el9
« Reply #3 on: Today at 09:55:16 AM »
It looks like the problem is caused by the incorrect options. I think the commands should be:

Code: [Select]
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.
« Last Edit: Today at 09:57:48 AM by cyberspace »

Offline
*
Re: PHP Switcher won't switch to PHP 8.x in el9
« Reply #4 on: Today at 01:39:22 PM »
It looks like the problem is caused by the incorrect options. I think the commands should be:

Code: [Select]
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
Code: [Select]
configure: error: bz2 module requires libbz2 >= 1.0.0 dissapears, but the second code in my first code becomes:
Code: [Select]
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
« Last Edit: Today at 01:44:38 PM by SubZero5 »

Offline
*****
Re: PHP Switcher won't switch to PHP 8.x in el9
« Reply #5 on: Today at 01:55:59 PM »
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.