How to fix the «Can't create directory var/generation» issue?

See also: