You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
-
# PHP Switch Scripts
1
+
# 🔄 PHP Switch Scripts
2
2
3
-
These scripts are designed to aid in the setup of and switching between multiple PHP versions in Ubuntu 16.04 LTS.
3
+
These scripts are designed to aid in the setup of and switching between multiple PHP versions in Ubuntu 14.04 LTS or newer.
4
+
5
+
<imgsrc="assets/images/usage.png" />
4
6
5
-
Currently they support switching between PHP 5.6 and PHP 7.0.
6
7
7
8
Please note that these scripts install packages from a third-party repository, provided by [Ondřej Surý](https://twitter.com/oerdnj). More details are available at the repository's [website](https://deb.sury.org/), [PPA page on Launchpad](https://launchpad.net/~ondrej/+archive/ubuntu/php/) and [Twitter account](https://twitter.com/debsuryorg).
8
9
9
10
## Requirements
10
11
11
-
* Ubuntu 16.04.* LTS
12
+
* Ubuntu 14.04.* LTS or newer
12
13
* Apache 2.4.*
13
14
14
15
You can check you have the required versions by running the following command.
@@ -54,6 +55,8 @@ Once setup is complete, you can easily switch between different PHP versions usi
54
55
```
55
56
./switch-to-php-5.6.sh
56
57
./switch-to-php-7.0.sh
58
+
./switch-to-php-7.1.sh
59
+
./switch-to-php-7.2.sh
57
60
```
58
61
59
62
This will alter the versions of PHP running in Apache and the command line. Your password will be required to enable/disable Apache modules, restart the web server and alter the default PHP CLI version.
0 commit comments