View Full Version : NGINX VS. LiteSpeed
ChopSuey
06-08-2010, 12:25 PM
Recently read about these two, not sure which one i should switch to from Apache....im looking into optimization of my server and forums.....appreciate feedback :)
Speysider
06-08-2010, 02:00 PM
I believe litespeed has a restriction of no content like warez, porn or other illegal activity on the server where it is installed.
nginx has almost no restrictions. Don't take my word for it though.
CentOS + Nginx + xCache + most powerfull combination for me :D
Angel-Wings
06-09-2010, 12:15 AM
Stay with Apache and remove not required modules. Specially since - like on Litespeed's example configuration, using Apache's prefork MPM and then comparing this non-threaded against threaded webservers is well - not really compareable.
Specially with FastCGI worker is the right MPM to use.
And Xcache and other PHP Optimizer's are maybe a bit more placebo-ware than a real help in the most cases.
Just saying - by changing some software there won't be maybe much speedup. Do benchmarks yourself and see what fits your needs best, not just Webserver related, also PHP, MySQL and whatever else is running + the OS of course :)
ChopSuey
06-10-2010, 12:51 PM
What modules you suggest i remove on Apache?
Angel-Wings
06-11-2010, 07:51 AM
That depends on your configuration and if you maybe run other sites on the server and if any modules have been built in. VB itself won't need much.
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rpaf_module libexec/apache22/mod_rpaf.so
LoadModule auth_form_module libexec/apache22/mod_auth_form.so
These are mine but even this can be stripped down - really depends on your server configuration. Except rpaf / auth_form all modules are Apache's own ones.
Rpaf is used because of my reverse caching proxy, auth_form handles SSL encrypted logins for VB.
The easy way is maybe removing one-by-one on your test environment - not the production machine - until something is broken.
And check the official Apache documentation - mod_alias will be needed if you use any "alias" directives, if you don't, no need to use this module.
And - additionally - don't forget PHP and MySQL. Won't give a much better perfomance if your Webserver can deliver pages lightning-fast if the Database slows down everything. But for PHP and MySQL - depends on your usage.
tuning-primer / mysqltuner can help for MySQL and maybe some Profiling tool for MySQL to see if any Addons cause problems with long queries.
And for PHP - you won't need the openssl extension as example if you only use VB and don't use any SSL / TLS - e.g. for sending mails over a SSL / TLS connection. And a memory_limit of 128 MB might look good, but is pretty useless in the most cases.
If you still have some spare resources, a reverse proxy might help to speed up things - specially static content like JS / Images and there, yes, Nginx might be a good choice.
Sorry if there's no clear answer, really all depends on how your site and VB are used. :)
ChopSuey
06-11-2010, 09:23 AM
Thanks for all the info dude. Appreciate everything will look into this.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.