Articles in the system_administration category

  1. Using Memcached for PHP Session Storage

    Posted on in system_administration

    Effective session management is crucial for web applications to maintain user state and provide a seamless experience. PHP offers several session storage options, and one of the most efficient and scalable choices is Memcached. In this blog post, we'll explore how to use Memcached for PHP session storage, the benefits …

  2. OpenSSH: Using a Bastion Host

    Posted on in System Administration

    Quick and dirty OpenSSH configlet here. If you have a set of hosts or devices that require you to first jump through a bastion host, the following will allow you to run a single ssh command:

    Host *
        ProxyCommand ssh -A <bastion_host> nc %h %p
    

    Change the Host * line to best …

  3. Cache has broken packages, exiting

    Posted on in system_administration

    I've been getting the following error from cron.daily in my inbox lately:

    /etc/cron.daily/apt:
    Cache has broken packages, exiting
    

    That's an annoying email to get everyday. I decided I would apt-get clean and that would probably fix the problem:

    $ sudo apt-get clean
    $ sudo apt-get dist-upgrade
    Reading package …
  4. Removing a Single Line from known_hosts With sed

    Posted on in System Administration

    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 doing …

  5. Bypass RBL Check in Exim

    Posted on in System Administration

    Although I do not use Exim myself, I have clients that do. Recently, we noticed that it was taking more than 20 seconds for their SMTP banner to display when initiating checks from the monitoring server. Connecting to the server locally (on any interface IP address) did not suffer the …

  6. Enable gzip in Nginx

    Posted on in System Administration

    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 …

  7. Magento Home Page Returns 404 Status Code

    Posted on in System Administration

    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 …

Slaptijack's Koding Kraken