We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian Topic is solved
-
- Posts: 28
- Joined: Sat Jan 21, 2017 1:02 pm
Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian
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]
How to resolve this problem?
→ Error: shell is not valid
in error.log: v-add-user-package [Error 2]
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
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
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
-
- Posts: 28
- Joined: Sat Jan 21, 2017 1:02 pm
Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian
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.
-
- Posts: 17
- Joined: Thu Dec 19, 2019 12:16 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian
Hi. I'm not a great specialist. Please tell me how to correctly write the script for Ubuntu 18.04rikcage wrote: ↑Thu Jul 15, 2021 9:04 amHi 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.
Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian
what php version are you needed ?
-
- Posts: 17
- Joined: Thu Dec 19, 2019 12:16 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: PHP Multi selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 8.0 for Ubuntu & Debian
php 56
php 73
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
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
after that you can choose template in the domain settings
working only for apache , apache+nginx
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
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
how to remove it all
my phpmyadmin show error 500 when i install it
my phpmyadmin show error 500 when i install it