Solved

Configuring WAMP (Windows/Apache/MSSQL/PHP) environment

Posted on 2006-11-10
8
7,117 Views
Last Modified: 2010-10-14
Hi,

I have used MySQL for a long time in the WAMP setup but am unsure how I go about getting the WAMP setup with MSSQL.

This is probably an easy solution but a simple step through guide would be much appreciated.
0
Comment
Question by:bisleyboy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 250 total points
ID: 17913152
Hi,

The Windows, Apache and PHP installation stuff remains the same - for the mssql you just need to install it then for php to run

" 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. Configuration of the client will require installation of all the tools."

then enabling this library in the php.ini file

http://au3.php.net/mssql

and then using the mssql functions inside php rather than the mysql ones (most are pretty similar)
0
 

Author Comment

by:bisleyboy
ID: 17913477
do i not need to reconfigure it or is that just for the unix/linux installations?
0
 
LVL 35

Expert Comment

by:Raynard7
ID: 17913508
thats only for *nix installations

in fact you can have WAMP and also have mssql on the same server
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

Author Comment

by:bisleyboy
ID: 17913520
aah ok - didnt realise that it was this easy - The thing that was throwing me was that there was no MS SQL section like there is a MySQL section in phpinfo();
0
 

Author Comment

by:bisleyboy
ID: 17913789
Fatal error: Call to undefined function: mssql_connect() in C:\web\mssql.php on line 2

not sure everything is as it should be. Various bits and pieces I have noticed are detailed below - hope this helps in some way!

<<php.ini>>
extension_dir = "./"
...
;extension=php_mime_magic.dll
;extension=php_ming.dll
extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
<<php.ini>>

php_mssql.dll is in the php folder (c:\php) as is the ntwdblib.dll (it's also in c:\windows\system32 || version 2000.2.8.0)

I noticed the following in the php.ini as well - do i need to make changes to this.


[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1
0
 
LVL 35

Expert Comment

by:Raynard7
ID: 17918659
is php giving you any errors when you are trying to load apache? have you restarted apache?
if the extension if uncommented in the ini file then should load and if not then there should be an error.
0
 

Author Comment

by:bisleyboy
ID: 17958156
I have decided that learning ASP may be an easier option as the script is going to run on IIS in the end anyway and I think I can get that to work.

Many thanks for the advice though
0
 

Expert Comment

by:gtmathewDallas
ID: 33907730
Where i can download ntwdblib.dll version 2000.2.8.0? Please help me..
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question