start php server terminal command code example Example: run a server php terminal $ cd ~/public_html $ php -S localhost:8000