Slaptijack Title

Archive for the ‘System Administration’ Category

Removing a Single Line from known_hosts With sed

Ever so often, something changes on the network, and you find that your .ssh/known_hosts file has gotten out of date. Usually this happens after an upgrade or device change. You'll get the rather ominous warning that REMOTE HOST IDENTIFICATION HAS CHANGED! If you are confident that someone isn't...

Read More →

Categories: System Administration

Changes to OS X TCP Performance Tuning

While updating the TCP tuning parameters on one of my OS X 10.11 servers, I noticed that my existing OS X TCP Performance Tuning page had gotten out of date. The page was nearly eight years old, so it is no surprise that happened. I updated the page in place since that is the definitive page loca...

Read More →

Categories: System Administration

Using Redis for PHP Session Storage

I have written previously regarding using Redis for Magento session storage. You can get the same benefits of using Redis for session storage (reduced disk I/O, automatic key eviction) for any PHP application by making a quick change to a couple of settings in your php.ini. I assume you already h...

Read More →

Categories: System Administration

Enable gzip in Nginx

If you have ever used any tool to optimize a web page, you know that compressing the return traffic to the client is a big win. In nginx, this is done with the gzip module. The easiest thing to do is add gzip on; to the http stanza in your nginx.conf and be done with it. By default, this will ena...

Read More →

Categories: System Administration

Magento Home Page Returns 404 Status Code

Naturally, I ran into this problem in the middle of the night when the client was asleep and I had no access to the Magento administrative interface. The short story is that after running a re-index of the site, the home page began returning a 404 error status. A bit of Googling indicated we were...

Read More →

Categories: System Administration