2013-07-04 46 views
1

我是使用moodle的新手。我目前在iis 8中使用moodle版本2.5,在本地机器的Windows 8上使用sql server 2012 express版本作为数据库服务器。在IIS服务器上安装Moodle

我想知道的是如何安装本地mssql?并且我们可以使用本机mssql将它与Windows 8上的sql server 2012 express edition连接起来吗?

我而安装的Moodle得到这个错误:

错误:数据库驱动程序问题检测

网站管理员应验证服务器配置

PHP没有正确与MSSQL扩展配置,使得它可以与SQL * Server进行通信。请检查您的php.ini文件或重新编译PHP。

我该怎么办?感谢

在这篇文章中:

How to get mssql work with PHP 5.3?

我发现:在MSSQL扩展已不存在的Windows使用PHP 5.3或更高版本。 SQLSRV是MS SQL的替代驱动程序,可从Microsoft获得:»http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx

所以如果我用moodle 2.5(它需要5.4.x php版本)所以我不能使用mssql?真的吗?

谢谢

对不起我的英文。

回答

1

你读过按照说明在Moodle Website

这就是:

安装概述

1)获取MSSQL服务器安装和运行。 (A有限的免费版本,SQL Server速成版可用于测试。)

Make sure that you choose mixed authentication (Windows and local accounts) to keep things simpler later. You'll be asked to define the "sa" account password (it's the default System Administrator account which has full access to all databases by default).

2)确保MS SQL Server可以接受端口1433()传入的TCP/IP连接的标准之一。

您可能需要在Windows防火墙中明确允许使用此功能(请参阅控制面板)。您可能还需要编辑以下选项:SQL Server配置管理器 - >网络配置 - >协议 - > TCP/IP启用

3)打开“SQL Server Management Studio”并创建一个新的空数据库。如果你使用“sa”账户,那么你不需要在这里做任何事情。

4)在创建的(现在仍然是空的)数据库配置这些设置:在你创建(现在仍然是空的)数据库配置这些设置:

Use a case sensitive collation, such as Latin1_General_CS_AS. ANSI NULLS Enabled = true (ALTER DATABASE xxxx SET ANSI_NULLS ON) Quoted Identifiers Enabled = true (ALTER DATABASE xxxx SET QUOTED_IDENTIFIER ON) (Moodle 2.x only) Row Versioning Enabled (ALTER DATABASE xxxx SET READ_COMMITTED_SNAPSHOT ON) This is not settable via the DB properties. To set READ_COMMITTED_SNAPSHOT, there must be no active connections to the database except for the connection executing the ALTER command. If you are viewing the DB in the Server Management Studio, disconnect from any servers in the "Object Explorer" (right-click > Disconnect), then create a "New Query" and run the ALTER command. See http://msdn.microsoft.com/en-us/library/bb522682.aspx for details. If your DB name starts with a number, you may need to put quotes around the DB name in the query.

5)获取与Web服务器安装了PHP。除非你想在IIS或其他方式下使用它,否则Moodle下载页面上的软件包是一个很好的解决方案。

6)为您的服务器选择以下特定部分之一,以便安装在您的PHP框中安装并正确运行的mssql扩展替代。

7)在php.ini文件

mssql.textlimit = 20971520 
mssql.textsize = 20971520 

8),这一切都正确配置,你可以用一个标准的Moodle继续安装设置以下设置。