Download Phalcon大屏查看

发布于:2016年05月04日 已被阅读

Download Phalcon

Phalcon is a C extension, so you need to download a binary for your platform or compile it from source code.

Ubuntu

To install Phalcon on Ubuntu you need to follow these steps:

sudo apt-add-repository ppa:phalcon/stable
sudo apt-get update
sudo apt-get install php5-phalcon

If you wish to install the legacy version of Phalcon (1.x) use the following PPA:

sudo apt-add-repository ppa:phalcon/legacy

If you are missing apt-add-repository run the following command:

# Ubuntu 14.04+
sudo apt-get install software-properties-common

# Ubuntu 12.04
sudo apt-get install python-software-properties


Compilation

On Linux you can easily compile and install the extension from source code.

Requirements

We need some packages previously installed:

  • PHP 5.x development resources

  • GCC compiler


#Ubuntu
    sudo apt-get install php5-dev php5-mysql gcc libpcre3-dev

#Fedora
    sudo yum install php-devel php-mysqlnd gcc libtool

#RHEL
    sudo yum install php-devel php-mysql gcc libtool

#Suse
    yast2 -i php5-pear php5-devel php5-mysql gcc

#OS X (Using Homebrew)
    brew tap homebrew/dupes
    brew tap homebrew/versions
    brew tap homebrew/php
    brew install php5x php5x-phalcon # Where "x" - minor number of PHP


Compilation

1. To create the extension from C source follow these steps:


git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install


2. Add the extension to your php.ini:

extension=phalcon.so

3. Finally, restart the webserver

Debian

There is a repo graciously offered by FortRabbit here

The package name is php5-phalcon

Arch Linux

There is a PKGBUILD for ArchLinux, available here

OpenSUSE

There is a package available here (thanks to Mariusz Łączak)

FreeBSD

A port is available for FreeBSD. You only need these few commands to install it:

# pkg_add -r phalcon

or

# cd /usr/ports/www/phalcon && make install clean


cPanel

After requests from the community, the cPanel developers released a custom module that allows for installation of Phalcon in cPanel hosted sites. Information can be found here. The module is maintained in Github.

Dependencies

Although Phalcon does not binary link to other extensions it does use some of them to offer functionality. The extensions used are:

  • mbstring

  • mcrypt

  • openssl

  • PDO

  • PDO/Mysql

  • PDO/Postgresql

  • PDO/Sqlite

  • PDO/Oracle

  • Mongo

It is not necessary for all the above extensions to be present in the system that has Phalcon installed. You can only install the ones that meet your needs. For instance if you use a MySQL database, then you can only load PDO and PDO/MySQL ignoring the Oracle, SQlite, Postgresql and Mongo.

Need help?

Have a look at our support page for ways to get support. We will do our best to help you.


最新发布
linux下svn提交忽略某些文件... (173)
使用批处理来批量更新、提交SVN... (136)
linux查看目录文件大小命令 (145)
linux tar打包压缩排除某个... (134)
Linux tar压缩和解压 (192)
SVN子命令add用法浅析 (130)
热门博文
网友FBI探案:马蓉iPad惊人发现... (43345)
霍金携手俄罗斯富豪耗资1亿美元寻找外... (4747)
如何才能查看PHP内置函数源代码... (1209)
微信支付开发当前URL未注册的解决方... (574)
《谁为爱情买单》中的经典面试 ... (441)
让虚拟主机也用上SVN:适用于个人的... (395)
精华博文
[推荐]Centos7 安装配置 SVN (159)
easyswoole框架安装 (174)
php开启pecl的支持(推荐) (157)
1-10个恋爱表现:男朋友爱你程度到... (164)
女生喜欢你的10个程度,到第六个就可... (141)
Eclipse 没有Server选项... (211)
友情链接
我来忙 (110)