Skip to content

Commit dfb27b5

Browse files
authored
Merge pull request #1 from nafiesl/master
Add php7.3 disable commands
2 parents c80c990 + 942f5b3 commit dfb27b5

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Once setup is complete, you can easily switch between different PHP versions usi
5757
./switch-to-php-7.0.sh
5858
./switch-to-php-7.1.sh
5959
./switch-to-php-7.2.sh
60+
./switch-to-php-7.3.sh
6061
```
6162

6263
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.

switch-to-php-5.6.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ sudo a2dismod php7.1 > /dev/null
99
echo "* Disabling Apache PHP 7.2 module..."
1010
sudo a2dismod php7.2 > /dev/null
1111

12+
echo "* Disabling Apache PHP 7.3 module..."
13+
sudo a2dismod php7.3 > /dev/null
14+
1215
echo "* Enabling Apache PHP 5.6 module..."
1316
sudo a2enmod php5.6 > /dev/null
1417

switch-to-php-7.0.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ sudo a2dismod php7.1 > /dev/null
99
echo "* Disabling Apache PHP 7.2 module..."
1010
sudo a2dismod php7.2 > /dev/null
1111

12+
echo "* Disabling Apache PHP 7.3 module..."
13+
sudo a2dismod php7.3 > /dev/null
14+
1215
echo "* Enabling Apache PHP 7.0 module..."
1316
sudo a2enmod php7.0 > /dev/null
1417

switch-to-php-7.1.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
echo "* Disabling Apache PHP 5.6 module..."
44
sudo a2dismod php5.6 > /dev/null
55

6+
echo "* Disabling Apache PHP 7.0 module..."
7+
sudo a2dismod php7.0 > /dev/null
8+
69
echo "* Disabling Apache PHP 7.2 module..."
710
sudo a2dismod php7.2 > /dev/null
811

9-
echo "* Disabling Apache PHP 7.0 module..."
10-
sudo a2dismod php7.0 > /dev/null
12+
echo "* Disabling Apache PHP 7.3 module..."
13+
sudo a2dismod php7.3 > /dev/null
1114

1215
echo "* Enabling Apache PHP 7.1 module..."
1316
sudo a2enmod php7.1 > /dev/null

switch-to-php-7.2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ sudo a2dismod php7.0 > /dev/null
99
echo "* Disabling Apache PHP 7.1 module..."
1010
sudo a2dismod php7.1 > /dev/null
1111

12+
echo "* Disabling Apache PHP 7.3 module..."
13+
sudo a2dismod php7.3 > /dev/null
14+
1215
echo "* Enabling Apache PHP 7.2 module..."
1316
sudo a2enmod php7.2 > /dev/null
1417

0 commit comments

Comments
 (0)