Skip to content

Commit 9e5b243

Browse files
committed
Added the switch to PHP7.3 version.
1 parent d0a4274 commit 9e5b243

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

switch-to-php-7.3.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
echo "* Disabling Apache PHP 5.6 module..."
4+
sudo a2dismod php5.6 > /dev/null
5+
6+
echo "* Disabling Apache PHP 7.0 module..."
7+
sudo a2dismod php7.0 > /dev/null
8+
9+
echo "* Disabling Apache PHP 7.1 module..."
10+
sudo a2dismod php7.1 > /dev/null
11+
12+
echo "* Disabling Apache PHP 7.2 module..."
13+
sudo a2dismod php7.2 > /dev/null
14+
15+
echo "* Enabling Apache PHP 7.3 module..."
16+
sudo a2enmod php7.3 > /dev/null
17+
18+
echo "* Restarting Apache..."
19+
sudo service apache2 restart > /dev/null
20+
21+
echo "* Switching CLI PHP to 7.3..."
22+
sudo update-alternatives --set php /usr/bin/php7.3 > /dev/null
23+
24+
echo "* Switch to PHP 7.3 complete."

0 commit comments

Comments
 (0)