2024年4月16日发(作者:)

第一步 安装Web服务器和PHP运行环境

必须先安装好apache-httpd之后,再安装PHP5.3,否则需要手工配置apache-httpd的配置文件,否则不支

持php运行。

重启Apache

这时候弹出找不到php_ 和php_ 出现几个DLL错误

解决办法:

复制php5文件夹下面的, , 以及php5/ext文件夹下面的

php_,php_ 复制到C:/windows/system32 里面.

重启apache 。

------------------------------------------------------------

第二步 安装moodle

1、 安装支持MS SQL Server 2005 (不成功,最低支持MSSQL2008,2008以前的版本只能用php_

驱动,而该驱动无法支持ntext类型,moodle安装不成功)

a) 修改数据库

Make sure MS SQL Server can accept incoming TCP/IP connections on port 1433 (the standard

one).

You might need to explicitly allow this in your Windows firewall (see the Control Panel).

You may also need to edit options in the :SQL Server Configuration Manager -> Network

Configuration -> Protocols -> TCP/IP enabled

修改新建的数据库

USE MASTER

GO

ALTER DATABASE

threenet_moodle

SET ANSI_NULLS ON

ALTER DATABASE

threenet_moodle

SET QUOTED_IDENTIFIER ON

ALTER DATABASE

threenet_moodle

SET READ_COMMITTED_SNAPSHOT ON

GO

b) 下载,拷贝其中的 php_sqlsrv_53_nts_ 和 php_pdo_sqlsrv_53_ts_ 到

php/ext/文件夹下面

c)

编辑 ,添加一行extension=php_sqlsrv_53_nts_

d)

编辑 ,添加一行extension= php_pdo_sqlsrv_53_ts_

e) 修改 中的_connection = Off 该成 On

f) 修改 中mit = 20971520

g) 修改 中ze = 20971520

2、 改用安装mysql5.5.20

a) create database threenet_moodle;

b) root/root

c) mysql server instance configuration wizard 到最后总是未响应的原因:1)Error: unable to create

temporary file; errno: 2,解决方法:设置好系统的tmpdir环境变量,确保tmpdir的目录存在。 2)

在服务管理中,找已经有一个mysql的服务的,先把这个服务给删了,然后把已安装的卸了再装。

d) 成功安装 test数据库 root/root

3、 国际化支持

a) The Internationalization extension (Intl) is a wrapper for the ICU library, a set of C/C++ and Java

libraries that provide Unicode and Globalization support for software applications. It enables PHP

programmers to perform UCA-conformant collation and date/time/number/currency formatting in their

scripts

b) MS Windows To enable this extension add the following line to your file usually found in /php:

extension=php_

And then set the t_locale and _level directives in your file.

[intl]

t_locale = en_utf8

_level = E_WARNING

The _level directive is optional.

本步骤需要下载php_文件及其依赖文件, ,

4、 启动apache web server

5、 shirui-55:8080/ 开始安装moodle ,初始化287 tables安装结果如下:

系统 成功

qtype_calculated

成功qtype_calculatedmulti

成功qtype_calculatedsimple

成功qtype_description

成功qtype_essay

成功qtype_match

成功qtype_missingtype

成功qtype_multianswer

成功qtype_multichoice

成功qtype_numerical

成功qtype_random

成功qtype_randomsamatch

成功qtype_shortanswer

成功qtype_truefalse

成功mod_assignment

成功mod_chat

成功mod_choice

成功mod_data

成功mod_feedback

成功mod_folder

成功mod_forum

成功mod_glossary

成功mod_imscp