官术网_书友最值得收藏!

Installing Phalcon

Now that we have installed all the required software, we will proceed with the installation of Phalcon. Before we continue, we must install some dependencies:

$ sudo apt-get install php5-dev libpcre3-dev gcc make php5-mysql

For Windows systems and more details about how to compile the extension on different systems, please check the latest documentation at http://phalconphp.com/en/download.

Now, we can clone the repository and compile our extension:

$ git clone --depth=1 git://github.com/phalcon/cphalcon.git
$ cd cphalcon/build
$ sudo ./install
$ echo 'extension=phalcon.so' | sudo tee /etc/php5/mods-available/phalcon.ini

$ sudo php5enmod phalcon
$ sudo service php5-fpm restart

If everything goes well, you should be able to see Phalcon in the list of PHP installed modules:

$ php -m | grep phalcon
主站蜘蛛池模板: 运城市| 南昌市| 吉安县| 琼结县| 陆川县| 虎林市| 松潘县| 庆安县| 仁怀市| 东海县| 离岛区| 孟津县| 阜南县| 泰顺县| 德昌县| 莒南县| 怀柔区| 石林| 甘德县| 揭西县| 镇赉县| 工布江达县| 弥渡县| 巴塘县| 汉源县| 鄂尔多斯市| 依安县| 洱源县| 石林| 察隅县| 墨竹工卡县| 玉树县| 华宁县| 什邡市| 南阳市| 湖州市| 辽宁省| 正安县| 龙岩市| 大安市| 久治县|