Install Multiple PHP Version Ubuntu 23.04
HTML-код
- Опубликовано: 23 авг 2024
- In this video, I will show you step by step procedure on how to configure multiple PHP versions on Ubuntu 23 and how to switch between them as well.
Installing Multiple Versions of PHP Ubuntu 23
// See your version of Ubuntu
lsb_release -d
// First add this repo
sudo add-apt-repository ppa:ondrej/php
Manage / Have Multiple PHP Versions with Apache2
sudo update-alternatives --config php
// Software properties
sudo add-apt-repository ppa:ondrej/php
// update system
sudo apt update
//edit the updatesoftware
Update change lunar to jammy:
// Install verseion 7.2
sudo apt install php7.2 php7.2-fpm
Manage / Have Multiple PHP Versions with Apache2
sudo update-alternatives --config php
//Restart Apache for the changes to take effect.
sudo systemctl restart apache2
//Remove all php7* version
sudo apt-get purge php7.*
Buy me a cup of coffee
USDT wallet Address
0x10140442c4ff6264707c22b8e7ce88616b56cc99
Thanks!!!!!
Great job bruh!!!
Keep up the good works.
Thanks! Will do!
Great job sir🎉
Thank's Bro.
You're welcome!
Cheers for Video
I wasn't using the GUI and recently updated everything to lunar. I noticed you could follow your steps but the only difference for me was that
without the GUI I had to edit the PPA list.
// show list
ls /etc/apt/sources.list.d/
//edit the file
//something like 'ondrej-ubuntu-php-lunar.list'
sudo nano /etc/apt/sources.list.d/[filename].list
//Change "lunar" to "jammy" wihtin the file above
//now you can update without error
sudo apt update
I strongly dey with you and I'll support every ❤❤ want to learn too
Great, My ubuntu 23 other php version issue fixed. thanks
Thanks Bro.
You're welcome!
You're doing great sir
thanks man, finally my problem get solved 😊
Glad I could help
You are a lifesaver bro, Really thanks
you are welcome
it works u saved
glad it helped
thank you guys, is very usefull
Great job Bro !!!!
You welcome...please do subscribe and like my page
thanks
You're welcome!
Bro could you please make video about how to install multiple version of composer on ubuntu 23.04
At the moment I don`t think there are alternatives for composer, but why would you want that
Respect.
Thanks dude