How to service symfony application on 192.168.xx?

When I run the php app / console server: command, run my application, which will be sent to localhost: 8000 and not accessible with my local IP address of 192.168.0.41:8000.

How can i do this?

I am under MacOSX Maverick and I do not want to use apache or nginx. I just want to do this step by step with the built-in embedded PHP server.

Thank you for your help.

+7
symfony
source share
2 answers

If someone is looking for a command:

php app/console server:run 0.0.0.0:8000 
+20
source share

Team:

 php bin/console server:run 0.0.0.0:8000 

.. Note the "bin" instead of the "app" before the slash.

0
source share

All Articles