Previous Thread
Next Thread
Print Thread
Hop To
#241061 01/11/2011 6:40 PM
Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
Anyone have any experience with either of these? I'm trying to get our site running faster and this seemed like the next move due to our heavy traffic.


Won't you take me to Funkytown?
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yah, i turned nginx loose on a highly trafficked site and it made a big difference.

apache take 3 connections per user visit ( css js, images, php )

with nginx as an apache proxy, nginx handles 2 connections ( real fast ) and apache does the php thread.

only 1 modification needed to ubbthreads.inc.php where it handles the $_SERVER['REMOTE_ADDR'] value, so that the real IP is stored there, instead of the proxied 127.0.0.1 one from nginx.

wordpress runs great too..

i highly recommend it smile

also, for WHM/cPanel peeps, it has an interface there.

Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
SD, why didn't you use nginx for the php?


Won't you take me to Funkytown?
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
because the install that i went with was compatible with WHM and it was a 15 minute chore to switch over

to go fully nginx and ditch httpd woulda been a bigger task.

it's possible, via PHP-FPM, but the ripple effect to things like awstats, webalizer and WHM in general wasn't worth it to me

i had a box with 10 domains on it and 3 ubbthreads sites on Eastern Time zones, so i could experiment in their 'night'

when it worked, i was happy.

i also went with the latest mod_pagespeed for apache and that helped a lot too..

if you have a free server to play with, i'd suggest going for the whole ball of wax, if you want wink

http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/ <-- that is essentially what i did smile

another overriding reason was that i use mod_rewrite rules a _lot_ and nginx ain't up to the task ( yet ) like apache is.

essentially enough reasons for me to go with the static file proxy model wink

my current preference is: nginx ( static files ), apache + eAccelerator for php (fast cgi, so i don't run into file ownership probs with php as 'nobody'), mod_pagespeed, mod_rewrite

tested on 3 WHM/cPanel servers: 1 server is low traffic, 2 servers are high traffic

end result: significant performance gains

Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
Thanks for the thorough response. You make a good point about the rewrite rules, it does appear much harder. I like 15 minutes too.

I'll check out the static file route. I'm already running apache, fastcgi php, xcache, and mod_pagespeed.

Found some interesting things in this article.
http://code.google.com/speed/page-speed/docs/rules_intro.html


Won't you take me to Funkytown?
Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
SD, read the article, very interesting. Are there instructions out there for doing this?


Won't you take me to Funkytown?
Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
Finding lots of articles on this smile


Won't you take me to Funkytown?

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Nightcrawler, Ruben), 694 guests, and 214 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)