Solved

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

Posted on 2006-11-10
8
7,110 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
  • 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
 

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now