Could not start php-fpm - "cannot get uid for user" apache ""

In the new AWS Linux HVM window, I ran the following commands:

sudo yum update sudo yum install git nginx php-fpm 

Then I tried sudo service start php-fpm , but I got the following error:

 Starting php-fpm: [10-Sep-2014 20:52:39] ERROR: [pool www] cannot get uid for user 'apache' [10-Sep-2014 20:52:39] ERROR: FPM initialization failed 

Where am I mistaken, and when I run as root, where does the apache user come from ?!

+6
source share
1 answer

The apache user comes from the php-fpm.conf . It does not matter that you run it as root, the service starts as the user configured in this file.

Locate the php-fpm.conf . It should be somewhere in /etc Edit and change the lines

 user = apache group = apache 

to

 user = www-data group = www-data 

I assume your default nginx configuration also uses the www-data user.

+10
source

Source: https://habr.com/ru/post/975093/


All Articles