ubuntu10.04 安装php-fpm

ubuntu10.04 官方没有php-fpm的源 10.10开始已经有了

加入非官方的源

/etc/apt/source.list

deb http://ppa.launchpad.net/jdub/devel/ubuntu maverick main

deb http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main
deb-src http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main

安装

sudo apt-get update
sudo apt-get install php5-fpm

启动

sudo /etc/init.d/php5-fpm restart


在nginx配置中fastcgi-params中需加入

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

否则会报404错误

 



posted on 2011-10-08 20:12  bluefrog  阅读(1632)  评论(0编辑  收藏  举报