4,461
edits
→SSL/TLS: add enable SSH public key authentication with an encrypted home folder |
|||
Line 22: | Line 22: | ||
Update package lists: | Update package lists: | ||
< | <syntaxhighlight lang="bash"> | ||
$ sudo apt-get update | $ sudo apt-get update | ||
</ | </syntaxhighlight> | ||
Install PHP 5.6. You may also add other extensions you may need for your app (e.g. php5.6-mbstring, php5.6-xml, etc.) | Install PHP 5.6. You may also add other extensions you may need for your app (e.g. php5.6-mbstring, php5.6-xml, etc.) | ||
< | <syntaxhighlight lang="bash"> | ||
$ sudo apt-get install php5.6 | $ sudo apt-get install php5.6 | ||
</ | </syntaxhighlight> | ||
Switch the default PHP to PHP 5.6. | Switch the default PHP to PHP 5.6. | ||
< | <syntaxhighlight lang="bash"> | ||
$ sudo update-alternatives --config php | $ sudo update-alternatives --config php | ||
</ | </syntaxhighlight> | ||
Reference: [https://by-example.org/ubuntu-16-04-xenial-downgrade-php-7-to-php-5-6/ Downgrade PHP 7 to PHP 5.6] | Reference: [https://by-example.org/ubuntu-16-04-xenial-downgrade-php-7-to-php-5-6/ Downgrade PHP 7 to PHP 5.6] | ||
== enable PHP 5.6 FPM in apache2 == | |||
<syntaxhighlight lang="bash"> | |||
$ a2enmod prox_fcgi setenvif | |||
$ a2enconf php5.6-fpm | |||
</syntaxhighlight> | |||
= SSL/TLS = | = SSL/TLS = |