When I launch the command php app/console server:run my application is served on localhost:8000 and isn't accessible with my local ip address 192.168.0.41:8000.
How can I do that?
I'm under MacOSX Maverick and I don't want to use apache or nginx. I just want a simple step by step to do it with the PHP built-in embedded server.
Thanks for your help.
for Symfony 4 you can run
php -S 127.0.0.1:8000 -t public
If someone search the command is:
php app/console server:run 0.0.0.0:8000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With