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错误

 



相关文章:

  • 2021-08-26
  • 2021-08-29
  • 2022-12-23
  • 2021-08-24
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-12-04
  • 2021-07-27
  • 2022-12-23
相关资源
相似解决方案