From 57d7b1a5f643ad1286f6066c0c1e7d4042753640 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 8 Dec 2017 18:02:31 +0100 Subject: [PATCH 1/2] Simplify the setup article --- setup.rst | 39 ++++++++------------------------------- 1 file changed, 8 insertions(+), 31 deletions(-) diff --git a/setup.rst b/setup.rst index b2d0380abb4..92eac2f936e 100644 --- a/setup.rst +++ b/setup.rst @@ -49,8 +49,8 @@ First, move into your new project and install the server: .. code-block:: terminal - cd my-project - composer require server --dev + $ cd my-project + $ composer require server --dev To start the server, run: @@ -62,6 +62,12 @@ Open your browser and navigate to ``http://localhost:8000/``. If everything is w 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 ` + tool to make sure your system is set up. + .. tip:: If you're using a VM, you may need to tell the server to bind to all IP addresses: @@ -89,35 +95,6 @@ Your project already has a sensible ``.gitignore`` file. And as you install more packages, a system called :ref:`Flex ` will add more lines to that file when needed. -Troubleshooting: The Requirements Checker ------------------------------------------ - -If you're having any problems running Symfony, your system may be missing some -`technical requirements`_. Symfony has a "Requirements Checker" tool that you -can use to easily make sure your system is set up. First, move into your project -directory and install it: - -.. code-block:: terminal - - $ composer require req-checker - -The ``req-checker`` utility adds two PHP scripts to your application: -``vendor/bin/requirements-checker`` and ``public/check.php``. Run the first one -from your terminal: - -.. code-block:: terminal - - php vendor/bin/requirements-checker - -This will check your CLI environment. Run the second one from a browser (e.g. -``http://localhost:8000/check.php``) to check your web server environment. - -Once you've fixed any issues, uninstall the requirements checker: - -.. code-block:: terminal - - $ composer remove req-checker - .. _install-existing-app: Setting up an Existing Symfony Project From ef015ab7d91d053decb7c7330123cba1bd90b4ca Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 8 Dec 2017 18:03:22 +0100 Subject: [PATCH 2/2] - --- setup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.rst b/setup.rst index 92eac2f936e..a628c4496a4 100644 --- a/setup.rst +++ b/setup.rst @@ -65,7 +65,7 @@ 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 ` + some technical requirements. Use the :doc:`Symfony Requirements Checker ` tool to make sure your system is set up. .. tip::