When i try to install php5 in Ubuntu 16.04 by using following code:
sudo apt-get install php5 php5-mcrypt
I get following error:
Currently, I am using Ubuntu 16.04 LTS. Me too was facing same problem while Fetching the Postgress Database values using Php so i resolved it by using the below commands.
Mine PHP version is 7.0, so i tried the below command.
apt-get install php-pgsql
Remember to restart Apache.
/etc/init.d/apache2 restart