Skip to content

Commit f5f49c7

Browse files
authored
Adds block about PHP-FPM behaviour
Related to the issue https://github.com/symfony/cli/issues/178 I added some documentation on the behaviour of the PHP-FPM in the webserver. Even though the behaviour is currently "expected" it is not obvious for the user.
1 parent abe2750 commit f5f49c7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

setup/symfony_server.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ 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 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.
67+
68+
.. tip::
69+
70+
When an index.html and an index.php file are present the server will still
71+
start with PHP-FPM enabled but browsing the root of your website will serve
72+
the index.html file.
73+
6074
Enabling TLS
6175
------------
6276

0 commit comments

Comments
 (0)