Phalcon is a high performance Php framework with MVC support. Its is very useful framework for developing dynamic applications rapidly. This article will help you install and enable Phalcon php framework in your Ubuntu system.
Install Required Packages
Firstly you need to install some prerequisites packages in your system using following commands.
Install PHP 5.4 and other required packages
$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php5-oldstable $ sudo apt-get update $ sudo apt-get install -y php5 php5-dev php5-mysql gcc libpcre3-dev
$ apt-get install apache2 libapache2-mod-php5
$ apt-get install mysql-server php5-mysql
Install Phalcon PHP Framework
$ cd /opt/ $ git clone https://github.com/phalcon/cphalcon.git $ cd cphalcon/build $ sudo ./install
Enable Phalcon php extension in your system.
$ echo "extension=phalcon.so" > /etc/php5/conf.d/25-phalcon.ini $ sudo service apache2 reload
Before proceeding for development, make sure phalcon php framework has been successfully installed with your php.
Create a info.php on your web document root with following content and access it in browser.
<?php phpinfo(); ?>
You will see output like below.
Create Project with Phalcon
As you have successfully installed phalcon php extension in your system. Lets visit below url to install Phalcon Developer Tools for creating project and add components in project.