LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Tuning Apache to handle PHP with NginX on the frontend (https://www.linuxquestions.org/questions/linux-server-73/tuning-apache-to-handle-php-with-nginx-on-the-frontend-816198/)

nyheat 06-24-2010 04:06 PM

Tuning Apache to handle PHP with NginX on the frontend
 
My intention is to have EngineX on the frontend handling all static files, and Apache + mod_php in charge of handling PHP requests.

I have optimized nginx to be as efficient as possible in handling static files, but have very little experience with Apache.

Since Apache would only be processing PHP requests, would the standard Apache optimization guides suffice or would it best to configure it differently?


PS: this is a dedicated file server, the database is hosted separately.

jeremy 07-17-2010 12:44 PM

This is actually similar to the setup LQ is using. Most of the standard Apache optimization guides will still apply to this setup, with the caveat that you need to avoid the optimizations that are aimed at improving static content performance. Also see:

http://www.linuxquestions.org/linux/...imizing_Apache
http://www.linuxquestions.org/linux/...g_PHP_Part_One
http://www.linuxquestions.org/linux/...g_PHP_Part_Two
http://www.linuxquestions.org/linux/...PHP_Part_Three

--jeremy

tkmsr 07-18-2010 12:21 PM

Thanks for the information Jeremy.
I use Apache at front end and backend.So I use some thing known as ReverseProxy
but in your case nyheat this is not applicable though it is good to know about it.
In case Some thing can work better than Apache Reverse Proxy let me know.


All times are GMT -5. The time now is 01:51 AM.