Articles in the system_administration category

  1. Optimizing Website Performance: Benefits of Using Gzip with Nginx

    Posted on in system_administration

    In today's fast-paced digital landscape, website performance is paramount. Users demand speedy loading times, and search engines reward fast-loading websites with higher rankings. As a web server, Nginx is renowned for its performance and scalability, but to further enhance your web application's efficiency, it's vital to utilize techniques like Gzip …

  2. 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 …

  3. 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 …

  4. 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 …
  5. 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 …

  6. 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 …

My Bookshelf

Reading Now

Other Stuff