简体   繁体   English

EC2上的php-fpm错误:缺少流程管理器(静态,动态或按需)

[英]php-fpm error on EC2 : the process manager is missing (static, dynamic or ondemand)

I am trying to install nginx on Amazon EC2. 我正在尝试在Amazon EC2上安装Nginx。 The nginx part is running fine. Nginx部分运行正常。 But I am getting problem with php-fpm. 但是我遇到了php-fpm的问题。 When I run service php-fpm start I got error: php-fpm on EC2 Error : the process manager is missing (static, dynamic or ondemand). 当我运行服务php-fpm start时,出现错误:EC2上的php-fpm错误:缺少进程管理器(静态,动态或按需)。 I was following this tutorial: http://codingsteps.com/install-php-fpm-nginx-mysql-on-ec2-with-amazon-linux-ami/ . 我正在遵循本教程: http : //codingsteps.com/install-php-fpm-nginx-mysql-on-ec2-with-amazon-linux-ami/ I am not sure why I am getting this error. 我不确定为什么会收到此错误。 Can someone help me with installing php-fpm. 有人可以帮我安装php-fpm吗?

You need to add the pm option to your config file. 您需要将pm选项添加到配置文件中。 For example using ondemand process management: 例如,使用按需流程管理:

[example.com]
user = example
group = example
listen = /var/run/php5-fpm/example/sock
listen.owner = example
listen.group = www-data
listen.mode = 770
chdir = /srv/www/wp-content/example/
pm = ondemand
pm.max_children = 4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM