# php -S localhost:8000 -t /path/to/folder/directory
Above command give output like below
PHP 5.6.4-4ubuntu6 Development Server started at Thu Apr 30 15:10:00 2015
Listening on http://localhost:8000
Document root is /var/www/html
Press Ctrl-C to quit.
Now you can open the localhost:8000 in your browser to check the webpage.
Above command give output like below
PHP 5.6.4-4ubuntu6 Development Server started at Thu Apr 30 15:10:00 2015
Listening on http://localhost:8000
Document root is /var/www/html
Press Ctrl-C to quit.
Now you can open the localhost:8000 in your browser to check the webpage.