|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Feb 2007
Location: Sweden
Posts: 5,655
|
Apache, Nginx, Lighttpd?
What would be the best option? I have some TGPs, forums and lots of Wordpress blogs.
No site is getting that much traffic except the forums that receive about 50k pageviews/day. The blogs get about ~9k uniques/day. And this server: Core2Quad Q8200 QUAD CORE 2.33GHZ - RAM: 4GB What should I choose of Apache, Nginx or Lighttpd and why?
__________________
Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.) (Signup with ONLY your Email and Password. You can also refer people and get even more.) |
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jul 2005
Location: icq#: 639544261
Posts: 1,965
|
Nginx because the defaults it comes with are good. You need to know how to config it though, use php-fpm for PHP.
4 worker processes and 1024 worker connections should be fine.
__________________
I'm out. |
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Jan 2010
Location: Europe
Posts: 1,327
|
nginx as reverse proxy for apache2,
apache2 with php5 and few mods, hit me up on icq if you need help to configure it..
__________________
icq: 395 294 346 http://www.adultsubmitter.eu - submit any adult site to 20 directories from 1 form! now 20 domains! http://www.porndeals.eu http://www.ebonybangbros.com |
|
|
|
|
|
#4 |
|
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
I use nginx and php-fpm,dont bother with load since i using it.Also i just checked some benchmarks to see did something changed in the meantime and nginx still beats everything else when it come to speed and resource usage.
|
|
|
|
|
|
#5 |
|
ORLY?
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
|
assuming you have a managed server I would go a different route
1) setup optimized apache/php5 for the main sites (strip the modules and tweak the fork) 2) setup lighttpd/nginx for your forum attachments/uploads and all other static files If you can't or don't want to do that pick nginx for everything. |
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
Nginx and lighttpd have some pretty fervent fans who like to argue, so I won't get into taking too much about either of them, but I'll just tell you what we did after pretty extensive testing on a site doing 400 Mbps (120,000 GB / month).
Add "noatime" to /etc/fstab . This is very important. In Apache, comment out the twenty or so modules you're not using, like mod_speling and mod_auth_group. Enjoy a server that is as fast as your disks can spit out files, standards compliant, and doesn't have grotesque bugs from six years ago still not fixed.
__________________
For historical display only. This information is not current: support@bettercgi.com ICQ 7208627 Strongbox - The next generation in site security Throttlebox - The next generation in bandwidth control Clonebox - Backup and disaster recovery on steroids |
|
|
|
|
|
#7 | |
|
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
|
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
If you need atimes and so can't use noatime, consider if relatime will work for you. If you do need atimes, you can NOT use nginx because it causes atime updates to be skipped whether you like it or not. That's why in tests with atimes on it appears faster on small files - because it's (erroneously) skipping atime updates. That's how we found out about the importance of noatime. Analyzing the nginx code to see why it appeared to be faster for tiny files, I found that the only significant speed difference was skipping that disk access, even if the server admin had specified otherwise. If you have to have atimes and relatime won't work, then, you need a server which allows atimes to be updated correctly (Apache) and a storage subsystem with low rotational latency (high RPM) and low seek times. |
|
|
|
|
|
#9 | |
|
Confirmed User
Industry Role:
Join Date: Jan 2010
Location: Europe
Posts: 1,327
|
Quote:
why making another dns request and forcing user to connect to another host? all what you need is nginx, you have choice between: * nginx+php5fpm * nginx as reverse proxy + apache2 now.. you are turning on in nginx config: * expires for static files * all files are serving direct from hdd, not by requesting apache2 * memcache for all dynamic sites where user is not logged, with expiry time like 5sec.. i choosed second setup (reverse proxy) and my box - 2x3ghz, 4gb of ram is handling dynamic site with over 400 users online (via google analytics realtime), near 350k page views per day and like 1.3mln hits per day.. load time? less than 1s..
__________________
icq: 395 294 346 http://www.adultsubmitter.eu - submit any adult site to 20 directories from 1 form! now 20 domains! http://www.porndeals.eu http://www.ebonybangbros.com |
|
|
|
|