IIS下安装moodle课程资源连接无效,scorm课件无法访问

大家对moodle应该是很熟悉了,我也一直用这个平台来测试日常制作的一些scorm课件,这几天因为本本系统格式化后,重新安装了moodle,我的安装条件是在IIS下配置php运行环境,更多的教程可以查看http://www.google.cn/search?hl=zh-CN&q=moodle+IIS+%E5%AE%89%E8%A3%85&meta=&aq=f&oq=,安装以后导入scorm课件正常,可是在播放的时候就出问题了,点击左边的课程目录,后面的链接提示无效,看下图:

 

仔细查看了右边课件链接的路径,感觉有问题,问题出在哪里呢?应该是课件对应的SCO的id等参数没有传过来,导致课件无法访问。 

找了很多资料,国内好像很少或者说根本没有提到这个问题,难道大家都没有碰到?

最后在官方找到解决办法如下:

正确的安装步骤:

Installation for Windows Server 2003 with IIS and a MSSQL database

The above instructions will help you setup Moodle with MySQL. But what if you want to (or have to) use MSSQL as your database engine?

Installing Moodle on Windows Server 2003 with IIS and MSSQL 2005 is a 9 step process:

  1. Setup PHP on the web server
  2. Install FastCGI on the web server
  3. Configure the PHP script mapping in IIS
  4. Create a Moodle application in IIS
  5. Configure PHP to work with Microsoft SQL Server 2005
  6. Create the Moodle database and database login
  7. Test the PHP configuration - if PHP is not working or has not been configured correctly Moodle will not install.
  8. Install Moodle
  9. Install and configure URL rewriting extension (see bellow)
  10. Setup a Moodle Cron Job

Detailed instructions on how to successfully perform each of the above steps is available on www.moodlewindows.za.net.

URL rewriting / Slasharguments

In order to use html resources or SCORM packages you need to configure URL rewriting. The features is not available in IIS, you need to install a 3rd party extension for that - see list in http://msdn.microsoft.com/en-us/library/ms972974.aspx

You can use following simple URL rewriting rule:

RewriteRule ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 [QSA]

Theoretically you might configure PATH_INFO server variable, but it is not reliable especially when using unicode file names

这个也许还有很多人看不懂,再说的直接一点,那就是在正常的IIS下安装php环境和mysql数据库后,注意,在1.9.2以后需要数据库采用unicode进行编码才能继续安装了。

然后进行正常的moodle安装,直到完成,最后来解决文章开头提示的访问路径的问题。

  1. 到这里 http://www.isapirewrite.com/. 下载 ISAPI_Rewrite Lite version ,免费版本.
  2. 运行下载的软件.
  3. 打开软件安装所在的目录下的httpd.ini文件,一般默认目录为 C:\Program Files\Helicon\ISAPI_Rewrite\
  4. 打开后httpd.ini 的内容如下:
         [ISAPI_Rewrite]
         # Defend your computer from some worm attacks

         RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
  5. 添加规则如下:
         RewriteRule (.*?\.php)(\/.+) $1\?file=$2 [N,I]
         RewriteRule ^([^\?]+?\.php)(\/.+)$ $1\?file=$2 [QSA]
  6. 重新启动IIS.
  7. 再打开moodle测试课件效果如下:

 

标签:moodle1.9IIS安装moodlescorm课件课件链接错误
分类:平台开发| 发布:可木| 查看: | 发表时间:2009-6-18
如果网站内容侵犯了您的权利,请跟站长联系!www.iscorm.cn scorm标准研究与elearning研究网站
本文链接:http://www.iscorm.cn/post/561.html

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

1 #可木
可木 工具下载地址,最新的http://www.helicontech.com/download-isapi_rewrite.htm
2010-11-22 15:54:26 【REPLY】
2 #洪老师
洪老师 详细问题见这里http://moodle.org/mod/forum/discuss.php?d=116215
2010-11-22 17:11:30 【REPLY】
Design By Seanloo.cn| 管理 | Power By Z-Blog 1.8 Walle Build 100427.