Skip to content

Commit 530a8d2

Browse files
committed
Improved PHP-FPM section to list the common patterns to find a front controller
1 parent c7419b2 commit 530a8d2

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

setup/symfony_server.rst

+11-9
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,20 @@ run the Symfony server in the background:
6060
Enabling PHP-FPM
6161
----------------
6262

63-
When the server starts it will check the ``public`` folder for an ``index.php``
64-
file. If this file is found the server will automatically start with PHP-FPM
65-
enabled. Otherwise the server will start without PHP-FPM and will show a
66-
``Page not found`` page when trying to access a ``.php`` file in the browser.
63+
When the server starts it will check for common patterns like ``web/app.php``,
64+
``web/app_dev.php`` or ``public/index.php``. If a file like this is found the
65+
server will automatically start with PHP-FPM enabled. Otherwise the server will
66+
start without PHP-FPM and will show a ``Page not found`` page when trying to
67+
access a ``.php`` file in the browser.
6768

6869
.. tip::
6970

70-
When an index.html and an index.php file are present the server will still
71-
start with PHP-FPM enabled but the index.html will take precedence over the
72-
index.php file. This means when an index.html file is present in
73-
``public``, it will be displayed instead of the index.php which would show
74-
e.g. the Symfony application.
71+
When an ``index.html`` and a front controller like e.g. ``index.php`` are
72+
both present the server will still start with PHP-FPM enabled but the
73+
``index.html`` will take precedence over the front controller. This means
74+
when an ``index.html`` file is present in ``public`` or ``web``, it will be
75+
displayed instead of the ``index.php`` which would show e.g. the Symfony
76+
application.
7577

7678
Enabling TLS
7779
------------

0 commit comments

Comments
 (0)