我試圖在與乘客的Apache2下的Fedora 19上運行Ruby on Rails的,我在日誌的Apache +乘客 -/tmp目錄權限被拒絕
[Tue Feb 25 09:37:52.367683 2014] [passenger:error] [pid 2779] * Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Cannot change the directory '/tmp/passenger.1.0.2779/generation-1/buffered_uploads' its UID to 48 and GID to 48: Operation not permitted (errno=1)
該目錄(/tmp/passenger.1.0得到這個錯誤。 2779)甚至不存在。我認爲這個問題與selinux有關。我試圖解決它大約4個小時。 Httpd運行在用戶apache和組apache下,我試過
cat /var/log/audit/audit.log | grep passenger | audit2allow -M
passenger semodule -i passenger.pp
但仍然沒有。
手動創建此文件 「/tmp/passenger.1.0.2779/generation-1/buffered_uploads」 充分的權限。一次試一試。 –
不能正常工作,/tmp/passenger.1.0.xxxx和xxxx每當我運行服務器時都會有所不同 – FuF
您的乘客以sudo用戶身份運行嗎? –