admin has written 156 articles

I need to restart the web server…

Overview During certain situations you may become confused with what is wrong with your site. For example, moving WordPress or Drupal to another location or even misplacing files on your web site may lead to an erroneous conclusion that the web server must be “restarted” to clean its cache or memory usage. When is a manual…

Reclaiming process slots

Overview When trying to redeploy a Passenger process, Passenger may refuse deployment, because you have maxed out on available process slots. Terminating the process will free a connection slot and permit Passenger to launch a new process. Symptoms Upon launching an application after restarting, the app will hang and log an error similar to: […

Viewing launcher errors

Overview Applications launched by Passenger on v6+ platforms may emit output on stdout or stderr channels. Any output emitted is logged to an aggregate log called passenger.log in /var/log. Important: since these logs are combined among all accounts using Passenger, never output anything confidential to stdout or stderr when launched using Passenger. Once an application is up and…

pip install fails with “Permission denied” on Python 3+

Overview Python’s integrated package manager, pip, fails to install packages when Python 3.0 and above is used raising a PermissionError. Below is an abbreviated sample output: [myadmin@sol]$ pip install django Downloading/unpacking django Installing collected packages: django Cleaning up… Exception: Traceback (most recent call last): File “/.socket/python/python3.4/site-packages/pip/wheel.py”, line 205, in clobber os.makedirs(destdir) File “/.socket/python/python3.4/os.py”, line 237,…

Jailing users

Overview A jailed user is a user that logins into a FTP server and can only access files and folders within a designated location. Other folders on the server are isolated from this user and, therefore, inaccessible. Jailing an existing user Login to the control panel Visit User > Manage Users. Select the user to jail, click the Edit…

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…

Passenger-supported apps

Overview Passenger supports Python, Ruby, Node.js, Meteor as well as any application built using this technology. In creating several of the articles in this knowledgebase, we also created a very basic application to guide during writing. These applications are up and running under a sandbox domain and represent just a sliver of the applications that you…

Running Meteor

Overview Meteor is a web framework written on top of Node.js. Meteor hooks into Passenger for seamless process launching and flexible, agile scalability. Meteor requires terminal access to use. This guide covers launching Meteor on a v6+ platform. Quickstart PREREQUISITE: follow the MongoDB tutorial to setup MongoDB. Install Meteor from the terminal: cd ~ curl https://install.meteor.com/ | sh…

Installing Ghost

Overview Ghost is a gorgeous blogging platform supported on Developer+ accounts on v6+ platforms. Ghost requires terminal access to deploy and hooks into Passenger affording simple process management.   Quickstart This guide is designed to get Ghost up and running with the fewest steps. Ghost will be SQLite as a database backend, but you might…