Skip to content

Commit 385fe5d

Browse files
committed
minor #7415 Fix Apache 2.4 UDS instructions (dzuelke)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7415). Discussion ---------- Fix Apache 2.4 UDS instructions Supported since Apache 2.4.10 Commits ------- 25370f7 Fix Apache 2.4 UDS instructions
2 parents 8146f89 + 25370f7 commit 385fe5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

setup/web_server_configuration.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,9 @@ Using mod_proxy_fcgi with Apache 2.4
162162
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163163

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

170169
.. code-block:: apache
171170
@@ -183,6 +182,8 @@ directive to pass requests for PHP files to PHP FPM:
183182
# with mod_rewrite or mod_autoindex
184183
<FilesMatch \.php$>
185184
SetHandler proxy:fcgi://127.0.0.1:9000
185+
# for Unix sockets, Apache 2.4.10 or higher
186+
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
186187
</FilesMatch>
187188
188189
# If you use Apache version below 2.4.9 you must consider update or use this instead
@@ -338,6 +339,5 @@ The **minimum configuration** to get your application running under Nginx is:
338339
For advanced Nginx configuration options, read the official `Nginx documentation`_.
339340

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy