说明:
操作系统:CentOS
php安装目录:/usr/local/php
php.ini配置文件路径:/usr/local/php/etc/php.ini
1、安装cphalcon
cd /usr/local/src
git clone git://github.com/phalcon/cphalcon.git #需要安装安装git软件包yum install git
cd /usr/local/src/cphalcon/build/php5/64bits #选择相应的php版本目录
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
2、配置php支持cphalcon
vi /usr/local/php/etc/php.ini #编辑配置文件,在最后一行添加以下内容
添加
extension=phalcon.so
:wq! #保存退出
3、重启php-fpm
service php-fpm restart
在phpinfo页面可以看到关于cphalcon的选项,说明安装成功。
至此,Linux下php安装cphalcon扩展教程完成。

» 转载请注明来源:系统运维 » Linux下php安装cphalcon扩展


