Linode Forum Index Linode Forum
Linode Community Forums
 


Favorite Web Server

Click here to go to the original topic
Goto page 1, 2  Next
 
       Linode Forum Index -> General Discussion
Author Message
armbruster



Joined: 12 Apr 2009
Posts: 16

Posted: Tue Jun 30, 2009 3:29 pm    Post subject: Favorite Web Server  

What do you use? Apache2, nginx, Lighttpd? Something else? Explain here.
Back to top  
aot2002



Joined: 27 Mar 2009
Posts: 28

Posted: Tue Jun 30, 2009 3:41 pm    Post subject:  

apache 2, php 5, mysql 5 on a Linode 720 :shock:
Back to top  
Richard



Joined: 29 Jun 2009
Posts: 9

Posted: Tue Jun 30, 2009 3:42 pm    Post subject:  

I'm learning nginx right now. Seems easy enough (having never done anything at the web-server level) -- and most tests show it's great for memory savings compared to Apache2.

My only issue is I keep getting a "page is temporarily not available" after I've gone to the page a few times -- but I'll save that for a different thread somewhere :)

I'm using it for hosting Ruby/Sinatra/Rack web applications.
Back to top  
turl



Joined: 25 May 2009
Posts: 5
Location: Rosario, Argentina

Posted: Tue Jun 30, 2009 3:42 pm    Post subject:  

I use lighttpd because it's really fast, and easy to configure. I found nginx hard to configure, and apache was "too heavy" for my 360. I'm not saying they're bad, they are great apps, but lighttpd suited me best.

I also run PHP with XCache, and MySQL.
Back to top  
armbruster



Joined: 12 Apr 2009
Posts: 16

Posted: Tue Jun 30, 2009 3:59 pm    Post subject:  

Yeah, I've been using Apache2, but it's just too heavy.

I tried using Nginx, but it's just too hard to setup (PHP and MySQL), even though I'd use it if I didn't need PHP or MySQL.

Lighttpd looked good, but upon trying, it just didn't feel very tidy to use, and it seemed hard to use.

So I went back to Apache2. I'm thinking of giving Lighttpd a try again, though.

Did I miss any other good web servers?
Back to top  
geoff2



Joined: 21 May 2009
Posts: 12

Posted: Tue Jun 30, 2009 4:33 pm    Post subject:  

I didn't find nginx that difficult to set up. It is more challenging than Apache in that it there isn't an easy, pre-configured setup to get php apps running, but I managed to do it even though this was the first server I setup thanks to some instructions I found.

I did have some difficulty getting perl working through nginx, and even now it's a bit clunky and probably wouldn't scale as well as a mod_perl/Apache config. However, it's acceptable for my limited purposes.

If anyone is trying to get nginx configured, I'm happy to try to help, although no promises!
Back to top  
Richard



Joined: 29 Jun 2009
Posts: 9

Posted: Tue Jun 30, 2009 4:34 pm    Post subject:  

So far nginx has been fine to set up.

My problem I mentioned turns out to be an exception thrown by my Ruby app and the "Page is temporarily not available" is nginx's way of saying that.

I can't compare to other web server's configs though.
Back to top  
turl



Joined: 25 May 2009
Posts: 5
Location: Rosario, Argentina

Posted: Tue Jun 30, 2009 4:38 pm    Post subject:  

Cherokee is light too, but I didn't find it's url rewriting useful, and it was a feature I needed. It's worth a try though.
Back to top  
armbruster



Joined: 12 Apr 2009
Posts: 16

Posted: Tue Jun 30, 2009 4:44 pm    Post subject:  

turl wrote: Cherokee is light too, but I didn't find it's url rewriting useful, and it was a feature I needed. It's worth a try though.

Cherokee advertises Cherokee everywhere. And the web panel is only accessible with tunneling, so it's hard to use it on a Linode.

Any other web servers worth listing here for other people looking?
Back to top  
turl



Joined: 25 May 2009
Posts: 5
Location: Rosario, Argentina

Posted: Tue Jun 30, 2009 4:48 pm    Post subject:  

Why difficult? You can use tunneling on a just-installed linode without any extra work heh
Back to top  
armbruster



Joined: 12 Apr 2009
Posts: 16

Posted: Tue Jun 30, 2009 5:02 pm    Post subject:  

turl wrote: Why difficult? You can use tunneling on a just-installed linode without any extra work heh

Yeah, but it's not that fun to do everyday. And the shameless self-advertising is just plain wrong.
Back to top  
krmdrms



Joined: 27 May 2009
Posts: 18

Posted: Tue Jun 30, 2009 5:41 pm    Post subject:  

We talked about this issue with armbruster before. I'm using nginx for serve static files (nginx good with static files) and apache with mod_php for php files. Also, APC for opcode cache.

So, if you ask me why are using both? no answer, This setup brought me nothing. I havent got much traffic and thats why i cant answer this question. Some people said this increases performance. I have loose memory so i didint quite remember why. :)
And this setup not easy if you have multiple web sites.

Here is a short video about mod_php and FastCGI
http://www.joomlaperformance.com/articles/webcasts/why_mod_php_is_bad_for_performance_52_58.html

With my setup nginxy deals with static stuff. Apache deals with php scripts.

I tried lighttpd too. No differences between nginx and lighttpd. But i like nginx's conf syntax more :)

When talking with armbruster, i decided to go back my nginx & fastcgi setup. I started with installing lighy's spawn-cgi utility. Then i realise why i'm using apache. I had some problems about rewrite rules for wordpress. I get used to .htaccess files. There were some tricks about it and worked ok but at last all my stats were point to 404 page. I'm not good at regexp stuff. So the problem is about mine lack of knowledge.

I prefer nginx + fastcgi if i fix my rewrite issues.
Also nginx has a channel at freenode.
Back to top  
Nexx



Joined: 03 Feb 2009
Posts: 9

Posted: Tue Jun 30, 2009 7:07 pm    Post subject:  

Im currently using the following on my Linode 360:
nginx - 0.7.61
php - 5.2.9
mysql 5.1.53

It's currently running 32bit Arch Linux.

I use a custom-written script to launch php FastCGI processes using spawn-fcgi from lighttpd. I don't run a mail system, that's all handled by google, mysql has InnoDB disabled too.

My website only receives a few hits daily so a VPS is really an overkill for my needs, but I also run a ventrilo server and I love being able to get my hands dirty to configure every little thing.

My current memory stats are as follows:
Code: [nexx@destiny ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:           348        288         60          0         58        196
-/+ buffers/cache:         33        315
Swap:          359          2        357

I have more than a little breathing room for my website to expand ^.~
Back to top  
JDM



Joined: 27 Sep 2006
Posts: 34
Location: Maryland, USA

Posted: Tue Jun 30, 2009 8:06 pm    Post subject: lighttpd  

I really like lighttpd. It's relatively easy to configure, "just works" with FastCGI (at least PHP), and supports all the options (vhosting, rewrites, etc) that I need. Obviously, the "light" side of the picture is also a bonus.

That said, in any shared environment I'd probably go for Apache for the flexibility of .htaccess files, which I find that I can't live without on servers where I can't get directly to the httpd configuration.
Back to top  
dbb



Joined: 12 Aug 2008
Posts: 55

Posted: Tue Jun 30, 2009 9:25 pm    Post subject:  

lighttpd here
Back to top  
 
       Linode Forum Index -> General Discussion Goto page 1, 2  Next
Page 1 of 2