Servers and Hosting Server Issues - Shared, Virtual, and Dedicated Hosting Options.

Reply
 
Thread Tools

  #1  
Old 01-06-2009, 02:45 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default Migrate from Apache2 to nginx?
I'm working within some strict hardware restraints on a specific project and need to minimize the amount of memory being used by my webserver. Right now I'm using Apache 2. I like it. I'm comfortable with it because I know it pretty well. However, after doing all the configuration I can it is right at the border of what I am comfortable with.

I've been doing some reading about nginx and it sounds incredibly promising. I realize I'll have to do some behind-the-scenes configuration work to make the switch, and that seems tedious. I can do it, I'm just not quite sure I want to yet.

So, finally, to the question...

Has anyone here ever switched a site from Apache2 to nginx? Was it worth it to you? Why? Any gotchas I should watch out for if I decide to make the switch?

EDIT: I should mention, this is on a server that I have root access to, so I am not constrained by a web hosting company's limits, just my knowledge, capabilities and finances. No physical upgrades are possible at this moment...a memory upgrade would solve the whole thing, but that's not in the cards right now. I'm looking for a software or configuration solution.
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #2  
Old 01-07-2009, 10:24 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
Update: I decided to make the switch and I couldn't be happier. nginx is FAST!! It uses less memory, too. (And this is being said by someone who knows and likes Apache.)
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #3  
Old 01-07-2009, 10:44 PM
MPerryman's Avatar
MPerryman MPerryman is offline
Tazmanian
 
Real Name: Matt
Join Date: Jul 2007
Admin Experience: Intermediate
Location: Australia
Age: 34
Posts: 126
MPerryman will become famous soon enough
Default
Feature-wise, how does it compare to Apache? And will I have to learn a whole new set of commands (I realize the answer is probably 'yes')? I only recently became familiar with mod_rewrite and basic httpd.conf configuration, let alone the other stuff, haha
__________________
AmpedTraining - Strength, Bodybuilding, Fitness and so on | Rants and Raves - My personal testbed

Hobbyist | Amateur Web Developer | Open Source Aficionado
Reply With Quote
  #4  
Old 01-07-2009, 10:50 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
If you do a lot of rewriting, it will either require a lot of reading and learning, or in some cases just can't be done.

Otherwise, I have found it to be pretty easy to set up and run. The only thing is that the documentation isn't nearly as good or complete as with Apache, so you may end up doing some Google searching.

On the positive side, it is a lot faster and able to handle far more consecutive requests with much, much less memory usage. I'm impressed!

So far, the best info I have found is on these two sites:
http://wiki.codemongers.com/Main
http://articles.slicehost.com/sitemap
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #5  
Old 01-08-2009, 07:33 PM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
Tazmanian
 
Real Name: Steve
Join Date: Jan 2008
Admin Experience: Intermediate
Location: Delaware, USA
Age: 40
Posts: 3,524
Baldilocks is a glorious beacon of lightBaldilocks is a glorious beacon of lightBaldilocks is a glorious beacon of light
Default
I went to LightSpeed from Apache. How does that compare to nginx?
__________________
EuphoricArythmia - Forum for Anything & Everything! | HowardForums - Cell Phone News & Discussion
URLJet - The Best Hosting for the Best Forum Software (vBulletin)!
Reply With Quote
  #6  
Old 01-08-2009, 07:56 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
In terms of performance, they are similar.

The main difference, as far as I can tell, is the licensing. Lightspeed is free to use (in the standard version, with a fuller featured enterprise version available for payment), but uses a limited-use proprietary license, while nginx's full version is free in cost and also uses a free BSD style license.

That might not matter for most people. It mattered to me.
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #7  
Old 01-08-2009, 07:59 PM
MPerryman's Avatar
MPerryman MPerryman is offline
Tazmanian
 
Real Name: Matt
Join Date: Jul 2007
Admin Experience: Intermediate
Location: Australia
Age: 34
Posts: 126
MPerryman will become famous soon enough
Default
You open-source guys and your licensing

Looks like I've got yet another piece of software to dl now.
__________________
AmpedTraining - Strength, Bodybuilding, Fitness and so on | Rants and Raves - My personal testbed

Hobbyist | Amateur Web Developer | Open Source Aficionado
Reply With Quote
  #8  
Old 01-08-2009, 08:02 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
Quote:
Originally Posted by MPerryman View Post
You open-source guys and your licensing
lol
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #9  
Old 01-08-2009, 08:05 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
FYI, all. I put up a how-to here: http://matthewhelmke.net/2009/01/08/...ache-to-nginx/

That site is running on nginx now.
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #10  
Old 01-09-2009, 02:52 AM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
Tazmanian
 
Real Name: Steve
Join Date: Jan 2008
Admin Experience: Intermediate
Location: Delaware, USA
Age: 40
Posts: 3,524
Baldilocks is a glorious beacon of lightBaldilocks is a glorious beacon of lightBaldilocks is a glorious beacon of light
Default
Yeah. I am using lightspeed now instead of Apache (with URLJet). Server load times are MUCH improved.
__________________
EuphoricArythmia - Forum for Anything & Everything! | HowardForums - Cell Phone News & Discussion
URLJet - The Best Hosting for the Best Forum Software (vBulletin)!
Reply With Quote
  #11  
Old 01-09-2009, 04:57 AM
Mosss Mosss is offline
Tazmanian
 
Real Name: Ted
Join Date: Nov 2007
Posts: 216
Mosss is on a distinguished road
Default
Well, I have been using simplehelix.com services for about 4 months and I should say that it has Litespeed server which is 5 times faster than Apache and Zeus. I have unmatched speed connection and really satisfied with it.
Reply With Quote
  #12  
Old 01-09-2009, 08:52 AM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
Quote:
Originally Posted by Baldilocks View Post
Yeah. I am using lightspeed now instead of Apache (with URLJet). Server load times are MUCH improved.
Quote:
Originally Posted by Mosss View Post
Well, I have been using simplehelix.com services for about 4 months and I should say that it has Litespeed server which is 5 times faster than Apache and Zeus. I have unmatched speed connection and really satisfied with it.
I have heard nothing but good about Lightspeed in use.
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #13  
Old 01-14-2009, 08:04 AM
peachy peachy is offline
TAZ Rookie
 
Join Date: Oct 2008
Admin Experience: Intermediate
Location: Kanton Zürich
Posts: 3
peachy is on a distinguished road
Default
Hi guys, I'd recommend you check out Cherokee too. It's lightweight, very fast and stable. It's also pretty resilient and due to the way it self monitors the webserver process and fast-cgi server. An added bonus for those on Ubuntu server is that they maintain packages for Ubuntu that are always up to date (although not in the official repos).

Downside it that you will have to spend some time on URL rewrites, not because it is broken or difficult just because it is different. I noticed mention of Apache migration scripts recently on the mail list too.
Reply With Quote
  #14  
Old 01-14-2009, 08:55 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
Cherokee looks interesting. This is the first time I have heard of it.

I figured out how to do some of the most common types of rewrites using nginx, so I don't have any reason not to use it anymore. I put the info here, in case anyone is interested, but mostly so I have it somewhere when I forget how I did it.

http://matthewhelmke.net/2009/01/08/...ects-in-nginx/
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #15  
Old 01-14-2009, 09:21 PM
el canadiano's Avatar
el canadiano el canadiano is offline
But I said ███████████
 
Real Name: Alexander P.
Join Date: Sep 2008
Admin Experience: Advanced
Location: Canada
Posts: 788
el canadiano is a glorious beacon of lightel canadiano is a glorious beacon of lightel canadiano is a glorious beacon of light
Default
Are you fully using NginX? I know of a person who actually uses a hybrid of NginX and Apache.
__________________
General Discussion Forum | Mario Kart 7 Forum
For goodness sake, it's software, not softwares. Likewise, words like Deer and Pokémon fall in the same category.
Reply With Quote
  #16  
Old 01-14-2009, 09:31 PM
ubuntumatthew's Avatar
ubuntumatthew ubuntumatthew is offline
Bubblehead Star Child
 
Real Name: Matthew
Join Date: Mar 2007
Admin Experience: Advanced
Posts: 210
ubuntumatthew will become famous soon enough
Default
Fully. Apache got turned off last week.
__________________
admin for Ubuntu Forums and others, too.
Hey! I wrote another book!
Reply With Quote
  #17  
Old 11-02-2010, 08:39 PM
ferodynamics ferodynamics is offline
TAZ Rookie
 
Real Name: PJ
Join Date: Oct 2010
Posts: 1
ferodynamics is on a distinguished road
Default
I'm using NginX here, mostly WordPress installs. I admit, not having ".htaccess" is a bit frightening at first. But once you're past that learning curve, it's smooth sailing. To serve a typical blog post takes Nginx less than one-hundredth of a second on my VPS.
Reply With Quote
  #18  
Old 11-02-2010, 09:17 PM
Supermighty's Avatar
Supermighty Supermighty is offline
Tazmanian
 
Real Name: Super'M
Join Date: Apr 2009
Admin Experience: Beginner
Posts: 296
Supermighty is just really niceSupermighty is just really nice
Default
How easy was nginx to learn coming from apache2?

How does it handle php or fastcgi?
__________________
Walled City / Supermighty
Reply With Quote
  #19  
Old 11-04-2010, 04:21 AM
WebhostGIANT_Rob WebhostGIANT_Rob is offline
Tazmanian
 
Real Name: Rob
Join Date: Mar 2010
Posts: 365
WebhostGIANT_Rob is on a distinguished road
Default
I think that is very important to do the following: test both and then decide. Of course if you have such opportunity to test.
Reply With Quote
Reply

  Admin Zone Forums > The Community Zone > Managing an Online Community > Servers and Hosting





Currently Active Users Viewing this Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to migrate? Jeeps2009 phpBB 1 06-23-2008 11:21 PM
migrate from Excel to C++ froggy General Programming Discussions 10 03-22-2007 12:30 AM
Migrate from PHPBB to VB3.07 Clasione vBulletin 4 03-06-2005 08:50 AM


 

All times are GMT -4. The time now is 08:44 PM.


Powered by: vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Page generated in 0.09551311 seconds with 13 queries
The Admin Zone © copyright 2003-2014 All Rights Reserved. Content published on The Admin Zone requires permission for reprint.