Web services: Difference between revisions

Jump to navigation Jump to search
→‎SSL/TLS: add enable SSH public key authentication with an encrypted home folder
Line 22: Line 22:
Update package lists:
Update package lists:


<source lang="bash">
<syntaxhighlight lang="bash">
$ sudo apt-get update
$ sudo apt-get update
</source>
</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.)


<source lang="bash">
<syntaxhighlight lang="bash">
$ sudo apt-get install php5.6
$ sudo apt-get install php5.6
</source>
</syntaxhighlight>


Switch the default PHP to PHP 5.6.
Switch the default PHP to PHP 5.6.


<source lang="bash">
<syntaxhighlight lang="bash">
$ sudo update-alternatives --config php
$ sudo update-alternatives --config php
</source>
</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 =

Navigation menu