April 26 2019

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.

Sobitmaan Shrestha
Sobitmaan Shrestha

Sobitmaan holds 4 years of technological experience. He heads project management in Pracas Infosys. With his great interest in Data Analytical skills he makes major decision of marketing & planning.