mkdir -p /root/phalcon-src
cd /root/phalcon-src
git clone https://github.com/phalcon/cphalcon.git .
cd build/php7/64bits
/usr/local/php/bin/phpize
./configure --with-php-config="/usr/local/php/bin/php-config"
make
make install
cd /root
rm -rf /root/phalcon-src
Create a file named /etc/php.d/phalcon.ini
with the following content, pay attention to the extensions path:
extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/phalcon.so"