Quantcast
Channel: Server – BinaryTides
Viewing all articles
Browse latest Browse all 13

Setup Apache 2.4 and Php FPM with mod proxy fcgi on Ubuntu 13.10

$
0
0
mod_proxy_fcgi
The module mod_proxy_fcgi is a new one and it allows apache to connect to/forward requests to an external fastcgi process manager like php fpm. This allows for a complete separation between the running of php scripts and Apache.
Earlier we had to use modules like mod_fcgid and mod_fastcgi which all had some limitations. Mod_fcgid for example did not properly utilise the process management capability of php-cgi whereas mod_fastcgi is a third party module.
With the arrival of mod_proxy_fcgi Apache finally gets the ability to neatly talk to external fastcgi process managers making it more efficient at the task.
Delegating php requests to external fpm servers greatly reduces the load on web servers like apache resulting into efficient utilisation of machine resources and faster processing.
request page.php --> Apache --> Php FPM service --> Php process executes page.php
Along with all that, php fpm can run opcode caching engines like apc in a very stable manner.
So in this post, our task is to setup apache + php-fpm using the mod_proxy_fcgi connector.
1. Install and Configure Apache
Ubuntu 13.10 already ships with apache 2.4 so all installables are in the repository itself.
Install Apache if not already done
$ sudo apt-get install apache2
Enable mod_proxy_fcgi
$ sudo a2enmod proxy_fcgi
Considering dependency...

Read full post here
Setup Apache 2.4 and Php FPM with mod proxy fcgi on Ubuntu 13.10


Viewing all articles
Browse latest Browse all 13

Trending Articles