Adam Howard
Well-known member
Apache -vs- nginx -vs- lighttpd?
So which do you prefer and why?
So which do you prefer and why?
nginx - simpler configuration than any other web server, while also being arguably the fastest and lightest.
Plus some of the stuff you can do in its config files is incredible, like if statements, full embedded perl, etc.
Speaking of fast, your gaming forum has blazing speed compared to the other XenForo forums I have seen, its almost double this forum speed. Whats the secret ?
Could be any of: Nginx (with a 2500+ line config >.>), PHP-FPM, APC (with XenForo set to use it for internal caches), decently configured MySQL (around 0.004s spent on queries in XF on most pages), decent hardware (quad core server, though probably cancelled out by the amount of other stuff running ), Linux (<3 Fedora), decent network/isp.
Over the 2 or so years I've been fiddling with this server, the most noticeable improvements in forum performance (phpBB 3, vB 3.8, vB 4.0 and XF) have come from the switch to Nginx from Apache (anyone using Apache or similar servers such as Litespeed or Zend should seriously consider switching), and then from standalone FastCGI processes (used to run Windows; was still faster than proxying to Apache) to PHP-FPM. And of course the switch from Windows to Fedora, but I doubt that's a concern for many
Whats the memory usage for loading the mainpage?
Page Time: 0.0431s
Memory: 2.5909 MB (Peak: 3.1432 MB)
Queries (12, time: 0.0042s, 9.8%)
The only reason I used Lighty was because php5.2 was required for a project and it was easier to let Lighty handle the fcgi part.
Any -hint- for getting Nginx config running a little smoother?
Code:Page Time: 0.0431s Memory: 2.5909 MB (Peak: 3.1432 MB) Queries (12, time: 0.0042s, 9.8%)
Why not just use the PHP-FPM patch on PHP 5.2?
Use a nice long keepalive time (I use 5 minutes, probably a bit too far for large forums ), stick to 1 worker process (might be just me, but performance seems to deteriorate otherwise), use epoll, sendfile, etc.
5mins or 5seconds o.o? 5mins is aloong keepalive (though Nginx should be able to handle it still) Also what about tcp_nopush, tcp_nodelay both 'on'?
Yeah I have those both on, also you should ideally have access_log off for static content.
location /forum/ {
try_files $uri $uri/ /forum/index.php?$uri&$args;
access_log off;
expires max;
}
Code:location /forum/ { try_files $uri $uri/ /forum/index.php?$uri&$args; access_log off; expires max; }
I'm doing that, its very effective especially if not much changes. Only wish Nginx could merge files (multiple CSS and JS) like Lighty does with LUA, though your PHP version works pretty good too.
I tried Cherokee, the fact that the administration is all the GUI confused me! I needed a command line to feel better about myself. Is it still being actively supported? I haven't visited it in a few months.
Anyone tried Cherokee ?
decent little guy with a GUI admin for people with a gazillion sites .. click click and the siteS are live http://www.cherokee-project.com/
I will post the config files for xenforo tomorrow, it's actually super simple via the admin panel few clicks and full SEO is on
I was considering using cherokee on my new server, the results seem amazing. If you could post your config would be great.
We use essential cookies to make this site work, and optional cookies to enhance your experience.