Update: This module is for EasyApache 3, which is obsolete in favor of EasyApache 4. Due to recent changes in EA3, this module may not work on your server, and this is out of our control. Therefore, this module is currently no longer supported and we recommend using PECL to install it instead until it is supported by cPanel.
Over the last few months I’ve seen a number of requests for Phalcon support within EasyApache. Bearing in mind that the installation is nothing more than that of a typical PECL module, some would prefer to have integration into cPanel to allow for easier installation and portability though EA templates.
I wrote a simple EasyApache module to integrate Phalcon into PHP builds. You can find it on Github:
To install, simply copy the contents of the repo into /var/cpanel/easy/apache/custom_opt_mods/:
git clone https://github.com/thecpaneladmin/EA-PhalconPHP.git .
If you don’t have git on your server (first, of all, why not?!?):
unzip -d /var/cpanel/easy/apache/custom_opt_mods/ master.zip
From EasyApache, you can select Phalcon from the list of PHP modules, and proceed to build.
The phalcon.so extension will be loaded from /usr/local/bin/php.ini, so bear in mind that if you have PHP running as as CGI module (CGI, FastCGI, or suPHP), and utilize a local php.ini file, you may need to add the following line to your local php.ini:
Then copy phalcon.so to whatever is defined as the value for extension_dir.