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