Passenger/mod_rails fails to initialize in Fedora 12 when starting Apache

后端 未结 5 1806
难免孤独
难免孤独 2020-12-16 02:37

I am in the process of setting up a server to run a Ruby on Rails application on Fedora 12, using Passenger.

I am at the stage where I\'ve installed Passenger, set i

5条回答
  •  余生分开走
    2020-12-16 03:13

    I did the same as Fred, except that instead of doing it one error at a time:

    1. Go into permissive mode by running setenforce 0
    2. Restart apache, and hit your site and use it for a while as normal
    3. Run grep httpd /var/log/audit/audit.log | audit2allow -M passenger
    4. semodule -i passenger.pp
    5. Go back to enforcing mode by running setenforce 1
    6. Restart apache and test your site - hopefully it should all be working as before!

    Note that this is basically a specific example of the procedure on the Centos SELinux help - check it out.

提交回复
热议问题