mac localhost php file run with terminal code example Example: run php server mac php -S localhost:9000