你讀過按照說明在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繼續安裝設置以下設置。