CentOS *** ERROR: Phusion Passenger doesn't seem to be running

南楼画角 提交于 2019-12-01 18:45:36

The problem seems to be systemd private temp feature, you can disable that for httpd:

mkdir /etc/systemd/system/httpd.service.d
echo "[Service]" >  /etc/systemd/system/httpd.service.d/nopt.conf
echo "PrivateTmp=false" >> /etc/systemd/system/httpd.service.d/nopt.conf
systemctl daemon-reload
systemctl restart httpd

Passenger 5.0 no longer use /tmp for status information so it should work out of box even on private temps.

Finally i resolved my issue. I have done two things.

Firstly i created new temp folder in my home directory. Then inside Apache config file i added

PassengerInstanceRegistryDir /home/userr/instancetemp

Then i pushed this to my env path with

echo 'PASSENGER_INSTANCE_REGISTRY_DIR=/home/userr/instancetemp' >> ~/.bash_profile

I think this is enough but i added also this path to my capistrano config

set :default_env, { 
  "PASSENGER_INSTANCE_REGISTRY_DIR" => "/home/userr/instancetemp"
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!