The ctrl+c ctrl+v paradise!

User Tools

Site Tools


Start a Server

You can run a PHP web server using the terminal:

php -S localhost:8000

This will start a PHP web server locally on the port 8000, meaning using the link http://localhost:8000, to have your web server accessible remotely:

php -S

This will make your web server accessible from your local network using your local IP, to have it accessible from the internet as a whole using your public IP, forward the port 8000 to your machine from your router.

php/start_a_server.txt · Last modified: 2022/08/04 15:49 by zod

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki