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