LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-24-2010, 05:06 PM   #1
nyheat
Member
 
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
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,609

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
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
 
Old 07-18-2010, 01:21 PM   #3
tkmsr
Member
 
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.
 
  


Reply

Tags
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 12:10 AM.

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