Install PHP framework under CentOS Phalcon centos6.5 php centos view PHP version CentOS upgrade ph

Source: Internet
Author: User
Tags php framework zend
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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.