Control Web Panel
WebPanel => PHP Selector => Topic started by: gailclark80 on February 10, 2022, 06:54:16 AM
-
I am using PHP-FPM 7.2.30 now and I want to upgrade to PHP-FPM 7.4.20
I selected PHP-FPM 7.4.20 in the PHP-FPM Selector and clicked "Start Compiler"
Then use tail -f /var/log/php-selector-rebuild.log to check the log in SSH, and soon the following error appeared
checking for sys/wait.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memfd_create... no
checking for memmove... yes
checking for mkostemp... yes
checking for realpath... yes
checking for secure_getenv...
Socket error Event: 32 Error: 10053.
Connection closing...Socket close.
Connection closed by foreign host.
Disconnected from remote host at 14:24:45.
After a long time, PHP Info still shows PHP version is 7.2.30
what's the problem? how to fix it?
-
The issue is
Socket error Event: 32 Error: 10053. Connection closing...Socket close
Edit the Contents of File: /etc/ssh/sshd_config and set UseDNS to no
#UseDNS no
then using SSH run this command to restart the SSH service:
service sshd restart
You should also consider updating CWP - https://wiki.centos-webpanel.com/how-to-update-cwp
-
I use CWP7pro, which is updated automatically.
Is it related to the CWP7pro version that PHP cannot be updated?
The CWPpro version is 0.9.8.1128
-
After a long time, PHP Info still shows PHP version is 7.2.30
How is PHP Info supposed to read 7.4? Which php info is that, where is the file of PHPinfo located?
The PHP Info isnt going to read 7.4 because it's located at a place where it has been told to stay with 7.2. Even if the "upgrade" is successful, it won't show 7.4 until you tell the panel explicitly to have 7.4 working for PHP Info...
Paste the entire log /var/log/php-selector-rebuild.log
on this site: pastebin.com (http://pastebin.com)
and paste here the link you get, we would like to see your entire log to see what went wrong.
-
Here's install log
checking whether to build with expat support... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLReader support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XMLRPC-EPI support... yes
checking whether to build with expat support... no
checking iconv dir for XMLRPC-EPI... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLWriter support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XSL support... yes
checking for libxslt >= 1.1.0... yes
checking for libexslt... yes
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
No package 'libzip' found
No package 'libzip' found
No package 'libzip' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 101: /opt/alt/php-fpm74/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 102: /opt/alt/php-fpm74/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 104: /opt/alt/php-fpm74/usr/etc/php-fpm.d/cwpsvc.conf: No such file or directory
cp: cannot stat 'sapi/fpm/php-fpm.service': No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
Failed to execute operation: No such file or directory
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
Skipping as php build failed
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
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
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: mirrors.linode.com
* epel: packages.oit.ncsu.edu
* extras: mirrors.linode.com
* remi-safe: repo1.dal.innoscale.net
* updates: mirrors.linode.com
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
100 28505 100 28505 0 0 97677 0 --:--:-- --:--:-- --:--:-- 97955
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 9: /opt/alt/php-fpm74/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/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-fpm_selector/external_modules/7.4/sodium.sh: line 14: /opt/alt/php-fpm74/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
exe:/opt/alt/php-fpm74/usr/sbin/php-fpm
Failed to restart php-fpm74.service: Unit not found.
Redirecting to /bin/systemctl restart httpd.service
Build Completed
###################
Error:Can't add notification!
-
Here's install log
checking whether to build with expat support... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLReader support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XMLRPC-EPI support... yes
checking whether to build with expat support... no
checking iconv dir for XMLRPC-EPI... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLWriter support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XSL support... yes
checking for libxslt >= 1.1.0... yes
checking for libexslt... yes
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
No package 'libzip' found
No package 'libzip' found
No package 'libzip' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 101: /opt/alt/php-fpm74/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 102: /opt/alt/php-fpm74/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 104: /opt/alt/php-fpm74/usr/etc/php-fpm.d/cwpsvc.conf: No such file or directory
cp: cannot stat 'sapi/fpm/php-fpm.service': No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
Failed to execute operation: No such file or directory
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
Skipping as php build failed
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
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
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: mirrors.linode.com
* epel: packages.oit.ncsu.edu
* extras: mirrors.linode.com
* remi-safe: repo1.dal.innoscale.net
* updates: mirrors.linode.com
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
100 28505 100 28505 0 0 97677 0 --:--:-- --:--:-- --:--:-- 97955
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 9: /opt/alt/php-fpm74/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/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-fpm_selector/external_modules/7.4/sodium.sh: line 14: /opt/alt/php-fpm74/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
exe:/opt/alt/php-fpm74/usr/sbin/php-fpm
Failed to restart php-fpm74.service: Unit not found.
Redirecting to /bin/systemctl restart httpd.service
Build Completed
###################
Error:Can't add notification!
yum install libzip libzip-devel
-
I executed yum install libzip libzip-devel, then reinstalled PHP-FPM 7.4, the above error still appears
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
---> Package libzip-devel.x86_64 0:0.10.1-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================
Installing:
libzip x86_64 0.10.1-8.el7 base 48 k
libzip-devel x86_64 0.10.1-8.el7 base 77 k
Transaction Summary
============================================================================================================================================================================
Install 2 Packages
Total download size: 125 k
Installed size: 176 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:00
(2/2): libzip-devel-0.10.1-8.el7.x86_64.rpm | 77 kB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.0 MB/s | 125 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : libzip-0.10.1-8.el7.x86_64 1/2
Installing : libzip-devel-0.10.1-8.el7.x86_64 2/2
Verifying : libzip-devel-0.10.1-8.el7.x86_64 1/2
Verifying : libzip-0.10.1-8.el7.x86_64 2/2
Installed:
libzip.x86_64 0:0.10.1-8.el7 libzip-devel.x86_64 0:0.10.1-8.el7
Complete!
-
Going to have to blame CentOS on this one. They need to update their repository with a newer version of libzip
-
does it work?
wget https://libzip.org/download/libzip-1.4.0.tar.gz
tar zxvf libzip-1.4.0.tar.gz
cd libzip-1.4.0
mkdir build
cd build
/usr/local/bin/cmake ..
make
make test
make install
-
does it work?
wget https://libzip.org/download/libzip-1.4.0.tar.gz
tar zxvf libzip-1.4.0.tar.gz
cd libzip-1.4.0
mkdir build
cd build
/usr/local/bin/cmake ..
make
make test
make install
CMake Error at CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED):
CMake 3.0.2 or higher is required. You are running version 2.8.12.2
-- Configuring incomplete, errors occurred!
-
ALso occuring on PHP-fpm73 getting following error at end of build. ANyone have a solution?
php-7.3.33/acinclude.m4
php-7.3.33/makedist
sh: /usr/local/cwp/.conf/php-fpm_conf/php73.conf: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
exe:/opt/alt/php-fpm73/usr/sbin/php-fpm
Build Completed
###################
Error:Can't add notification!
-
ALso occuring on PHP-fpm73 getting following error at end of build. ANyone have a solution?
php-7.3.33/acinclude.m4
php-7.3.33/makedist
sh: /usr/local/cwp/.conf/php-fpm_conf/php73.conf: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
exe:/opt/alt/php-fpm73/usr/sbin/php-fpm
Build Completed
###################
Error:Can't add notification!
Try to create php-fpm_conf folder inside .conf, and build the php-fpm again. It worked for me
-
You are awesome! Finally compiled and installed.
Just need to try it out now.
-
Facing similar issue while installing php 8.1 through FPM selector.
checking for if_indextoname... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for field ss_family in struct sockaddr_storage... yes
checking if getaddrinfo supports AI_V4MAPPED... yes
checking if getaddrinfo supports AI_ALL... yes
checking if getaddrinfo supports AI_IDN... yes
checking for sodium support... no
checking whether flush should be called explicitly after a buffered io... no
checking for crypt... yes
checking for crypt_r... yes
checking which data struct is used by crypt_r... struct_crypt_data
checking for standard DES crypt... yes
checking for extended DES crypt... no
checking for MD5 crypt...
yes
checking for Blowfish crypt... no
checking for SHA512 crypt... yes
checking for SHA256 crypt... yes
checking whether the compiler supports aligned attribute... yes
checking for working POSIX fnmatch... yes
checking for fork... (cached) yes
checking if your OS can spawn processes with inherited handles... yes
checking for res_nsearch... no
checking for __res_nsearch... no
checking for res_nsearch in -lresolv... no
checking for __res_nsearch in -lresolv... yes
checking for res_ndestroy... no
checking for __res_ndestroy... no
checking for res_ndestroy in -lresolv... no
checking for __res_ndestroy in -lresolv... no
checking for res_ndestroy in -lbind... no
checking for __res_ndestroy in -lbind... no
checking for res_ndestroy in -lsocket... no
checking for __res_ndestroy in -lsocket... no
checking for dns_search... no
checking for __dns_search... no
checking for dns_search in -lresolv... no
checking for __dns_search in -lresolv...
no
checking for dns_search in -lbind... no
checking for __dns_search in -lbind... no
checking for dns_search in -lsocket... no
checking for __dns_search in -lsocket... no
checking for dn_expand... no
checking for __dn_expand... yes
checking for dn_skipname... no
checking for __dn_skipname... yes
checking for res_search... no
checking for __res_search... yes
checking whether strptime() declaration fails... yes
checking whether arc4random_buf is declared... no
checking for Argon2 support... yes
checking for Argon2 library... found in /usr
checking for argon2id_hash_raw in -largon2...
yes
checking for net/if.h... yes
checking for usable getifaddrs... yes
checking whether to enable System V IPC support... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking whether to enable System V semaphore support... yes
checking for union semun... no
checking whether to enable System V shared memory support... yes
checking for TIDY support... yes
checking for tidyOptGetDoc in -ltidy... yes
checking for tidyReleaseDate in -ltidy... yes
checking whether to enable tokenizer support... yes
checking whether to enable XML support... yes
checking whether to build with expat support... no
checking for libxml-2.0 >= 2.9.0... yes
checking whether to enable XMLReader support... yes
checking for libxml-2.0 >= 2.9.0... yes
checking whether to enable XMLWriter support... yes
checking for libxml-2.0 >= 2.9.0... yes
checking whether to build with XSL support... yes
checking for libxslt >= 1.1.0... yes
checking for libexslt... yes
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
No package 'libzip' found
No package 'libzip' found
No package 'libzip' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
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
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: centos.crazyfrogs.org
* epel: mirror.in2p3.fr
* extras: centos.crazyfrogs.org
* remi-safe: remirepo.reloumirrors.net
* updates: centos.crazyfrogs.org
Package ImageMagick-6.9.10.68-6.el7_9.x86_64 already installed and latest version
Package ImageMagick-devel-6.9.10.68-6.el7_9.x86_64 already installed and latest version
Package ImageMagick-perl-6.9.10.68-6.el7_9.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
Cloning into 'imagick'...
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/imagick.sh: line 8: /opt/alt/php80/usr/bin/phpize: No such file or directory
ln: failed to create symbolic link '/usr/local/include/ImageMagick': File exists
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/imagick.sh: line 10: ./configure: No such file or directory
cat clean.sh >clean
chmod a+x clean
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.0/imagick.sh: line 16: /opt/alt/php80/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
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.crazyfrogs.org
* epel: mirror.in2p3.fr
* extras: centos.crazyfrogs.org
* remi-safe: remirepo.reloumirrors.net
* updates: centos.crazyfrogs.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 53225 0 --:--:-- --:--:-- --:--:-- 53180
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/sodium.sh: line 9: /opt/alt/php80/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/8.0/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.0/sodium.sh: line 14: /opt/alt/php80/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
Build Completed
###################
Error:Can't add notification!