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:
extension=phalcon.so
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 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 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
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
wow, thx man!
i m using a liquidweb vps
i install the phalcon in 3 mins , is so much impressive
Thanks for your this great work. The php 7.0 is dafaultly set and only need to login with root credentials from putty and then just copy and past this script and see the result on phpinfo, phalcon is there
🙂
I am glad to know that! Thanks 🙂
Is it possible install Phalcon on a server where I don’t have the root access. My PHP hoster, Cloudways, doesn’t provide root access to the users. I haven’t been able to install Phalcon yet using the composer command. The only way to do it is by someone who has the root access so they can run the sudo command. Is there any other way to install Phalcon on such a hosting?