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.
First, create a configuration file in
/etc/apache2/conf.d/ to hold your customizations.
Next, edit that file with your favorite file editor, and add your needed change, and save 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
Finally, restart Apache with the command:
Once the above have been completed your changes will be reflected.
More options can be found within the official Phusion Passenger Configuration Reference