Search code snippets, questions, articles...

Start php server from terminal on MacOS

While developing an application in PHP, you may need to run the application locally first. Below is the command that can be used to run the PHP from the terminal window on MAC.
php -S locahost:8080

Using this command you can start PHP server on any location.

Was this helpful?
Programming Feeds
Learn something new everyday on Devsheet