Control Web Panel
WebPanel => PHP Selector => Topic started by: bradleygb on December 28, 2025, 06:43:34 PM
-
I tried installing different php versions using the php selector, but it always fails.
Here is part of the build log:
Making install in example
make[1]: Entering directory '/usr/local/src/libssh2-1.9.0/example'
make[2]: Entering directory '/usr/local/src/libssh2-1.9.0/example'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/usr/local/src/libssh2-1.9.0/example'
make[1]: Leaving directory '/usr/local/src/libssh2-1.9.0/example'
make[1]: Entering directory '/usr/local/src/libssh2-1.9.0'
make[2]: Entering directory '/usr/local/src/libssh2-1.9.0'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 include/libssh2.h include/libssh2_publickey.h include/libssh2_sftp.h '/usr/local/include'
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libssh2.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/usr/local/src/libssh2-1.9.0'
make[1]: Leaving directory '/usr/local/src/libssh2-1.9.0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 34265 100 34265 0 0 46179 0 --:--:-- --:--:-- --:--:-- 46117
/usr/local/cwpsrv/htdocs/resources/conf/el8/php_selector/external_modules/8.2/ssh2.sh: line 15: /opt/alt/php82/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el8/php_selector/external_modules/8.2/ssh2.sh: line 16: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
/usr/local/cwpsrv/htdocs/resources/conf/el8/php_selector/external_modules/8.2/ssh2.sh: line 20: /opt/alt/php82/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /ssh2.so
Build Completed
###################
Error:Can't add notification!
Could i maybe be missing a repo?
# ls /etc/yum.repos.d/
almalinux-ha.repo almalinux-saphana.repo epel.repo.rpmnew
almalinux-nfv.repo almalinux-sap.repo epel-testing-modular.repo
almalinux-plus.repo alt-php.repo epel-testing.repo
almalinux-powertools.repo cloudlinux.repo mariadb.repo
almalinux.repo cwp.repo mariadb.repo.bak
almalinux-resilientstorage.repo epel-modular.repo nginx.repo
almalinux-rt.repo epel.repo pgdg-redhat-all.repo
-
I would reach out to CloudLinux support, as I see you have that installed and modifies how your OS operates.
You have a couple repos that it probably only uses like alt-php.repo and pgdg-redhat-all.repo as they aren't standard on AlmaLinux.
You could also try a paid support ticket to CWP, mentioning you can't compile PHP on CloudLinux.
-
That repo needs to be removed. Im running:
Distro Name: AlmaLinux release 8.10 (Cerulean Leopard)
Kernel Version: 4.18.0-553.89.1.el8_10.x86_64
Platform: x86_64 kvm
CWPpro version: 0.9.8.1220
Can someone maybe assist with CWP’s official alt‑PHP repo?
I added the alt-php.repo but its not resolving. I think imight have accidentally removed the proper repo
Errors during downloading metadata for repository 'alt-php':
- Status code: 404 for http://repo.centos-webpanel.com/alt-php/el8/x86_64/repodata/repomd.xml (IP: 5.196.100.135)
Error: Failed to download metadata for repo 'alt-php': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
-
There is no 'alt PHP' for CWP 'Official' or 'Non-Official'.
Only one CWP repo, cwp.repo, and you have that one listed.
There are some guides at AlphaGNU on how to manually update to 8.4 or 8.5, but these are not supported by CWP.
But your screenshot shows:
cloudlinux.repo
alt-php.repo
pgdg-redhat-all.repo
Those are not part of AlmaLinux or CWP.
The only reason cloudlinux.repo would show, is if you updated the OS to CloudLinux from AlmaLinux.
-
cwp update removed my php 8.4 and 8.5 just for info.
-
Noted thank you.
Ive since removed those repos as they were wrongfully added.
Ive tried installing more alt php versions and ive successfully installed php v7, v7.3 and v8. It seems that the problems is only with alt php v8.1 and v8.2 as those still fail.
I already had php v8.3 installed so i wont touch that as its working.