how to run php file with apache server. mac code example Example: run php server mac php -S localhost:9000