Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Next month, I have to move my company's website from our current 3rd-party webhosting to our own cloud-based server.

I want to use a lightweight webserver. The requirements are:

  • PHP support
  • HTTPS support
  • Virtual domains (we have some domains that will point to the same IP address)
  • Actively developed (to patch security issue etc.)
  • Runs on Linux (but no need for binary packages; if I have to compile it from source, so be it)

We don't need URL rewriting ability; SEO has approximately zero priority.

Between Nginx, Cherokee, and Hiawatha, can you provide me with the pro's/con's of each?

Or can you recommend something better?

Thanks in advance.

share|improve this question
    
Seeing as I've never even heard of Cherokee and Hiawatha, Nginx would be my choice. –  gravyface May 1 '11 at 16:48
1  
Nginx + PHP-FPM combination is just fine –  Alexander Azarov May 1 '11 at 17:15

2 Answers 2

up vote 2 down vote accepted

cherokee is actually suprisingly effective. don't let the cartoony (and amazingly convenient) gui make you think otherwise... if you go with nginx, be ready to spend sometime in bed with some (hillarious) russian configuration documentation. that said, it's great.. but no faster - or better - than cherokee. nginx guys maintain an air of seriousness and austerity in an attempt to perpetuate that perception, though, IMO. Hiawatha is a little rough around the edges, and I would say more suited to a portable/embedded application. There are many other options out there too, let me know if you can't find what you want and I can throw a few more ideas out there... but whatever you do.. don't use apache, lol. just kidding. or am i? jokes aside, be ready for some frustration if you grew up with mod_rewrite... there is no quick and easy translation of your vhosts , aliases, etc. to any of these solutions. you get to, REWRITE them.. get it?

share|improve this answer
    
Don't worry, I expect to rewrite any conf's required ;-) –  pepoluan Aug 8 '11 at 4:27
    
also, for the record, some REALLY lightweight servers can also be had by using "micro-httpd" / "mini-httpd", the somewhat obscure pserv, aka "picoserv", as well as a simple perl module, or a python script running with the import BaseHTTPServer - works surprisingly well. there are so many ways to run a web server with an executable under 100k it's actually pretty amazing. –  mralexgray Aug 8 '11 at 6:52
    
It depends on the intended usage. Cherokee is performing quite well and is a good choice for admins that are not so familiar with cfg files (or those that just prefer a GUI). Nevertheless there have been some really serious vulnerabilities in cherokee so personally I really doubt the overall code quality. But this is a personal thing - luckily there are many alternatives available –  justlovingIT Mar 5 at 20:59

I've been using Hiawatha for a few projects and it turned out to be stable and in fact "built with security in mind".

If you prefer a lightweight webserver and are using an OS that got hiawatha in the repo I'd give it a try. Easy to configure and deploy and it got some decent security features

Except this I'm often recommending nginx with php-fpm as it's really fast and rock solid. Besides this it's fairly easy to run php instances under different users with custom configurations and runtime variables.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.