Control Web Panel

WebPanel => PHP Selector => Topic started by: Gogo on December 01, 2018, 03:09:09 PM

Title: php_selector3 Error
Post by: Gogo on December 01, 2018, 03:09:09 PM
I can't install PHP 7.0/7.1/7.2 via php_selector3. Older versions <5 are installed and they are working fine.

Code: [Select]
...
Saving to: 'apcu-5.1.12.tgz'

     0K .......... .......... .......... .......... .......... 48%  300K 0s
    50K .......... .......... .......... .......... .......... 96%  607K 0s
   100K ...                                                   100% 6501G=0.2s

2018-12-01 15:57:28 (415 KB/s) - 'apcu-5.1.12.tgz' saved [105890/105890]

/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.2/apcu.sh: line 8: /opt/alt/php-fpm72/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.2/apcu.sh: line 9: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.2/apcu.sh: line 13: /opt/alt/php-fpm72/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /apcu.so
Title: Re: php_selector3 Error
Post by: josemnunez on December 01, 2018, 09:05:14 PM
You are installing more than one version at a time?
Title: Re: php_selector3 Error
Post by: Gogo on December 01, 2018, 09:08:11 PM
It's same with one and multiple versions at once.
Title: Re: php_selector3 Error
Post by: gasonline on December 03, 2018, 10:56:39 AM
Same issue here.

Jose yo tengo el mismo error
Title: Re: php_selector3 Error
Post by: tiagondelgado on December 03, 2018, 03:59:23 PM
Same problem :@
Title: Re: php_selector3 Error
Post by: thefantas on December 04, 2018, 04:05:29 AM
Code: [Select]
yes: standard output: Broken pipe
yes: write error
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.2/opcache.sh: line 3: /opt/alt/php-fpm72/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /opcache.so
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
--2018-12-03 22:44:48--  https://pecl.php.net/get/apcu-5.1.12.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105890 (103K) [application/octet-stream]
Saving to: 'apcu-5.1.12.tgz'

     0K .......... .......... .......... .......... .......... 48% 2.74M 0s
    50K .......... .......... .......... .......... .......... 96% 5.59M 0s
   100K ...                                                   100% 6501G=0.03s

2018-12-03 22:44:48 (3.81 MB/s) - 'apcu-5.1.12.tgz' saved [105890/105890]

/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.2/apcu.sh: line 8: /opt/alt/php-fpm72/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.2/apcu.sh: line 9: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.2/apcu.sh: line 13: /opt/alt/php-fpm72/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /apcu.so
Redirecting to /bin/systemctl restart httpd.service

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


Error:Can't add notification!
Title: Re: php_selector3 Error
Post by: GTMAN on December 04, 2018, 05:46:06 PM
I had the same issue and found in the logs that it was running out of virtual memory. I increased the servers swap file to 1024mb and I can compile successfully. Running 7.2.12.
Title: Re: php_selector3 Error
Post by: thefantas on December 04, 2018, 05:56:11 PM
I have 16GB of RAM and SWAP 8GB
Title: Re: php_selector3 Error
Post by: Gogo on December 05, 2018, 04:22:15 AM
@GTMAN That problem have to be fixed inside CWP itself and not by server modifications such as changing swap etc.
Obviously there is some memory leak while process is running.
Title: Re: php_selector3 Error
Post by: Gogo on December 15, 2018, 12:32:42 PM
v7.3    added to the selector but still no fix for the problem above.
Title: Re: php_selector3 Error
Post by: rex2k1 on January 02, 2019, 10:27:17 AM
Same problem here, I can't switch to a 7.X version
Title: Re: php_selector3 Error
Post by: Gogo on January 02, 2019, 04:45:45 PM
I have temporarly fixed this by disabling xpm-dir in Options list before building/rebuilding 7.x versions.

And still, that have to be fixed inside CWP because that php builder script has a memory leak looks like.
Title: Re: php_selector3 Error
Post by: Sandeep on January 06, 2019, 09:16:33 AM
probably you've memory related error on your server/node.
Title: Re: php_selector3 Error
Post by: Gogo on January 06, 2019, 06:47:36 PM
That't not related to my server, it's a CWP problem.

I've tested that on 10+ servers (different specs) and every single one of them had same problem. Also I am not the only one who have that problem. Just check the rest of the forum how many people faced it.
Title: Re: php_selector3 Error
Post by: Sandeep on January 07, 2019, 09:00:38 AM
That't not related to my server, it's a CWP problem.

I've tested that on 10+ servers (different specs) and every single one of them had same problem. Also I am not the only one who have that problem. Just check the rest of the forum how many people faced it.
provide the full log
Title: Re: php_selector3 Error
Post by: rex2k1 on January 24, 2019, 12:35:41 AM
Any solution? I still have the problem
Title: Re: php_selector3 Error
Post by: tiagondelgado on June 05, 2019, 11:32:40 AM
Have same problem. Someone can help me?

mkdir: cannot create directory '/opt/alt/php-fpm73/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 92: /opt/alt/php-fpm73/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 93: /opt/alt/php-fpm73/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 95: /opt/alt/php-fpm73/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-fpm73.service: No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm73.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
exe:/opt/alt/php-fpm73/usr/sbin/php-fpm
Redirecting to /bin/systemctl restart httpd.service