Matt Saladna has written 18 articles

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…

Problems deleting files

Overview FTP provides a convenient interface to quickly delete multiple files from a your site with minimal overhead. Problems can exist in multi-user environments where files are owned by one of many different users. Cause FTP abides by UNIX discretionary access controls (DAC) that restricts what files users can delete/modify/read. Without requisite permissions these files, owned…

Rewrite rules fail on subdirectories, subdomains, or addon domains

Overview Rewrite rules remap a URL to another location or resource accessible on a web site. These rules are located in .htaccess files. A common snippet looks similar to: RewriteEngine On RewriteCond %{REQUEST_FILENAME} ! -f RewriteRule ^(.*)$ index.php [QSA, L] When located anywhere else besides the document root of the primary domain name, rewrite rules will…

Handling table crashes

Overview MySQL, despite its ease of use and popularity has a dark side of instability and crashes. Communities have forked MySQL, now an Oracle subsidiary (that was once a Sun subsidiary…), spawning alternatives like Percona, Drizzle, and MariaDB to improve quality and keep MySQL a viable database server. Newer servers (platform version 4.5+) use alternatives like Percona…