We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it in September 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
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
Re: Multiple PHP Versions Ubuntu 18.04 Problem
Thank you very much for providing the detailed solution for the Multiple PHP Versions Ubuntu 18.04 Problem.jenny wrote: ↑Sat Jun 01, 2024 6:49 amManaging 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: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
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: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:Use the desired PHP version:Code: Select all
phpbrew switch php-7.4.24
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.Code: Select all
php -v
Because as we know that, Managing different PHP versions on Ubuntu 18.04 can be quite a headache, especially when each project demands its specific version. Luckily, there's a handy tool called phpbrew to save the day. Imagine you're working on two projects: one requires PHP 7.4, while the other needs PHP 8.0. With phpbrew, you can smoothly set up and switch between these versions. First, install phpbrew and initialize it in your terminal. Then, it's a breeze to install the desired PHP versions—simply run commands to install PHP 7.4 and PHP 8.0. After installation, toggling between versions is effortless; a quick phpbrew switch php-7.4.24 does the trick. To confirm you're using the right version, just type php -v, and voila! You're all set to tackle various projects without the hassle of version conflicts.
Re: Multiple PHP Versions Ubuntu 18.04 Problem
Thanks a lot. This is really helpful.mikeman wrote: ↑Fri Jun 07, 2024 7:00 am
Thank you very much for providing the detailed solution for the Multiple PHP Versions Ubuntu 18.04 Problem.
Because as we know that, Managing different PHP versions on Ubuntu 18.04 can be quite a headache, especially when each project demands its specific version. Luckily, there's a handy tool called phpbrew to save the day. Imagine you're working on two projects: one requires PHP 7.4, while the other needs PHP 8.0. With phpbrew, you can smoothly set up and switch between these versions. First, install phpbrew and initialize it in your terminal. Then, it's a breeze to install the desired PHP versions—simply run commands to install PHP 7.4 and PHP 8.0. After installation, toggling between versions is effortless; a quick phpbrew switch php-7.4.24 does the trick. To confirm you're using the right version, just type php -v, and voila! You're all set to tackle various projects without the hassle of version conflicts.
Re: Multiple PHP Versions Ubuntu 18.04 Problem
Thanks very much for the appreciation.jenny wrote: ↑Fri Jul 12, 2024 8:21 amThanks a lot. This is really helpful.mikeman wrote: ↑Fri Jun 07, 2024 7:00 am
Thank you very much for providing the detailed solution for the Multiple PHP Versions Ubuntu 18.04 Problem.
Because as we know that, Managing different PHP versions on Ubuntu 18.04 can be quite a headache, especially when each project demands its specific version. Luckily, there's a handy tool called phpbrew to save the day. Imagine you're working on two projects: one requires PHP 7.4, while the other needs PHP 8.0. With phpbrew, you can smoothly set up and switch between these versions. First, install phpbrew and initialize it in your terminal. Then, it's a breeze to install the desired PHP versions—simply run commands to install PHP 7.4 and PHP 8.0. After installation, toggling between versions is effortless; a quick phpbrew switch php-7.4.24 does the trick. To confirm you're using the right version, just type php -v, and voila! You're all set to tackle various projects without the hassle of version conflicts.