Note: You are currently viewing documentation for Moodle 2.5. Up-to-date documentation for the latest stable version of Moodle may be available here: Internet Information Services.

Internet Information Services: Difference between revisions

From MoodleDocs
No edit summary
Line 11: Line 11:
* Matches the Pattern - Regular Expressions - <code>^([^\?]+?\.php)(\/.+)$</code>
* Matches the Pattern - Regular Expressions - <code>^([^\?]+?\.php)(\/.+)$</code>
* Action - Rewrite - <code>{R:1}\?file={R:2}</code> - Append query string
* Action - Rewrite - <code>{R:1}\?file={R:2}</code> - Append query string
==Directory permissions==
It is often necessary to manually change directory permissions for Moodle dirroot (read only) and dataroot (read/write) directories.


== See also ==
== See also ==

Revision as of 20:28, 8 May 2012

Internet Information Services (IIS) is the web server software bundled with Windows Server, as well as certain client versions of Windows.

PHP installation

It is strongly recommended to use only the official Microsoft PHP installer from http://php.iis.net/, it automatically installs all necessary components and facilitates easy configuration with PHP manager. Manual installation attempts often fail or may not allow Moodle to function properly.

Configuration for Moodle

Unfortunately IIS does not natively support unicode characters in so called slashargument URL which are used in Moodle for file serving. Moodle requires manual configuration of rewrite rules, the PHP installation via Microsoft Web Platform Installer installs necessary URL Rewrite 2.0 module. Add following rewrite rule to enable support for unicode file names in Moodle:

  • Matches the Pattern - Regular Expressions - ^([^\?]+?\.php)(\/.+)$
  • Action - Rewrite - {R:1}\?file={R:2} - Append query string

Directory permissions

It is often necessary to manually change directory permissions for Moodle dirroot (read only) and dataroot (read/write) directories.

See also