Author Topic: PHP-FPM Selector - Build Fails  (Read 1817 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP-FPM Selector - Build Fails
« 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?

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #1 on: February 10, 2022, 08:53:52 AM »
The issue is
Code: [Select]
Socket error Event: 32 Error: 10053. Connection closing...Socket close
Edit the Contents of File: /etc/ssh/sshd_config and set UseDNS to no

Code: [Select]
#UseDNS no
then using SSH run this command to restart the SSH service:

Code: [Select]
service sshd restart
You should also consider updating CWP - https://wiki.centos-webpanel.com/how-to-update-cwp

Applications Developer | RHEL Linux Server Administrator

Reach out to me in pm to solve any application deployment such as NodeJS, Java, PHP etc


Managed 40gb Shared CWP PRO Hosting for $20 p/a offer
Managed 60gb Shared CWP PRO Hosting for $40 p/a offer
Managed 100gb Shared CWP PRO Hosting for $60 p/a offer
Managed 200gb Shared CWP PRO Hosting for $120 p/a offer


CentOS 8 died a premature death at the end of 2021 - migrate to RockyLinux Os.

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #2 on: February 10, 2022, 10:56:54 AM »
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

Offline
**
Re: PHP-FPM Selector - Build Fails
« Reply #3 on: February 10, 2022, 07:46:28 PM »
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
and paste here the link you get, we would like to see your entire log to see what went wrong.
« Last Edit: February 10, 2022, 07:49:59 PM by iraqiboy90 »

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #4 on: February 15, 2022, 03:07:32 AM »
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!

Offline
****
Re: PHP-FPM Selector - Build Fails
« Reply #5 on: February 15, 2022, 04:57:40 AM »
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
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #6 on: February 15, 2022, 06:35:19 AM »
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!

Offline
****
Re: PHP-FPM Selector - Build Fails
« Reply #7 on: February 15, 2022, 07:15:11 AM »
Going to have to blame CentOS on this one.  They need to update their repository with a newer version of libzip
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #8 on: February 15, 2022, 08:00:44 AM »
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

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #9 on: May 18, 2022, 07:51:46 AM »
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!

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #10 on: May 18, 2022, 06:30:24 PM »
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!

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #11 on: May 19, 2022, 05:26:03 PM »
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

Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #12 on: May 20, 2022, 01:04:36 PM »
You are awesome!  Finally compiled and installed.

Just need to try it out now.