Install phalcon under ubuntu trusty with php56

I'm trying to install the Phalcon package using the Ubuntu instruction mentioned in the manual. Unfortunately I'm getting the following error:

Setting up php5-phalcon (2.0.13-ppa1~trusty) ...
/var/lib/dpkg/info/php5-phalcon.postinst: 9: /var/lib/dpkg/info/php5-phalcon.postinst: php5enmod: not found
dpkg: error processing package php5-phalcon (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 php5-phalcon
E: Sub-process /usr/bin/dpkg returned an error code (1)
edited Jun '16

It screeches because dpkg cannot find the php5enmod binary...

Could you show the output of

apt-cache policy php5-common


2.0k
edited Jun '16

Sure

php5-common:
  Installed: 5.5.9+dfsg-1ubuntu4.17
  Candidate: 5.5.9+dfsg-1ubuntu4.17
  Version table:
 *** 5.5.9+dfsg-1ubuntu4.17 0
        500 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.5.9+dfsg-1ubuntu4 0
        500 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

bump... version seems ok



2.0k

I was able to compile from source but looks like the package is broken somehow. This was a complete clean install

edited Jun '16

Have you compiled PHP 5.6 on Trusty yourself or you're using PPA?



2.0k

I compliled it from the git repository following the instructions here: https://docs.phalconphp.com/en/latest/reference/install.html

edited Jun '16

I'm asking about PHP itself, not Phalcon. Trusty ships with PHP 5.5.9 by default, so for 5.6 you need to either rely on 3rd party PPA or to compile PHP on your own, and thus to have a working PHP5.6 environment.

Uh-oh. I just realized you're using Phalcon from PPA repository! So you have not compiled it on your own at all.

And this:

Installed: 5.5.9+dfsg-1ubuntu4.17

You're running default 5.5.9 from Trusty's official repo, not PHP 5.6 like you stated in post title.

Even with that, it should work with Phalcon fetched from PPA, but I would strongly suggest you to manually compile Phalcon.