To reduce disk writes or silence access logs on a local lab server, update your Apache configuration in /etc/apache2/ (note that Ubuntu/Debian Apache 2.4 uses conf-available/ and 000-default.conf instead of legacy conf.d/ and default):
1. Disable the global vhost access log config:
sudo a2disconf other-vhosts-access-log
2. Inside your VirtualHost files (/etc/apache2/sites-available/000-default.conf and default-ssl.conf), comment out CustomLog:
Operational Warning: You can silence errors with ErrorLog /dev/null on disposable test VMs, but in staging or production keep ErrorLog active (or raise LogLevel warn) so crashes, permission failures, and TLS errors remain diagnosable.
Alongside swap, keeping a tiny VM responsive came down to caching and restraint: placing Varnish in front of Apache absorbed static/anonymous reads before spawning memory-heavy worker processes, while PHP bytecode caching (APC back then, replaced natively by PHP OPcache today) avoided recompiling scripts on every request.
Cloud & Modern Linux Caveats: Heavy swapping on network-attached EBS volumes adds latency and burns through storage IOPS burst credits, so keep vm.swappiness=10 and treat swap strictly as an OOM safety net. On modern Linux kernels, compressed in-memory swap with zram is much faster and avoids unnecessary disk writes, while older tools like prelink are deprecated because of ASLR.
With lightweight agents, SNMP polling for routers and switches, flexible triggers, and auto-discovery, Zabbix is still one of my go-to open-source tools for monitoring Linux servers and network hardware.
There are major speed benefits to image optimization using optipng for PNGs, gifsicle for GIFs, and jpegoptim for JPEGs. Optimized graphics transfer faster and improve perceived load times. Below, optipng and gifsicle optimize PNG/GIF files losslessly, whereas adding --max=85 or ImageMagick -quality 80 applies bounded lossy compression to JPEGs (omit --max=85 if you only want lossless metadata stripping).
Run these commands inside the target directory as the user who owns those images (note the quoted '*.ext' globs so the shell never expands them prematurely):