Author Topic: PHPFPM 8.1.15 not getting build and activated  (Read 2339 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHPFPM 8.1.15 not getting build and activated
« on: February 26, 2023, 05:36:54 PM »
I am using pro version of CWP in centos 8 on digital ocean droplet. I installed CWP using command
Quote
sh cwp-el8-latest -p 8.1 -s yes
, thinking that it will install CWP with phpfpm 8.1 latest version.

But it did not do so. On dash board, I see as  PHP version: 5.6.37.
Secondly, In the PHP FPM selector, against PHP-FPM 8.1, I see "Not INstalled".

I tried to rebuild PHP FPM selecting 8.1.15, and it fails again as shown in log

Quote
Transaction Summary
================================================================================
Install 2 Packages

Total download size: 1.3 M
Installed size: 4.0 M
Downloading Packages:
(1/2): libsodium-1.0.18-2.el8.x86_64.rpm 673 kB/s | 162 kB 00:00
(2/2): libsodium-devel-1.0.18-2.el8.x86_64.rpm 3.3 MB/s | 1.1 MB 00:00
--------------------------------------------------------------------------------
Total 1.4 MB/s | 1.3 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libsodium-1.0.18-2.el8.x86_64 1/2
Installing : libsodium-devel-1.0.18-2.el8.x86_64 2/2
Running scriptlet: libsodium-devel-1.0.18-2.el8.x86_64 2/2
Verifying : libsodium-1.0.18-2.el8.x86_64 1/2
Verifying : libsodium-devel-1.0.18-2.el8.x86_64 2/2

Installed:
libsodium-1.0.18-2.el8.x86_64 libsodium-devel-1.0.18-2.el8.x86_64

Complete!
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 25565 0 0:00:01 0:00:01 --:--:-- 25587
/usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_selector/external_modules/8.1/sodium.sh: line 9: /opt/alt/php-fpm81/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_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/el8/php-fpm_selector/external_modules/8.1/sodium.sh: line 14: /opt/alt/php-fpm81/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
exe:/opt/alt/php-fpm81/usr/sbin/php-fpm

Build Completed
###################


Error:Can't add notification!

It seems there is some bug in CWP and is not able to install properly on centos 8.

Offline
*
Re: PHPFPM 8.1.15 not getting build and activated
« Reply #1 on: February 27, 2023, 04:54:30 AM »
PHP-FPM 7.4 (exact version 7.4.33) got installed. But it seems CWP does have some issue with PHP version 8 onwards. Even the normal PHP 8 onwards is not getting build. I have installed CWP pro 4-5 times on a fresh Digital ocean droplet on centos 8 and tried to install and activate PHP-FPM 8.1 latest version same number of times but have not been successful.

Note that, this problem is faced by me in free version of CWP also and that is why I opted for pro version. The PHP Version Switcher in free version does not work. It is not able to compile version 8 properly and not able to switch the php version 8.1.x

I think the CWP tech support team must look into this issue.

Offline
****
Re: PHPFPM 8.1.15 not getting build and activated
« Reply #2 on: March 04, 2023, 07:27:10 AM »
Probably something in CentOS 8; I'm running 3 x CentOS 7.9.2009 servers, CWP Pro with PHP 8.1 compiled just fine.

Offline
*
Re: PHPFPM 8.1.15 not getting build and activated
« Reply #3 on: May 02, 2023, 04:04:37 AM »
Is anyone else facing this issue. I am using Pro version.

Somehow, I suppose this is a bug as this sort of problem I faced long time back also. It would be nice if CWP support start considering this as bug rather than a paid support requirement. Taking these kind of issues as bug will only help in making the product better and more stable.

Offline
*
Re: PHPFPM 8.1.15 not getting build and activated
« Reply #4 on: May 05, 2023, 12:50:16 AM »
I can't install any version of php (fpm or not) after 7.2. I can only compile up to 7.2 after that the following error is occurring:

checking for libzip... not found
configure: error: Please reinstall the libzip distribution
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: mirror.genesisadaptive.com
  * epel: ord.mirror.rackspace.com
  * extras: ftpmirror.your.org
  * updates: linux-mirrors.fnal.gov
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
--2023-05-04 20:39:47-- http://static.cdn-cwp.com/files/php/pecl/imagick-3.4.4.tgz
Resolving static.cdn-cwp.com (static.cdn-cwp.com)... 198.27.104.40, 167.114.21.226, 151.80.90.199, ...
Connecting to static.cdn-cwp.com (static.cdn-cwp.com)|198.27.104.40|:80... connected.
HTTP request sent, waiting response... 200 OK
Length: 253434 (247K) [application/x-tar]
Saving to: 'imagick-3.4.4.tgz'

      0K .......... .......... .......... .......... ......... .20% 1.23M 0s
     50K .......... .......... .......... .......... ......... .40% 2.42M 0s
    100K .......... .......... .......... .......... ......... . 60% 2.45M 0s
    150K .......... .......... .......... .......... ......... 80% 2.48M 0s
    200K .......... .......... .......... .......... ....... 100% 73.2M=0.1s

2023-05-04 20:39:48 (2.41 MB/s) - 'imagick-3.4.4.tgz' saved [253434/253434]

/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/7.3/imagick.sh: line 10: /opt/alt/php73/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/7.3/imagick.sh: line 12: ./configure: No such file or directory
make: *** No rule to make target `clean'. Stop.
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/7.3/imagick.sh: line 18: /opt/alt/php73/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.genesisadaptive.com
  * epel: ord.mirror.rackspace.com
  * extras: ftpmirror.your.org
  * updates: linux-mirrors.fnal.gov
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 83392 0 --:--:-- --:--:-- --:--:-- 83592
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/7.3/sodium.sh: line 9: /opt/alt/php73/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el7/php_selector/external_modules/7.3/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/7.3/sodium.sh: line 14: /opt/alt/php73/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so

Build Completed
####################


Error:Can't add notification!

Offline
*
Re: PHPFPM 8.1.15 not getting build and activated
« Reply #5 on: May 06, 2023, 11:17:26 AM »
I managed to solve here by updating the repository packages.

"yum update"

Offline
*
Re: PHPFPM 8.1.15 not getting build and activated
« Reply #6 on: August 29, 2023, 06:21:34 PM »
I'm on centos 8 also having this problem when building php80, php74:ok php81:ok php82:ok
ERROR: Missing extension file /sodium.so

Offline
****
Re: PHPFPM 8.1.15 not getting build and activated
« Reply #7 on: August 29, 2023, 08:21:57 PM »
Uncheck ImageMagicK, other than that leave everything else as default and try to build again.

ionCube support PHP 8.1, so you can enable that.

ionCube does NOT support PHP 8.0, so if you try to enable it, you will get errors.
« Last Edit: August 29, 2023, 08:23:43 PM by Starburst »