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.
Multiple PHP Versions Ubuntu 18.04 Problem
Multiple PHP Versions Ubuntu 18.04 Problem
Hi,
I am running php7.2 & 8.2 and I want to install phpcgi and php8.0 but nothing there but php8.0-common.
Any solution?
I am running php7.2 & 8.2 and I want to install phpcgi and php8.0 but nothing there but php8.0-common.
Any solution?
Re: Multiple PHP Versions Ubuntu 18.04 Problem
Hello, Can anyone answer this? I'm looking for a solution because I have the same problem. If anyone has one, please tag me. Thanks a lot.elnaw wrote: ↑Tue Dec 05, 2023 1:17 pmHi,
I am running php7.2 &download lagu 8.2 and I want to install phpcgimp3juice and phptubidy8.0 but nothing there but php8.0-common.
Any solution?
Re: Multiple PHP Versions Ubuntu 18.04 Problem
Managing multiple PHP versions on Ubuntu 18.04 can be a common challenge, especially when working with different projects that require different PHP versions. One popular solution for this is to use a tool called phpbrew. Here's how you can set it up and use it with an example:
Install phpbrew:
First, install phpbrew by running the following commands in your terminal:
Install desired PHP versions:
Now, let's say you want to install PHP 7.4 and PHP 8.0. You can do this with phpbrew:
Switch between PHP versions:
After installation, you can switch between PHP versions using the switch command. For example:
Use the desired PHP version:
Once you've switched to the desired PHP version, you can verify it by running:
This way, you can easily manage multiple PHP versions on Ubuntu 18.04 and switch between them as needed for different projects.
Install phpbrew:
First, install phpbrew by running the following commands in your terminal:
Code: Select all
sudo apt-get update
sudo apt-get install -y curl php-cli php-mbstring git unzip
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
sudo mv phpbrew /usr/local/bin/phpbrew
phpbrew init
Now, let's say you want to install PHP 7.4 and PHP 8.0. You can do this with phpbrew:
Code: Select all
phpbrew install 7.4 +default
phpbrew install 8.0 +default
After installation, you can switch between PHP versions using the switch command. For example:
Code: Select all
phpbrew switch php-7.4.24
Once you've switched to the desired PHP version, you can verify it by running:
Code: Select all
php -v