admin has written 156 articles

Changing EOL markers

Overview End-of-line (“EOL”) markers indicate a discontinuation of a current line and beginning of a new line. EOL markers are akin to the return (“⏎”) key on a typewriter and, depending upon operating system, are interpreted as a single or combination of characters. On Windows On Windows operating systems, an EOL is marked by two characters:…

Pyramid Quickstart

Overview Pyramid is a Python framework that is the spiritual successor to Pylon and Zope, frameworks popular in the mid-to-late 2000s. Pyramid is supported with on v6+ platforms using any Python version from 2.7 onward with Passenger. Quickstart All commands are done from the terminal for convenience. PREREQUISITE: create a suitable Passenger-compatible filesystem layout cd /var/www…

Installing Express

Overview Express is a Node.js framework inspired by Sinatra for Ruby: it’s based on minimalism with a penchant for performance. Express is part of the MEAN fullstack: MongoDB, Express, Angular.js, and Node.js. MongoDB may be setup in a separate guide. Express is supported on all v6+ platforms using Passenger to manage isolated processes. Quickstart All steps are done from the terminal:…

Creating a subdomain

Overview A subdomain is an extension of your primary domain or an addon domain that can serve as both an e-mail domain and website location. Creating a subdomain Configuration parameters A subdomain may be added within the control panel under Web > Subdomains. A subdomain may exist in a few flavors and likewise function differently: Subdomain…

Authorizing hostnames to handle e-mail

Overview A hostname, combination of optional subdomain and mandatory domain, may be configured to act as an e-mail domain, ie. receive e-mails on that host. These hostnames are added via Mail > Mail Routing. For any domain present there, the server will act as the final destination bypassing MX lookups. This will result in problems if…

Running Memcached

Overview Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. It is available on newer platforms (v6+) without any additional compilation from source. Accounts with terminal access are eligible to use Memcached. Quickstart From the terminal, run: memcached -l 127.0.0.1 -p PORT where…

Flask Quickstart

Overview Flask is a Python microframework for building web sites with minimal overhead. Think of it as a lightweight version of Django with fewer features, but better speed. Flask is supported on v6+ platforms using Passenger. Quickstart All steps are done from the terminal. While it may be possible to deploy a Flask application without using terminal,…

E-mails sent from Django appear as webmaster@host.domain.tld

Overview E-mails sent from a Django application may use “webmaster@host.domain.tld” or another erroneous address as the From field. Cause ServerAdmin values are not set in Apache configuration for virtual hosts to prevent unintentional information leakage. Solution Set DEFAULT_FROM_EMAIL and SERVER_EMAIL in your Django settings file. An example configuration follows: EMAIL_HOST=’localhost’ EMAIL_PORT=’587′ EMAIL_HOST_USER=’myadmin@mydomain.com’ EMAIL_PASSWORD=’mysmtppassword’ DEFAULT_FROM_EMAIL=EMAIL_HOST_USER SERVER_EMAIL=EMAIL_HOST_USER Replace EMAIL_HOST_USER and EMAIL_PASSWORD values with your…