This post explains how to install Phalcon PHP on cPanel with EasyApache 4. I found that many of the cPanel customers are requesting Phalcon support on cPanel feature request and cPanel is officially not providing it yet. Here are the steps to install Phalcon PHP on cPanel.

Create the extension:

cd /usr/local/src/
git clone git://

Please create the Phalcon configuration file using your favourite editor. Here, we are using VIM editor.

vim /opt/cpanel/ea-php70/root/etc/php.d/20-phalcon.ini

I have decided to add the Phalcon module on PHP 7.0 and that’s the reason I have created the configuration file under /opt/cpanel/ea-php70

Add the following to it:

Then go to the directory /usr/local/src/cphalcon/build/php7/64bits , because I am installing Phalcon PHP on PHP 7.0 in a 64 bit OS architecture.

cd /usr/local/src/cphalcon/build/php7/64bits/
/opt/cpanel/ea-php70/root/usr/bin/phpize --enable-phalcon --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config
./configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config
make install

Once the installation gets completed, run the following command to verify the module is loaded on the PHP.

/opt/cpanel/ea-php70/root/usr/bin/php -m | grep phalcon

Sample Output:

[root@server ~]# /opt/cpanel/ea-php70/root/usr/bin/php -m | grep phalcon
[root@server ~]#

Note: If you would like to enable Redis module on PHP 5.6, you just need to update the correct binary paths on the above installation.

/opt/cpanel/ea-php70/root/etc/php.d/20-phalcon.ini to /opt/cpanel/ea-php56/root/etc/php.d/phalcon.ini
/usr/local/src/cphalcon/build/php7/64bits to /usr/local/src/cphalcon/build/php5/64bits
/opt/cpanel/ea-php70/root/usr/bin/phpize to /opt/cpanel/ea-php56/root/usr/bin/phpize
/opt/cpanel/ea-php70/root/usr/bin/php-config to /opt/cpanel/ea-php56/root/usr/bin/php-config
/opt/cpanel/ea-php70/root/usr/bin/php to /opt/cpanel/ea-php56/root/usr/bin/php
Was this answer helpful? 0 Users Found This Useful (0 Votes)