From 08c98b87897323a26ee347af9bc5e4b36e909ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Z=C3=BClke?= Date: Thu, 26 Jan 2017 10:04:11 +0100 Subject: [PATCH] Fix Apache 2.4 UDS instructions Supported since Apache 2.4.10 --- setup/web_server_configuration.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup/web_server_configuration.rst b/setup/web_server_configuration.rst index 0e3563fb7c2..22a375d3cac 100644 --- a/setup/web_server_configuration.rst +++ b/setup/web_server_configuration.rst @@ -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 @@ -183,6 +182,8 @@ directive to pass requests for PHP files to PHP FPM: # with mod_rewrite or mod_autoindex 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 # 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: 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