Step by step guide on how to setup your own mining pool

This is a step by step guide on how to setup your own mining pool for things like bitcoin, litecoin, and other crypto-currencies. Why the update? MPOS (Mining Portal Open Source) is very old now and NOMP (Node Open Mining