First open GitHub's Phalcon source address: Https://github.com/phalcon/cphalcon
There are installation steps, as follows
1. Installation tool: sudo yum install php-devel pcre-devel gcc make
2. Download Phalcon Source: Git clone git://github.com/phalcon/cphalcon.git, after download, you can check your desired version of Phalcon by using Git.
3. Go to the relevant subdirectory to install: CD Cphalcon/build.
sudo./install
You may experience the following installation failure problem
*php version too low
4. Installing PHP5.6 in CentOS
Configure the Yum Source: Add CentOS 6.5 Epel and Remi sources.
# RPM-UVH http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Use the Yum List command to view the installable packages (Packege).
# Yum List--enablerepo=remi--enablerepo=remi-php56 | grep php
Installing PHP5.6
The Yum source is configured, and the next step is to install PHP5.6.
# yum Install--enablerepo=remi--enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php -phpunit-phpunit Php-pecl-xdebug Php-pecl-xhprof
Use the PHP command to view the version.
# php--version
PHP 5.6.0 (CLI) (BUILT:SEP 3 2014 19:51:31)
Copyright (c) 1997-2014 the PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
With Zend Opcache V7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
With Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
* After installing PHP successfully need to stop Php:service php-fpm stop
Stop Nginx:service Nginx Stop
5. Execute the above command again: sudo./install
To add an extension to the php.ini file:
Extension=phalcon.so
6. Put the generated phalcon.so in the specified folder, then start PHP, Nginx
The above describes the installation of the PHP framework under CentOS Phalcon, including the centos,php framework of the content, I hope that the PHP tutorial interested in a friend helpful.