How to setup PHP-FPM with Apache only (without nginx as reverse proxy)?

Polmonino

Basic Pleskian
I'm quite new Plesk, running on my own private virtual server (CentOS x64). I was able to install nginx and php-fpm support using the add/remove components functionality. It was straightforward :). However - as default - PHP-FPM requires ngix as web server (as stated in the documentation). Correct me if I'm wrong, I think it's used for handling both static and dynamic requests, acting like a reverse proxy for Apache.

I'm not comfortable with ngix and my primary development framework (Symfony 2) works well with Apache, with a custom .htaccess file for handling URL-rewriting and different development environments. I'd like to use Apache + PHP-FPM and an OP cache like PHP APC. Symfony 2 strongly suggests an OP cache, as hundred of files are executed before sending the response back to the client.

How can I use php-fpm directly with Apache with Plesk 11.5, avoiding the need of nginx?

Thank you for helping and sorry for my english :)
 
Hi Polmonino

I think I have possibly misunderstood your question. Why not just use Apache mod_php? Mod_php can be enabled /disabled in the Apache settings. Why would you want to use PHP via Fast CGI when you could just use an Apache module?

--Justin
 
Back
Top