This guide will take you through the installation of PhalconPHP Extension for PHP 7.0 on cPanel using EasyApache4.
As of 29th December 2016, Phalcon installation is not supported by EasyApache3 and EasyApache4 by cPanel. However, in this tutorial, we will be installing the extension for PHP 7.0 using the source on github.
# Clone the GIT and Create Extension
git clone git://github.com/phalcon/cphalcon.git
Note: You must have git installed on your server, if it’s not installed run yum -y install git on your server.
# Now edit the Phalcon INI File
And add the following – extension=phalcon.so inside the file.
# Now Configure and Build
/opt/cpanel/ea-php70/root/usr/bin/phpize –enable-phalcon –with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config
sudo make install
/opt/cpanel/ea-php70/root/usr/bin/php -m | grep phalcon
Output should show up as “phalcon”
Now,get inside cPanel and Use the PHP Version Selector and set it to 7.0 and start using the world’s fastest and easiet to learn PHP Framework.