Question
How do you modify the Phusion Passenger environment?
Answer
When running a Ruby application using the cPanel-provided Ruby via Phusion Passenger, you may find that you need to adjust the underlying environment to allow your application(s) to properly function. The steps below can be used to accomplish these modifications.
-
Create a configuration file in
/etc/apache2/conf.d/to hold your customizations:# touch /etc/apache2/conf.d/your_filename.conf
- Open the file with your favorite file editor
-
Add your needed change to the file. For example, to set the Start Timeout for scripts, add the PassengerStartTimeout # directive:
# echo "PassengerStartTimeout 600" >> /etc/apache2/conf.d/your_filename.conf
- Save the file
-
Restart Apache with the command:
# /scripts/restartsrv_httpd
Once the above have been completed, your changes will be reflected.
More options can be found within the official Phusion Passenger Configuration Reference:
Comments
0 comments
Article is closed for comments.