Skip to content

Fix Apache 2.4 UDS instructions #7415

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

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 5 additions & 5 deletions setup/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,9 @@ Using mod_proxy_fcgi with Apache 2.4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you are running Apache 2.4, you can easily use ``mod_proxy_fcgi`` to pass
incoming requests to PHP-FPM. Configure PHP-FPM to listen on a TCP socket
(``mod_proxy`` currently `does not support Unix sockets`_), enable ``mod_proxy``
and ``mod_proxy_fcgi`` in your Apache configuration and use the ``SetHandler``
directive to pass requests for PHP files to PHP FPM:
incoming requests to PHP-FPM. Configure PHP-FPM to listen on a TCP or Unix socket,
enable ``mod_proxy`` and ``mod_proxy_fcgi`` in your Apache configuration, and
use the ``SetHandler`` directive to pass requests for PHP files to PHP FPM:

.. code-block:: apache

Expand All @@ -183,6 +182,8 @@ directive to pass requests for PHP files to PHP FPM:
# with mod_rewrite or mod_autoindex
<FilesMatch \.php$>
SetHandler proxy:fcgi://127.0.0.1:9000
# for Unix sockets, Apache 2.4.10 or higher
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
</FilesMatch>

# If you use Apache version below 2.4.9 you must consider update or use this instead
Expand Down Expand Up @@ -338,6 +339,5 @@ The **minimum configuration** to get your application running under Nginx is:
For advanced Nginx configuration options, read the official `Nginx documentation`_.

.. _`Apache documentation`: http://httpd.apache.org/docs/
.. _`does not support Unix sockets`: https://bz.apache.org/bugzilla/show_bug.cgi?id=54101
.. _`FastCgiExternalServer`: http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServer
.. _`Nginx documentation`: http://wiki.nginx.org/Symfony