Passenger application layout

Overview All Passenger applications require a compatible filesystem layout to launch and manage a Passenger-backed application. A layout consists of 4 features: Startup file Passenger loads this file to start the application Startup file names differ by application type (Python, Ruby, Node.js, Meteor) Document root folder called public/ all static content goes here (images, JavaScript, CSS) Apache configuration…

Changing Ruby versions

Overview Newer hosting platforms, v6+, support multiple Ruby versions through rvm. This enables you to run multiple versions of Rack and Rails using any available Ruby interpreters. Currently, versions 1.8 to 2.2 are supported. Important: Avoid using 1.8, except to shim an older application with an intent to upgrade. 1.8 is deprecated and contains several…

Accessing web page views and error messages

Site statistics can be viewed, in raw form, through access logs available via /var/log/httpd/access_log. Likewise, errors that may arise from improperly-configured PHP scripts or general diagnostics are available in error logs via /var/log/httpd/error_log. These errors are typically manifested as 550, 500, 403, or status codes also more commonly referred to as “Internal Server Error”. Java…