Skip to content

Reworded the Setup article about the local Symfony server #11747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,37 @@ In other words, your new app is ready!
Running your Symfony Application
--------------------------------

On production, you should use a web server like Nginx or Apache
(see :doc:`configuring a web server to run Symfony </setup/web_server_configuration>`).
But for development, it's convenient to use the :doc:`Symfony Local Web Server <setup/symfony_server>`.
On production, you should use a web server like Nginx or Apache (see
:doc:`configuring a web server to run Symfony </setup/web_server_configuration>`).
But for development, it's more convenient to use the
:doc:`Symfony Local Web Server <setup/symfony_server>`.

.. note::
This local server provides support for HTTP/2, TLS/SSL, automatic generation of
security certificates and many other features. It works with any PHP application,
not only Symfony projects, so it's a very useful development tool.

If you want to use a virtual machine (VM) with Vagrant, check out
:doc:`Homestead </setup/homestead>`.

Move into your new project and start the server:
Once installed, move into your new project and start the local web server:

.. code-block:: terminal

$ cd my-project
$ symfony server:start

Open your browser and navigate to ``http://localhost:8000/``. If everything is working,
you'll see a welcome page. Later, when you are finished working, stop the server
by pressing ``Ctrl+C`` from your terminal.
Open your browser and navigate to ``http://localhost:8000/``. If everything is
working, you'll see a welcome page. Later, when you are finished working, stop
the server by pressing ``Ctrl+C`` from your terminal.

.. tip::

If you're having any problems running Symfony, your system may be missing
some technical requirements. Use the :doc:`Symfony Requirements Checker </reference/requirements>`
tool to make sure your system is set up.

.. note::

If you want to use a virtual machine (VM) with Vagrant, check out
:doc:`Homestead </setup/homestead>`.

.. tip::

If you're using a VM, you may need to tell the server to bind to all IP addresses:
Expand Down