Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 04: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, 12:44 PM   #2
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,425

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
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, 12: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 12: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-14-2010 11:42 PM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 05:40 PM
Nginx like as a reverse proxy for Apache Abadon_ Linux - Server 0 11-13-2009 04:53 AM
Nginx + php-fpm Slow Response When Busy godius Linux - Software 0 07-02-2009 02: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 11:22 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:53 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