Author Topic: Centos 7 CWP PHP-fpm 7.4 selector rebuild failed, Problem is obviously in logs  (Read 3943 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Could not compile/rebuild/install PHP-fpm version above 7.2
System information
CWPpro version: 0.9.8.1099 Centos 7 fresh install 1GB RAM, 1GB SWAP

I have tried two times re-install CWP in fresh system, and didn't change other settings in CWP, I believe isn't the OS problem, hope administrator of CWP have a test to compile PHP-FPM 7.4, I'm sure is 0.9.8.1099 didn't make good codes ;D

tail -f /var/log/php-selector-rebuild.log
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 99: /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 100: /opt/alt/php-fpm74/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 102: /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
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
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.radwebhosting.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: centos.mirror.lstn.net
 * updates: la.mirrors.clouvider.net
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  51252      0 --:--:-- --:--:-- --:--:-- 51267
/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
###################
« Last Edit: November 16, 2021, 06:28:01 AM by weasam »

Offline
*
Update:2021-11-17
Successfully rebuild PHP-FPM 5.6, 7.0, 7.1, 7.2, 7.3, 7.4
What I do is re-install to Centos 8 from Centos 7, 
1. yum update,
2. reboot,
3. change to centos 8 stream,
4. change the repository to CWP-Centos 8 stream delayed
5. update
6. reboot,
7. install CWP
8. after installed CWP not make any change any setting in CWP
9. go to PHP-FPM selector compiles all PHP.

Anyone has new Centos 7 compiles working let me know and share your steps of installation please
« Last Edit: November 17, 2021, 02:29:41 AM by weasam »

Offline
*****
hi send the full php build log via https://pastebin.com/

Offline
*
hi send the full php build log via https://pastebin.com/

Hello, Sandeep. I pasted the rebuild log here https://pastebin.com/mpJGiRDW
Currently successfully compiled all version of PHP-FPM and PHP-CGI with Centos 8 Stream Delayed repositories

Centos7 was from Bandwagonhost KVM VPS 1GB 500M SWAP. right now rebuild could rebuild in new OS centos 8, so will not able come back to re-install Centos 7 to give another test, it takes too much time to fix the errors, finally cheers it works in Centos 8