I'm having the exact same problem with both 8.0 and 8.1, even tried multiple versions of them.
I was hoping there was some proper explanation and fix here but there doesn't seem to be anything, which is a shame because the script I'm trying to install requires PHP 8.0 or higher.
The two errors seem to be imagick.so and sodium.so
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.1/imagick.sh: line 16: /opt/alt/php81/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /imagick.so
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.wdc1.us.leaseweb.net
* epel: mirrors.mit.edu
* extras: coresite.mm.fcix.net
* updates: nyc.mirrors.clouvider.net
http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Package libsodium-1.0.18-1.el7.x86_64 already installed and latest version
Package libsodium-devel-1.0.18-1.el7.x86_64 already installed and latest version
Nothing to do
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
% 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 28505 100 28505 0 0 54575 0 --:--:-- --:--:-- --:--:-- 54502
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.1/sodium.sh: line 9: /opt/alt/php81/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.1/sodium.sh: line 10: ./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/el7/php_selector/external_modules/8.1/sodium.sh: line 14: /opt/alt/php81/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
After disabling imagick and sodium
8.1.11/ext/opcache/ -I/usr/local/src/php-build/php-8.1.11/include -I/usr/local/src/php-build/php-8.1.11/main -I/usr/local/src/php-build/php-8.1.11 -I/usr/local/src/php-build/php-8.1.11/ext/date/lib -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/usr/local/src/php-build/php-8.1.11/TSRM -I/usr/local/src/php-build/php-8.1.11/Zend -fno-common -Wstrict-prototypes -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -Wno-implicit-fallthrough -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/src/php-build/php-8.1.11/ext/opcache/jit/zend_jit.c -o ext/opcache/jit/zend_jit.lo -MMD -MF ext/opcache/jit/zend_jit.dep -MT ext/opcache/jit/zend_jit.lo
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [ext/opcache/jit/zend_jit.lo] Error 1
/bin/sh /usr/local/src/php-build/php-8.1.11/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu11 -Iext/opcache/ -I/usr/local/src/php-build/php-8.1.11/ext/opcache/ -I/usr/local/src/php-build/php-8.1.11/include -I/usr/local/src/php-build/php-8.1.11/main -I/usr/local/src/php-build/php-8.1.11 -I/usr/local/src/php-build/php-8.1.11/ext/date/lib -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl -I/usr/local/src/php-build/php-8.1.11/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/usr/local/src/php-build/php-8.1.11/TSRM -I/usr/local/src/php-build/php-8.1.11/Zend -fno-common -Wstrict-prototypes -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -Wno-implicit-fallthrough -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/src/php-build/php-8.1.11/ext/opcache/jit/zend_jit.c -o ext/opcache/jit/zend_jit.lo -MMD -MF ext/opcache/jit/zend_jit.dep -MT ext/opcache/jit/zend_jit.lo
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [ext/opcache/jit/zend_jit.lo] Error 1
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
--2022-10-21 02:23:17-- http://static.cdn-cwp.com/files/php/pecl/mcrypt-1.0.4.tgz
Resolving static.cdn-cwp.com (static.cdn-cwp.com)... 137.74.148.116, 198.27.104.40, 167.114.21.226, ...
Connecting to static.cdn-cwp.com (static.cdn-cwp.com)|137.74.148.116|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27056 (26K) [application/x-tar]
Saving to: 'mcrypt-1.0.4.tgz'
0K .......... .......... ...... 100% 2.66M=0.01s
2022-10-21 02:23:17 (2.66 MB/s) - 'mcrypt-1.0.4.tgz' saved [27056/27056]
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Build Completed
###################
Error:Can't add notification!