Web services: Difference between revisions

Jump to navigation Jump to search
add php area and downgrading php 7 to php 5.6
m typo
add php area and downgrading php 7 to php 5.6
Line 1: Line 1:
== PHP ==
=== Downgrading PHP 7 to PHP 5.6 ===
* ''Last tested on Ubuntu 14.04.4 LTS (trusty) | easy | less than ten minutes''
This should be also applicable for Ubuntu 16.04 (xenial) since it has PHP 7.0 as the default. I had temporarily upgraded to PHP 7.0 to check compatibility of one of our applications and Crypt_RSA package turned out to be the sore spot. So we had to revert back.
This may only apply for Ubuntu 14.04.4 or other versions less than 16.04. This is to add Ondřej Surý's PPA repository for PHP. Of course, if you have 14.04 and already have PHP 7.0, you probably have done this. If you don't have add-apt-repository, then please add it by adding a package called <span class="package">python-software-properties</span>.
<source bash="lang">
$ sudo apt-get install python-software-properties
</source>
Add repository for PHP
<source lang="bash">
$ sudo add-apt-repository -y ppa:ondrej/php
</source>
Update package lists:
<source lang="bash">
$ sudo apt-get update
</source>
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">
$ sudo apt-get install php5.6
</source>
Switch the default PHP to PHP 5.6.
<source lang="bash">
$ sudo update-alternatives --config php
</source>
Reference: [https://by-example.org/ubuntu-16-04-xenial-downgrade-php-7-to-php-5-6/ Downgrade PHP 7 to PHP 5.6]


== SSL/TLS ==
== SSL/TLS ==

Navigation menu