Page 2 of 3

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Fri Oct 08, 2021 1:41 am
by mr_denisters
Package dont creat and save exist after instal script in admin panel.
→ Error: shell is not valid
in error.log: v-add-user-package [Error 2]

Image
How to resolve this problem?

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Tue Oct 19, 2021 8:49 am
by rikcage
Hi, I have not mett a like problem.

If you want to remove some php service You shoul go to the path /usr/local/vesta/data/templates/web/apache2/ and delete three files: php$type-$ver.stpl, php$type-$ver.tpl, php$type-$ver.sh where $type=(fcgid or -fpm) $ver=7.0 etc.

For exaple you want remove php-fpm-7.0 You shoul remove
/usr/local/vesta/data/templates/web/apache2/php-fpm-7.0.stpl
/usr/local/vesta/data/templates/web/apache2/php-fpm-7.0.tpl
/usr/local/vesta/data/templates/web/apache2/php-fpm-7.0.sh

It is possible that the error "Error: shell is not valid" will occur because you have blocked for some reason /bin/bash or this not available for web server.

Also please check if php is available
$ php5.6 -v
$ php7.0 -v

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Tue Oct 19, 2021 3:22 pm
by mr_denisters
Hi, thanks for the reply. I restored the system from the backup to the day before until the use of the multi version PHP script and the error remained, which means that the script does not have exactly what, just on the event coincided when I detected an error.

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Wed Nov 24, 2021 9:43 am
by Aleksander
rikcage wrote:
Thu Jul 15, 2021 9:04 am
Hi friends.
I present to you for review the script wich automaticly install in Ubuntu PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 and integrate it in VestaCP.
The script and tutorial you can get on https://github.com/rikcage/vst-php-selector
I tested it on Ubuntu 18.04 but I think it should work on ather OS as Debian and olds OS of Ubuntu and Debian.
Please your reviews.
Hi. I'm not a great specialist. Please tell me how to correctly write the script for Ubuntu 18.04

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Wed Nov 24, 2021 11:01 am
by imperio
what php version are you needed ?

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Wed Nov 24, 2021 2:23 pm
by Aleksander
imperio wrote:
Wed Nov 24, 2021 11:01 am
what php version are you needed ?
there is an old website that runs on version php 5.6
and 7.3/7.4
Thank you

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Wed Nov 24, 2021 2:43 pm
by imperio
php 56

Code: Select all

wget https://vestacp.com/php/vst-php56-fcgid.sh

Code: Select all

bash vst-php56-fcgid.sh

Code: Select all

sudo apt-get install php5.6-apcu php5.6-mbstring php5.6-bcmath php5.6-cli php5.6-curl php5.6-gd php5.6-intl php5.6-mcrypt php5.6-mysql php5.6-soap php5.6-xml php5.6-xmlrpc php5.6-json php5.6-zip php5.6-memcache php5.6-memcached php5.6-ldap
php 73

Code: Select all

wget https://vestacp.com/php/vst-php73-fcgid.sh

Code: Select all

bash vst-php73-fcgid.sh

Code: Select all

apt install php7.3-apcu php7.3-mbstring php7.3-bcmath php7.3-cli php7.3-curl php7.3-gd php7.3-intl php7.3-mcrypt php7.3-mysql php7.3-soap php7.3-xml php7.3-xmlrpc php7.3-json php7.3-zip php7.3-memcache php7.3-memcached php7.3-ldap

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Wed Nov 24, 2021 2:45 pm
by imperio
after that you can choose template in the domain settings
working only for apache , apache+nginx

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Wed Nov 24, 2021 2:47 pm
by imperio
for nginx fpm needed modify template for your cms or default template

Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian

Posted: Tue Nov 15, 2022 4:15 am
by ProfBell
how to remove it all
my phpmyadmin show error 500 when i install it