Docker Compose: A Local PHP and MySQL Stack
A PHP container needs a database, an address to reach it, and a reason to believe it is ready. Here is a complete local stack that wires those pieces together.
Loading...
Small systems, durable command-line tools, and the pleasure of things that can be understood.
Page 2 of 2
A PHP container needs a database, an address to reach it, and a reason to believe it is ready. Here is a complete local stack that wires those pieces together.
A Docker walkthrough from 2015: building an Ubuntu image with Nginx, PHP-FPM, and supervisor, then starting and entering the container. Preserved as a historical example.
Linux can report “No space left on device” even when df -h shows plenty of free disk space. One common cause is inode exhaustion: the filesystem can still store bytes, but it cannot create more files.
A compact, current recipe for adding a swap file on Ubuntu: create the file, protect permissions, enable it, persist it in fstab, verify it, and know how to roll it back.
It is always pleasant to start a project from scratch, create its repository yourself, define the coding style accepted in it, and much else. But sometimes we inherit difficult children with a heavy past: mixed tabs and spaces, different line endings, and encodings.
A short practical guide to ~/.ssh/config: create readable SSH aliases, pin the right user, port, and key, verify the final config, and avoid common agent-forwarding mistakes.
An archived 2012 MySQL password reset recipe. The original commands are preserved for reference and should not be used on modern MySQL.
The original Ubuntu PPA recipe from 2012, with its historical package names preserved and a note pointing to current Git installation guidance.
There is a useful thing in *nix systems called command shortcuts, or aliases. Almost everyone has probably thought about this while typing another long path to some command.