You can start the PHP development server in versions 5.4 and higher using
php -S localhost:8008
I donβt think Apache supports anything like that (being the web server itself), but for the PHP server itβs enough to test scripts, including serving static content.
source share