Package php5 have no installation candidate (Ubuntu 16.04)

后端 未结 7 1868
自闭症患者
自闭症患者 2020-12-04 17:33

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:

         


        
7条回答
  •  臣服心动
    2020-12-04 17:51

    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
    

提交回复
热议问题