8000 Merge pull request #13468 from TimWerdin/minor/add-documentation-abou… · symfony/symfony-docs@32af5a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32af5a3

Browse files
authored
Merge pull request #13468 from TimWerdin/minor/add-documentation-about-php-fpm
Adds block about PHP-FPM behaviour
2 parents 0cda846 + 530a8d2 commit 32af5a3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

setup/symfony_server.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,24 @@ run the Symfony server in the background:
5757
# show the latest log messages
5858
$ symfony server:log
5959
60+
Enabling PHP-FPM
61+
----------------
62+
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.
68+
69+
.. tip::
70+
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.
77+
6078
Enabling TLS
6179
------------
6280

0 commit comments

Comments
 (0)
0