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 2 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
16 changes: 16 additions & 0 deletions setup/symfony_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,22 @@ 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 the ``public`` folder for an ``index.php``
file. If this file is found the server will automatically start with PHP-FPM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabpot can you please check the first sentence? From your comment in the referenced issue, I get the feeling that more front-controller files are checked than just public/index.php?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it checks for "common" patterns like web/app.php, web/app_dev.php or public/index.php.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed the text to mention those common patterns

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 an index.php file are present the server will still
start with PHP-FPM enabled but the index.html will take precedence over the
index.php file. This means when an index.html file is present in
``public``, it will be displayed instead of the index.php which would show
e.g. the Symfony application.

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

Expand Down