Run A PHP Server On A Mac Using Terminal
Its quite easy to run PHP server in Mac without installing any third party softwares like XAMPP . Mac has inbuilt system to run PHP scripts. The simple process can run PHP Server very easily.
Below are the process :
1. Open Terminal : (Press Command ⌘ + Space Bar )
2. Navigate to the folder.
3. Type “php -S localhost:8080″without quotation marks
4. Browse “localhost:8080” in your browser, its started.