ubuntu 13 安装php phalcon 命令

sudo apt-get install php5-dev libpcre3-dev gcc make php5-mysql git-core autoconf

### Do these in any folder you want
git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install

### Create the extension ini file in /etc/php5/mods-available    
echo 'extension=phalcon.so' | sudo tee -a /etc/php5/mods-available/phalcon.ini
cd /etc/php5/mods-available    
sudo php5enmod phalcon  //这句不能漏掉

### Restart apache
sudo /etc/init.d/apache2 restart

Tagged: , ,

Comments are closed.