Hi
Anyone experienced running Moodle under Nginx instead of Apache?
If yes,
- how to get fastest possible Moodle access under Nginx?
- I thought Nginx doesn’t handle dynamic pages well?
- Can I do away with Apache then?
Frankie Kam
http://scm.moodleace.com
Posted at Nginx Forum:
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,
- 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.
- 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.
- 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,
- how to get fastest possible Moodle access under Nginx?
- 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.
- 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