Skip to content

Adds block about PHP-FPM behaviour #13468

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 3 commits into from
Apr 3, 2020
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
18 changes: 18 additions & 0 deletions setup/symfony_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,24 @@ run the Symfony server in the background:
# show the latest log messages
$ symfony server:log

Enabling PHP-FPM
----------------

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

.. tip::

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

Enabling TLS
------------

Expand Down