While i\'m deploying my rails application through capistrano to my CentOS server all the time i have been receiving this error:
*** ERROR: Phusion Pas
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"
}