Why is this permissions error occurring with mod_passenger.so?

前端 未结 2 415
孤独总比滥情好
孤独总比滥情好 2020-12-30 07:13

I\'m setting up a production RHEL 6 server with RVM and Passenger. I\'ve gotten through installing RVM (to my home dir), installing Passenger, and adding the required lines

相关标签:
2条回答
  • 2020-12-30 08:04

    $ sudo setenforce 0

    helped me

    hope it help others!

    UPDATE

    i have to say that above solution is temporal (until reboot)

    so, as far as this answer has popularity let me show how to disable SELinux at all...

    here it is:

    run

    $ sudo vi /etc/sysconfig/selinux
    

    or

    $ sudo vi /etc/selinux/config
    

    then find this line

    SELINUX=enforcing
    

    and change it to

    SELINUX=disabled
    

    save selinux config.

    now SELinux is fully disabled.

    cheers

    0 讨论(0)
  • 2020-12-30 08:12

    It turned out to have to do with SELinux.

    The Passenger docs discuss it here.

    After you install Passenger, find the Passenger root...

    passenger-config --root
    

    Then run this...

    chcon -R -h -t httpd_sys_content_t /path-to-passenger-root
    
    0 讨论(0)
提交回复
热议问题