Running built-in web server
suggest changeAs of version 5.4, PHP comes with a built-in server. It can be used to run an application without installing another HTTP server such as nginx or Apache. The built-in server is only for local development and testing.
It can be run with the command php -S <host>:<port>.
To test it create index.php file containing
<?php
echo "Hello World from built-in PHP server";
and run command php -S localhost:8080
Now you should be able to see the content in a browser. To check this, navigate to http://localhost:8080
Every access should result in log entry written to terminal
[Mon Aug 15 18:20:19 2016] ::1:52455 [200]: /
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents