How to fix the «proc_open(): fork failed - Cannot allocate memory» failure on a Composer command?

getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors

It has really solved the problem for me: