Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-24-2010, 05:06 PM   #1
Registered: Aug 2005
Distribution: Debian
Posts: 75

Rep: Reputation: 15
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.
Old 07-17-2010, 01:44 PM   #2
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 11,335

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
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:

Old 07-18-2010, 01:21 PM   #3
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
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.

Last edited by tkmsr; 07-18-2010 at 01:24 PM.


apache, nginx, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-15-2010 12:42 AM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 06:40 PM
Nginx like as a reverse proxy for Apache Abadon_ Linux - Server 0 11-13-2009 05:53 AM
Nginx + php-fpm Slow Response When Busy godius Linux - Software 0 07-02-2009 03:25 PM
i installed fc4 wnad my apache should have been configured to handle php file but it' amolgupta Linux - Software 2 04-02-2006 12:22 PM

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration