0

I'm on CentOS6.6, installed "Akeneo" and all went well.

Installed into /home/pim so the actual location for nginx to use is the web directory where app.php is located.

Doing a namei on /home/pim/web/app.php shows:

f: /home/pim/web/app.php
dr-xr-xr-x root  root  /
drwxr-xr-x nginx nginx home
drwxrwxrwx nginx nginx pim
drwxr-xr-x nginx nginx web
-rwxrwxr-x nginx nginx app.php

Nginx is using:

user nginx nginx;
worker_processes  4;

And PHP-FPM is using:

listen.owner = nginx
listen.group = nginx
listen.mode = 0660

; Unix user/group of processes
user = nginx
group = nginx

Anyonan idea on why this isn't working? I've been playing for hours with the permissions now. Hope someone can point me in the right direction.

3
  • If SELinux is in Enforcing mode, it won't let you do that... Try changing this boolean to true: setsebool -P httpd_enable_homedirs on Apr 30, 2015 at 11:53
  • Ahh you're a hero, it indeed was in enforcing mode. Thanks! Apr 30, 2015 at 12:00
  • Sweet, I have expanded my comment into an answer :) Apr 30, 2015 at 12:16

1 Answer 1

3

If SELinux is in Enforcing mode, it won't let you do that... Try changing this boolean to true:

setsebool -P httpd_enable_homedirs on

Please note, I don't recommend disabling SELinux!
There are many tools out there which can help you use SELinux to secure your system.

2
  • 1
    You rock! I literally looked for this solution for hours before realizing the problem was SELinux not being able to access the home directories. Thanks! Jul 13, 2022 at 11:25
  • Note that I needed to set httpd_read_user_content to on as well to get it working.
    – BenMorel
    Jan 5 at 21:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .