2

I have setup an AWS EC2 linux instance and installed the following:

httpd24 php71 php71-fpm php71-mysqlnd mod24_ssl fcgi mod24_fcgid 

I am wanting to run apache 2.4, php 7.1 and php-fpm. In the below error I am also not understanding what 'nginx' is trying to do, I didn't think I had installed anything to run on nginx, if I am running apache.

ERROR: [pool www] cannot get uid for user 'nginx': Success (0) 

In php-fpm.conf, uncommented I have this

pid = /var/run/php-fpm/php-fpm-7.1.pid 

In my php-fpm.conf I do not see

user = apache group = apache 

But I do see them in /etc/php-fpm.d/www.conf

Can somebody please help me sort this out.

Thank You

2 Answers 2

2

Resolved found in the /etc/php-fpm.d/www.conf, I found this line.

listen.acl_users = apache,nginx 

Solution - change to

listen.acl_users = apache 
1
  • I had the same issue but in reverse; I have nginx and making it = nginx like your answer fixed it. You encounter this issue if you use groupdel on apache or nginx postinstall. Commented Jul 5, 2020 at 18:27
1

I resolved this by adding user www-data and adding www-data to group www-data

sudo adduser www-data sudo usermod -a -G www-data www-data sudo systemctl restart php-fpm 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.