console command to start php serer code example Example: serve php file Open Terminal php -S localhost:8000