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

后端 未结 5 1770
难免孤独
难免孤独 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 02:50

    I tried what Dan Sketcher and Fred Appleman suggested, i.e. repeat the following:

    yum install setroubleshoot
    echo > /var/log/audit/audit.log # clear irrelevant errors
    cd ~
    service httpd restart # try booting passenger -- audit.log now shows the relevant permission errors
    tail -f /var/log/httpd/error_log # check that passenger is still failing due to permission errors
    sealert -a /var/log/audit/audit.log > selinux-diag.txt # translate the permission errors
    # read and check that you are happy with selinux-diag.txt 
    # and either follow its specific advice, or if it just wants you to grep into audit2allow, then:
    cat /var/log/audit/audit.log | audit2allow -M mypol  # grant everything just denied
    semodule -i mypol.p # commit new permissions
    

    But after doing this 5 or 6 times, I kept coming up against new errors, and some of the same errors came up even after I had tried to permit them with "audit2allow".

    In the end I just turned off SELinux, with:

    echo 0 >/selinux/enforce
    

提交回复
热议问题