Moodle

Hi

Anyone experienced running Moodle under Nginx instead of Apache?

If yes,

  1. how to get fastest possible Moodle access under Nginx?
  2. I thought Nginx doesn’t handle dynamic pages well?
  3. Can I do away with Apache then?

Frankie Kam
http://scm.moodleace.com

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,173417,173417#msg-173417

On Tue, Feb 8, 2011 at 8:15 PM, frankiekam [email protected] wrote:

Hi

Anyone experienced running Moodle under Nginx instead of Apache?

Moodle runs just fine (as fine as it can, I am not a fan)

If yes,

  1. how to get fastest possible Moodle access under Nginx?

I don’t think it requires anything special off the top of my head. If
it supports friendly URLs, then you’d need to add in whatever rewrite
for that.

  1. I thought Nginx doesn’t handle dynamic pages well?

nginx doesn’t handle it, it proxies the FastCGI request off. I
recommend PHP-FPM. I have used this combo for years, and Moodle
underneath that as well for probably going on two years now.

  1. Can I do away with Apache then?

Yes.

On 9 Fev 2011 04h15 WET, [email protected] wrote:

Hi

Anyone experienced running Moodle under Nginx instead of Apache?

If yes,

  1. how to get fastest possible Moodle access under Nginx?
  2. I thought Nginx doesn’t handle dynamic pages well?

Neither does Apache. What handle the dynamic pages is the PHP
interpreter living under the table that Apache with mod_php provides.

  1. Can I do away with Apache then?

Yes. I had to enable cgi.fix_pathinfo to get it work. I dit it through
a php.ini file in the root directory of the site.

Could be something with my config. Moodle is an app I know quite
badly, also the client was in a hurry to get the site migrated
completely to Nginx. I didn’t had much time to try different
approaches. This one was working, hence…

— appa

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs