Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 272f0b9

Browse files
committed
Added script for switch php version to the 7.1
1 parent a8d2e3d commit 272f0b9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎switch-to-php-7.1.sh‎

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /