Server OS and Web Server?
Shadowdare
Member
I just ordered a VPS and I have the choice between CentOS, Debian, Fedora, or Ubuntu. Which one do you guys think I should run? I think you guys have more experience with VPS/dedicated web servers than I do.
Also, I'm wondering if Apache, Nginx, or Lighttpd would be the best choice for me in terms of fast load times, low memory and CPU usage. I'll be running WordPress and Vanilla forums. @Lincoln, which one does Icrontic run on? Which one do you guys recommend?
Also, I'm wondering if Apache, Nginx, or Lighttpd would be the best choice for me in terms of fast load times, low memory and CPU usage. I'll be running WordPress and Vanilla forums. @Lincoln, which one does Icrontic run on? Which one do you guys recommend?
0
Comments
If I was going to move to another system, nginx is gaining a ton of momentum for its scalability and ease of configuring for more complex tasks. VanillaForums.com (my employer) runs nginx because it makes load balancing a snap. However, I doubt it would be possible or feasible for me to translate our complex URL rewrite rules into nginx - the mod_rewrite module for Apache is pretty incredible. //EDIT: A lot of open source software comes with Apache support out-of-the-box, like WordPress. You'd need to tinker a bit to get it working in nginx.
Lighttpd - my only experience with this is the bugs it causes for being almost-but-not-quite like Apache. I have no desire to investigate it.
PHP 5.2.12 or up will suffice;
Apache probably (that is what my simple shared server WordPress site runs on);
MySQL is needed for WordPress database.
Lincoln knows about Vanilla, but you can get Vanilla hosted at VanillaForums.com. I recommend that, and think Lincoln would also for a Vanilla forum where someone wants the latest software. I had a tiny Vanilla forum there for two months and they were quite responsive to my needs, but I did not do a good job of building interest for my tiny embryo of a forum and had a limited income so I cancelled the hosting.
I hear Debian will make you crazy unless you already know it. It's not noob-friendly. To Fedora I say "why go prosumer when you can just get CentOS?" Ubuntu I hear is fine, I just have no desire to start over and CentOS is too good a fit to bother.
For workstations, I would say Fedora with its 6-7 month major version cycle because workstation hardware updates a lot as folks try to do more and more advanced tasks with them and workstation Application and GUI software gets patched a lot. I have no server here, so I run Fedora. Ran RedHat Workstation way back when. Ubuntu is a fast cycling distribution of Linux also, and from what I understand it is a bit harder to set up for Server use than CentOS.
But CentOS and RedHat have a lot of the web server hosting market right now-- RedHat for Enterprise use, a lot, and CentOS for non-Enterprise use more due to the apps bundled with each and autoinstalled.
I do have a problem with the Apache processes though. Either they're using too much memory. Six httpd processes are running with 22.9% out of 1GB RAM used. Is this normal?
Daemons are processes to Linux. I do not understand why you have 6 instances of httpd running, though, unless you are also serving web sites or hosting ftp processes. Folding only would use 2 instances of httpd, and then only sometimes(when uploading and downloading at once). Modern folding client for Linux uses only one http flow per instance, and can multithread within that instance to fold one WU at a time faster than 4-5 instances would if they did not multithread probably.
If you are running a GUI, Fedora Linux with GUI wants 2 GB these days to handle work space for applications and things like that. Fedora says minimum one GB, recommended 2 GB for Fedora 17 (current version). Folding will grab space also to work, for itself.
If you are serving web sites or ftp, the min and max spare servers settings control how many instances more than one of httpd Apache will call for at need. You can set them to 1 for both spare server settings if you want only Folding to work. Then Apache and the rest of Linux core should only open two http pipes at max from Apache calls, and allow your browser if any to use one while folding is working. If you Torrent, see your Torrent peer client/server setup to limit how much it virtual ftps if it does.
https://www.virtacoresupport.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=102
Also, make sure you set the timeout setting on httpd.conf to something reasonable (keeping in mind what the slowest request or webpage may be to load) so that you don't end up with left open sessions that aren't actually being used.
That's all I can think of really. Good luck!
I switched to Nginx (by itself; not as a proxy) and PHP-FPM and now everything's much faster and there are less processes along with lower memory usage. The learning curve wasn't as steep as I thought it'd be. It's very easy to set up and to convert some htaccess code over.