php54-fpm "warning: user apache does not exist - using root"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IUS Community Project |
Fix Released
|
Undecided
|
Carl George |
Bug Description
If you install/upgrade php54-fpm and Apache is not installed (which is usually the case if you are using Nginx), the php54-fpm prints this warning:
"warning: user apache does not exist - using root"
What I noticed is that this sets the owner of /var/log/php-fpm directory to owner root and 770 mode:
$ ls -ld /var/log/php-fpm/
drwxrwx---. 2 root root 4096 Apr 4 15:58 /var/log/php-fpm/
This is a problem because php-fpm cannot write anything into that directory because of this. And the biggest problem is that if you set permissions and owner to the user which runs php-fpm (which is nginx in my case) after the package is upgraded, it overwrites those permission again.
This same thing happens with php55u-fpm.
I was able to reproduce the issue you saw. We are looking into an appropriate fix.