As you have apache2 at ubuntu 14.04 I assume, that you have probably added
extension=phalcon.so
in wrong file. There are a couble of configuration files for PHP in ubuntu at path /etc/php5
. Mine tree looks like this:
/etc/php5$ tree
.
├── apache2
│ ├── conf.d
│ │ ├── 05-opcache.ini -> ../../mods-available/opcache.ini
│ │ ├── 10-pdo.ini -> ../../mods-available/pdo.ini
│ │ ├── ...
│ │ └── 21-phalcon.ini -> /etc/php5/mods-available/phalcon.ini
│ └── php.ini
├── cli
│ ├── conf.d
│ │ ├── 05-opcache.ini -> ../../mods-available/opcache.ini
│ │ ├── 10-pdo.ini -> ../../mods-available/pdo.ini
│ │ ├── ...
│ │ └── 21-phalcon.ini -> /etc/php5/mods-available/phalcon.ini
│ └── php.ini
└── mods-available
├── ...
└── phalcon.ini
As you can see, in mods-available
folder there is a phalcon.ini
file, which holds extension=phalcon.so
line. Than in other folders there are symlinks to it. Don't forget about the number on the begining of symlink name. In documentation they write sometimes that it should be named 30-phalcon.ini
etc. Case is that it should be loaded after all other extensions to satisfy Phalcons requirements, and the highest number at first part of filename is used for that, as extensions are loaded in ascending order based on filenames.
To fix your problem you should remove extension line from php.ini file and put it in dedicated file in mods-available/
directory, and after that link it with proper filename in all conf.d/
folders.