Skip to content

Installation error (AlmaLinux 9) potentially linked to SELinux #2630

@thbar

Description

@thbar

Hello,

I'm following the documentation at https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/installations/oss/ownserver/ruby/nginx/ to install passenger + nginx on AlmaLinux 9 (and later RHEL 9).

It took be a bit of time to figure out that the execution of the service failed (and why):

What I saw after following the installation steps was:

[vagrant@vagrant-worker-rhel ~]$ sudo cat /var/log/nginx/error.log
2025/09/27 12:46:11 [emerg] 17093#17093: mkdir() "/usr/share/nginx/passenger_temp" failed (13: Permission denied)

If I do this, the problem disappears and the web server boots:

sudo setenforce 0
sudo systemctl restart nginx

(of course this is only a temporary test)

Is it a known problem? What is the best / recommended solution? (e.g. using semanage to explicitely authorize access to /usr/share/nginx/passenger_temp ?)

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions