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