techrobatics.com

Sysadmin Ex Machina

Browsing Posts tagged apache2

This, I got from pixelbeat.org. I’m reposting it here, so that I never ever lose it. #!/usr/bin/env python # Try to determine how much RAM is currently being used per program. # Note per _program_, not per process. So for example this script # will report RAM used by all httpd process together. In detail [...]

This bit of bash script tells me when the swap file on my servers exceeds a set maximum. I use it to let me know when storage becomes an issue on my site: #!/bin/bash # Notify me one time if my swap is over MAXSWAP and log the # swap usage as well in SWAPLOG. [...]

Place a copy of this block at the bottom of your apache2.conf. Reproduce it for EACH directory, on which you want to enable the rewrite rules (each wordpress root instance). < Directory /var/www/wordpress> Options Indexes FollowSymlinks MultiViews < IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /wordpress/ <– If you want to point somewhere else RewriteCond %{REQUEST_FILENAME} !-f [...]

Under the covers, Mac OSX is a not quite clone of freeBSD, known as “Darwin”. The mascot is appropriately a platypus, both because the platypus is a nod to the famous Charles Darwin, and because the folks at Apple have outfitted Darwin with all sorts of customizations cannibalized from the old NeXT project that confound [...]