Each time I reinstall the OS on my laptop, I have to struggle with the web server installation and configuration. Because I have minimal hardware and I like my environment clutter free.
So I used to install each package one by one and I had to google a couple of times. One of my colleague from weDevs wrote a cool script to install everything at once. No googling required!
Here is the link to the repo
It has composer included. So if you need to install WP CLI, then it will ease the process too.
Please let me know if you have any questions about servers 🙂