Home >Backend Development >PHP Tutorial >Install PHP framework under centos Phalcon centos6.5 php centos Check php version centos upgrade ph
First open the phalcon source code address of GITHUB: https://github.com/phalcon/cphalcon
There are installation steps above, as follows
1. Installation tools: sudo yum install php-devel pcre-devel gcc make
2. Download Phalcon source code: git clone git://github.com/phalcon/cphalcon.git. After downloading, you can view and select the phalcon version you need through git
3. Enter the relevant subdirectory to install: cd cphalcon/build.
sudo ./install
You may encounter the following installation failure problem
*php version is too low
4. Install PHP5.6 on CentOS
Configure yum source: add the epel and remi sources of CentOS 6.5.
# 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
Install PHP5.6
The yum source is configured, 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 PHP command to view 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 successfully installing PHP Need to stop PHP: service php-fpm stop
Stop nginx: service nginx stop
5. Execute the above command again: sudo ./install
Add extension to the php.ini file:
extension=phalcon.so
6. Place the generated phalcon.so in the specified folder, and then start php and nginx
The above introduces the installation of the PHP framework Phalcon under centos, including the content of centos and PHP framework. I hope it will be helpful to friends who are interested in PHP tutorials.