Set up Apache, PHP, MySQL, PHPMyAdmin on macOS Sierra

Why not just MAMP?

Becaus i was running low on space. MAMP takes about 1.8GB+ on my current MacBook Air with 128GB of base storage.. I am assuming this local setup takes much less space. XAMPP also takes about 2GB+, which is too much when i just want a simple local server with PHP.

You will need to run some commands as the root (super) user. You can switch to root with sudo -s or sudo su -

Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.
A project of 29 CONCEPTS SMC-PVT LTD. Created with by Aamnah. All content is licensed under Creative Commons CC BY-SA 4.0