Installing PHP Phalcon on Elementary OS

PHP Phalcon is one of my favourite PHP frameworks its so quick and powerful. Here is a quick guide on how to install it on Elementary OS. This guide presumes you are using Apache and have it working. If not please follow this guide to get Apache install on Elementary OS.

First we need to install GIT, open up terminal and type the following:

sudo apt-get install git-core gcc autoconf

If you have followed my LAMP stack tutorial you will already have PHP5 installed, if not run the following:

sudo apt-get install php5-dev php5-mysql

Now lets clone PHP Phalcon from GIThub

git clone git://

Now lets change into the PHP Phalcon folder we just cloned:

cd cphalcon/build

And run the install:

sudo ./install

Brilliant you are now flying on Phalcon! Lets load the extension in Apache. The default location for the php.ini file in Elementary OS is /etc/php5/apache2.

sudo nano /etc/php5/apache2/php.ini

Scroll to the bottom of the config file (hold Ctrl and V) and insert the following line:

Save the file (Ctrl and X). Now restart Apache:

sudo /etc/init.d/apache2 restart

You are now ready to start using PHP Phalcon

Leave a Reply

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