Welcome! Log In Create A New Profile

Advanced

PHP served thru Apache w/ nginx front-end

Posted by daveyfx 
PHP served thru Apache w/ nginx front-end
November 17, 2009 05:51PM
Hello all,

I currently have nginx configured to run in front of Apache, serving all static files and then proxying all other requests to the Apache backend. To serve our PHP documents, I'm wondering if the most efficient way to do this is via tried-and-true mod_php or would it be best to configure Apache to forward requests to FastCGI? My concern is that this adds another layer of communication i.e. nginx -> Apache -> FastCGI versus taking FastCGI out of the equation. There are obvious reasons that FastCGI is favored, particularly in situations where memory overhead is a concern, but I'm more concerned with performance.

What's the best solution for my needs? In either solution, is it considered safe to use Apache's mpm_worker threading mechanism versus prefork? I have read of various issues when using worker, whereas prefork seems to be the safe route.

Thank you in advance for your guidance!

Dave



Edited 1 time(s). Last edit at 11/17/2009 05:51PM by daveyfx.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready