Home / CONTROL PANELS / cPanel / Install Phalcon PHP on cPanel with EasyApache 4

Install Phalcon PHP on cPanel with EasyApache 4

Install Phalcon PHP on cPanel with EasyApache 4

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://github.com/phalcon/cphalcon.git

Please create the Phalcon configuration file using your favorite editor. I am using VIM editor here.

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 into 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 get completed, run the following command to verify the moduele 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

That’s it!

If you like this post and wish to receive more articles from us, please like our FB page: Grepitout

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at info@grepitout.com

Check Also

No response

No response from subprocess /usr/local/cpanel/whostmgr/docroot/cgi/addon_nginx.cgi

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/ addon_nginx.cgi): The subprocess reported error number 2 when it ended. ...

Leave a Reply

Your email address will not be published. Required fields are marked *