Search code examples
phpubuntu-16.04phalcon

Unable to install php-5 phalcon for ubuntu 16.04


My machine is running on ubuntu 16.04 and I have installed php 5.6, but when I am trying to run to install php5-phalcon, it returns error that package not found.

Following is command that I ran

sudo apt-get install php5-phalcon

It returns following output

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php5-phalcon

Solution

  • After trying few methods, found that php5.6-phalcon is not available for ubuntu 16.04, following are steps to install php7.0-phalcon :

    curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash
    
    # Ubuntu 16.04+, Debian 9+
    sudo apt-get install php7.0-phalcon