14.04 LTS has Apache 2.4.7 so you cannot use this :
<FilesMatch "\.php$">
# Requires Apache 2.4.9 or later
SetHandler "proxy:unix:/var/run/php5-fpm.sock|fcgi://localhost/"
# Requires Apache 2.4.10 and later
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
So with 14.04 LTS you need to
1. Configure each VirtualHost with
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/your_path_to/htdocs/$1
2. In PHP5-FPM, use TCP instead of Unix Domain Socket (/etc/php5/fpm/pool.d/www.conf)
listen = 127.0.0.1:9000
The alternative is to use mod_fastcgi but it's part of multiverse
(disabled by default /etc/apt/sources.list)
https:/ /httpd. apache. org/docs/ trunk/mod/ mod_proxy_ fcgi.html
14.04 LTS has Apache 2.4.7 so you cannot use this :
<FilesMatch "\.php$"> unix:/var/ run/php5- fpm.sock| fcgi:// localhost/ "
# Requires Apache 2.4.9 or later
SetHandler "proxy:
# Requires Apache 2.4.10 and later fcgi:// 127.0.0. 1:9000"
SetHandler "proxy:
</FilesMatch>
So with 14.04 LTS you need to 127.0.0. 1:9000/ your_path_ to/htdocs/ $1 fpm/pool. d/www.conf)
1. Configure each VirtualHost with
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://
2. In PHP5-FPM, use TCP instead of Unix Domain Socket (/etc/php5/
listen = 127.0.0.1:9000
The alternative is to use mod_fastcgi but it's part of multiverse sources. list)
(disabled by default /etc/apt/
See also events. linuxfoundation .org/sites/ events/ files/slides/ AC2014- FastCGI. pdf
http://
16.04 LTS is out but not all PHP applications are compatible with PHP 7 /bugs.php. net/bug. php?id= 69852)
(like ibm_db2 is not yet ready https:/