]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - doc/INSTALL.mssqlnative
Allow bold, italics or underlined for numbers
[SourceForge/phpwiki.git] / doc / INSTALL.mssqlnative
1 Installing phpwiki with MS SQL Server Native Driver for ADOdb
2 -----------------------------------------------------------
3
4 Microsoft has been working hard to get support for their products
5 into Open Source projects. The MS SQL Server 2005 Driver for ADOdb
6 is one step in that direction. The following is instructions on how
7 to get and install the new mssql php driver for ADOdb as well as
8 how to get the new driver to work with phpWiki.
9
10 As of the writing of this walkthrough, the latest version of the PHP
11 driver for SQL Server 2005 is the May 2008 Community Technical Preview.
12 If you don't already have a copy of the SQL Server 2005 for PHP 
13 driver installed on your server, you can get a copy at:
14 http://www.microsoft.com/sql/technologies/php/default.mspx
15
16 This assumes that you have PHP 5 installed as well as a working copy of
17 any edition of SQL Server 2005 or SQL Server 2000 (including Express 
18 Edition). If you do not have a copy of the free SQL Server 2005 Express
19 Edition you can download it from:
20 http://go.microsoft.com/fwlink/?LinkId=64064
21
22 1. If you do not have a database created already, create one using
23    the SQL Server Management tool. You can get the free Express version at:
24    http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-
25    4E3D-94B8-5A0F62BF7796&displaylang=en
26    
27 2. If necessary create a user for that database which has the rights
28    to select, insert, update, delete. For more information on how to use
29    SQL Server 2005 you can download SQL Server 2005 Books Online at:
30    http://www.microsoft.com/downloads/details.aspx?FamilyId=BE6A2C5D-00DF-
31    4220-B133-29C1E0B6585F&displaylang=en
32
33 3. Create the tables and functions inside your database by running the SQL 
34    file included with the phpWiki project located at: 
35    schemas/sqlsrv-initialize.sql
36
37 4. Edit the DATABASE settings in config/config.ini to reflect your settings.
38
39    a) DATABASE_TYPE should be set to 'ADODB' (case sensitive)
40    b) DATABASE_DSN should be set to something like:
41       'mssqlnative://username:password@pathtosqlserver/databasename'
42    c) Note that if you set DATABASE_PREFIX to a non-empty string, you will 
43           have to edit schemas/sqlsrv-initialize.sql before you perform step
44       three (above). You might also edit schemas/sqlsrv-destroy.sql at the 
45           same time, so you don't forget.
46    d) USE_SAFE_DBSESSION should be set to 'true'
47         
48    Note: DATABASE_DIRECTORY and DATABASE_DBA_HANDLER are ignored for mssql.
49
50 That's it. phpWiki should work now.