Forrest logo
back to the php tool

php:server:start

Starting the built-in web server
$ php -S localhost:8000
try on your machine

This command starts a PHP built-in development server on the local machine at the address "localhost" and the port number "8000". It's used for developing and testing PHP applications locally. When this command is executed, the server will listen for incoming HTTP requests on the specified port number, serving the content of the current directory where the command was executed by default.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How to start a php server?
  • how do i serve .php on localhost?
back to the php tool