我一直在線下面試着設置我的rails應用程序。 它看起來像有一個權限配置,我試圖解決它沒有任何運氣。乘客Apache2 CentOS RVM權限在啓動時被拒絕
我正在使用Ruby 2.3.0。 我有一個用戶稱爲部署(即執行Capistrano任務)和另一個sudoer jwang。我甚至通過兩個用戶安裝了rvm作爲多用戶安裝。
這是日誌中的錯誤:
App 1780 stderr: /etc/profile.d/rvm.sh: line 35: /home/deploy/.rvm/scripts/rvm: Permission denied
App 1780 stderr: /bin/bash: /home/deploy/.bash_profile: Permission denied
App 1780 stdout:
App 1780 stderr: *** ERROR ***: Cannot execute /home/deploy/.rvm/gems/ruby-2.3.0/wrappers/ruby: Permission denied (13)
這是我的地盤我當前的配置文件。
<VirtualHost *:80>
ServerName creste.ca
# Tell Apache and Passenger where your app's 'public' directory is
DocumentRoot /var/www/creste/current/public
PassengerRuby /home/deploy/.rvm/gems/ruby-2.3.0/wrappers/ruby
# Relax Apache security settings
<Directory /var/www/creste/current/public>
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
Require all granted
</Directory>
任何有識之士將感激理解。
什麼命令會導致錯誤? –
當我嘗試使用sudo systemctl restart httpd啓動服務器時,我從瀏覽器中查看該頁面,它告訴我查看日誌。 –