ใครเคยติดตั้ง moodle โดยใช้ MSSQL บ้างครับ

ใครเคยติดตั้ง moodle โดยใช้ MSSQL บ้างครับ

โดย kittisak pothima -
Number of replies: 3

ทดสอบกับ

OS : Windows server 2003 R2
Web server : IIS 6.0 , PHP 5.2.5
DB : SQL server 2005
App : Moodle1.7

1. ทดสอบติดตั้ง moodle กับ MSSQL โดยตรง มันฟ้องว่า ไม่สามารถโหลด Extension มาใช้งานได้ให้แก้ไขใน php.ini (เราก็แก้ extension=php_mssql.dll  แล้วนี่ ทำไมยังไม่ได้

สรุปตรงนี้เป็น Bug ต้องแก้ไขคือ  ให้ copy 'c:\php\ext\php_mssql.dll' และ 'c:\php\ntwdblib.dll' จากห้อง php\ext ไปไว้ใน windows\system32 ด้วย  

พอทำตรงนั้นเสร็จ ก็ยังไม่ผ่าน มันฟ้องว่า ไม่สามารถติดต่อกับ ฐานข้อมูลได้ ก็เลยค้างไว้... (หาทางแก้ไม่ได้) ใครรู้ช่วยหน่อย

2.  เลยเปลี่ยนมาทดสอบติดตั้ง moodle โดย ผ่าน ODBC ทดสอบจาก ODBC สามารถติดต่อกับ SQL server ได้ ไม่มีปัญหา แต่ตอนที่มาติดตั้ง moodle จิงๆ กลับติดต่อไม่ได้ (เฮ้อ..)

ใครเคยทำแล้วได้บ้างอ่ะครับ แชร์หน่อยสิ

In reply to kittisak pothima

ตอบ: ใครเคยติดตั้ง moodle โดยใช้ MSSQL บ้างครับ

โดย watcharin mespharn -

เคยใช้ครับ ติดปัญหาดังกล่าวเหมือนกันครับ ลองเข้าไปใน ส่วนของ moodle docs ครับจะมีการใช้งานในส่วนของ ติดตั้งผ่าน SQL Server นะครับ ซึ่งของผมเองในตอนนั้นก็ติดอยู่นานเหมือนกันครับ แถมต้องใช้  mssql2000 อีก   เลยแนะนำว่าให้ทดลองให้วิธีของ freetds และ  ODBTP  ซึ่งแนะนำให้ใช้วิธีแรกนะครับจะง่ายกว่า และ ถ้าใช้ version ต่ำกว่า mssql2005 ต้องไปแก้ไฟล์ XML ด้วยนะครับ ลองทำตามเอกสารดูก่อนล่ะกันครับ

In reply to watcharin mespharn

ตอบ: ใครเคยติดตั้ง moodle โดยใช้ MSSQL บ้างครับ

โดย คุณอนันต์ ภักดี -

รู้สึกว่าต้องกอปปี้ไฟล์ตัวหนึ่งคือ ntwdblib.dll

The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access through named pipes. Configuration of the client will require installation of all the tools.

จาก http://th2.php.net/manual/en/mssql.setup.php

In reply to watcharin mespharn

ตอบ: ใครเคยติดตั้ง moodle โดยใช้ MSSQL บ้างครับ

โดย คุณอนันต์ ภักดี -

รู้สึกว่าต้องกอปปี้ไฟล์ตัวหนึ่งคือ ntwdblib.dll

The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access through named pipes. Configuration of the client will require installation of all the tools.

จาก http://th2.php.net/manual/en/mssql.setup.php