"Nginx: the High-Performance Web Server and Reverse Proxy. Having performance issues with your Web server? Maybe the Russians can help."
http://www.linuxjournal.com/article/10108 (goes online only 3 months later)
I have not looked at lighttp but it also sounds like a good alternative.
Hi Dave, any good documentation on the Web how I can install Nginx so that my Moodle site can run on it? I am currently using a Linux Centos 5 VPS (512Mb RAM) running on Apache 2 and PHP 5.1.x for my Moodle site. I am itching to convert my VPS site into Nginx since I have read good things about it.
I am using nginx on ubuntu 10.04 and ubuntu has nginx packages available so it was easy to install using the package manager.
I just did a quick search and it looks like the packages required to install nginx and its dependencies are not available in the standard CentOS repositories.
If you have a look at http://library.linode.com/web-servers/nginx/installation/centos-5 they explain the details on getting nginx working.
Once you get nginx working I can post my nginx config file for both moodle 1.9 and 2
Thanks for the speedy reply. I've just signed on for a 2nd VPS where I hope to install Nginx on. I don't think it will be in Ubuntu since my Web Host provider by default will give me a CentOS VPS.
THANKS for the speedy reply and for the Install-On-Centos-link.
Very useful indeed !!
BTW what about Ubuntu 8.04?
My Web Host only has Ubuntu 8.04...will that do?
I slaved over installing Nginx on Centos5 and managed to get the "Welcome to Nginx" welcome message. Then I tried installing Moodle 1.9.10 and got stuck with some permission 404 issue..
I'm "crossing the Rubicon" with my decision to have my Web Host reformat my new VPS with ubuntu 10.04.
I'm going to go for a Nginx installation (my Web Host won't do this for me) and then install Moodle 1.9.10 onto it. After that, I'm gunning for this: add eAccelerator and Varnish. As in the webpage: http://www.travisberry.com/2010/10/lightning-fast-php-server-with-nginx-eaccelerator-and-varnish/
My classes are at the most 25 students. So I don't think I'll miss Apache too much. I'm choosing Ubuntu for its ease of use and installation of packages. And for Ubuntu's extensive support and large community of users.
Dave, please advise me if you can on how to get Moodle installed on Ubuntu 10.04. I hope you can share with me how to get a clean, lean, fighting Nginx machine for my Moodle computer lab classes.
My VPS is a 256Mhz CPU with 512Mb RAM, but with only a 512Kbs Internet pipe. So, I'm itching to see if with Nginx on it, plus eAccelerator, plus Varnish, Moodle 1.9.10 on my new VPS can outperform my older VPS's Moodle 1.9.7 which is at http://scm.moodleace.com.
regards Comrade, for the Motherland...
You are sure keen to try Nginx which is good. I guess the only way to see if Nginx is the way to go for you is to try it and see what happens. I don't use eAccelerator or Varnish so I can't help with that one. I'm busy till Friday, so Friday night I'll write up the instructions on getting moodle running with nginx and fastcgi. I've been meaning to do it for a while (in case I forget) so it will be a good thing to do.
I paid USD15 for this site's access to Ubuntu command line code:
Best money I've paid so far for copy-and-paste code to get my VPS running from zero to hero. This site really comes in handy especially when it jives with my intention of using Nginx for my new Moodle site. Excellent stuff!
It's really tough going installing Nginx for Moodle. So far, I've managed to install Nginx on my Centos. http://184.108.40.206/index.html
gives me (after many, many hours!) the rewarding:
Welcome to nginx!
Since I'm getting permission errors whilst trying to install Moodle on my system, I'm taking a much-needed break from this grueling process...
Dave, I kinda wish that you and others who have successfully installed Ngix for Moodle, depeding on your availability and time, could/would create/write/publish/share detailed step-by-step instructions all the way from installing Nginx to getting Moodle running on it.
I had a friend do the setup for me on a new VPS running Ubuntu 10.04. I've attached his instructions (INSTALL.txt) and copies of the relative config files.
So we're running nginx, with squid functioning as a reverse proxy. (Fun!). Moodle is mostly working okay, though I am having a few issues with attached files at the moment.
As I said, I had someone else set this up and leave me semi-complete instructions, so hopefully they're thorough but their might be a step or two where you have to improvise. Also, I'm not sure which parts of the config files were changed and which were largely the same as before, but I guess just compare them to what you've got and add in what's missing.
Or if you get stuck, you could hire him to do it for you :P
Hope this helps! (And sorry I don't have more complete instructions)