Skip to content

Latest commit

 

History

History
33 lines (16 loc) · 929 Bytes

File metadata and controls

33 lines (16 loc) · 929 Bytes

🔄 PHP Switch Scripts

This is my tweaked version of https://github.com/rapidwebltd/php-switch-scripts which I use almost daily since 2019.

With this script switching between PHP-versions in Ubuntu is easy!

More info about requirements, checks and usage in the original documentation

Installation

Run setup.sh once.

This may take some time depending on your system and connection speed.

It will require you to enter your password to install new packages.

I added an alias to my /home/{user}/.bash_aliases so I can just run switch from my CLI:

alias switch='sudo /home/switch-php.sh'

Usage

Run switch-php.sh, you can choose to which version you want to switch:

Sources