how to run php in localhost in mac command code example Example: run php server mac php -S localhost:9000