Page 1 of 3

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

Posted: Thu Jul 15, 2021 9:04 am
by rikcage
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.

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

Posted: Thu Jul 15, 2021 10:07 am
by skurudo
Wow! Nice, very nice!

(made post sticky for 180 days.. if will be more feedback or some nice thing, then will be sticky longer or forever)

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

Posted: Wed Jul 21, 2021 6:46 pm
by rikcage
Hi, friends.
At the moment the script works only on Ubuntu 18.04.

In the Inet there are a lot of tutorials how to install php 7.3-8.0 on Ubuntu 14.04/16.04.
The main idea is

Code: Select all

sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
I try it on Ubuntu 14.04/16.04 but I see message like that
Package php7.4 does not exist

May be someone has installed php7.4 on Ubuntu 14.04/16.04 share your experience.

Soon I`ll try to test it for Debian.

May be your experience will help to inprove this script.

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

Posted: Wed Jul 21, 2021 9:27 pm
by imperio
rikcage, Thank you! Great job

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

Posted: Thu Jul 22, 2021 11:12 am
by eris
rikcage wrote:
Wed Jul 21, 2021 6:46 pm
Hi, friends.
At the moment the script works only on Ubuntu 18.04.

In the Inet there are a lot of tutorials how to install php 7.3-8.0 on Ubuntu 14.04/16.04.
The main idea is

Code: Select all

sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
I try it on Ubuntu 14.04/16.04 but I see message like that
Package php7.4 does not exist

May be someone has installed php7.4 on Ubuntu 14.04/16.04 share your experience.

Soon I`ll try to test it for Debian.

May be your experience will help to inprove this script.
deb.sury only support active supported Operating systems as 14.04 and 16.04 are EOL they are not supported any more...

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

Posted: Tue Aug 03, 2021 12:28 pm
by rikcage
Hi friends.

Good news. This script now works on Debian 9.

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 Aug 03, 2021 12:33 pm
by imperio
Greate job. Thank you for your help!

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 Aug 18, 2021 2:30 pm
by imperio
Ubuntu 18.04

Code: Select all

E: Unable to locate package php7.0-fpm
E: Couldn't find any package by glob 'php7.0-fpm'
E: Couldn't find any package by regex 'php7.0-fpm'
E: Unable to locate package php7.0-cgi
E: Couldn't find any package by glob 'php7.0-cgi'
E: Couldn't find any package by regex 'php7.0-cgi'
tested for cgi, fcgi

Code: Select all

./vst-php-fcgid.sh: line 17: add-apt-repository: command not found
should be added in installer

Code: Select all

apt install -y software-properties-common

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 Aug 27, 2021 9:40 am
by rikcage
Thanks for your post.

I tested it on Ubuntu server 18.04.5 and it worked fine.

What version of Ubuntu are you using? How can I repeat your problem?
I'll try it again on your version and probably fix script.

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 Aug 27, 2021 9:47 am
by imperio
It depends on the hoster's OS image
on DO is not reproduce, but reproduce on Firstvds