LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > FreeTDS - PHP-MSSQL Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-31-2006, 04:51 PM
mfarroyo mfarroyo is offline
New Member
 
Join Date: Mar 2006
Posts: 2
Default FreeTDS - PHP-MSSQL Support

I am using CentOS 4.3. Using the standard Apache and PHP, I can successfully connect to an external MS SQL Server 2000. I am using freetds-0.62.4-1 and php-mssql-4.3.9-3.2.1.

I understand that I have to modify the php.ini in lsws/conf directory to include the external modules (for instance, I added the following lines:


extension_dir = /usr/lib/php4
zend_extension="/usr/lib/php4/mysql.so"
zend_extension="/usr/lib/php4/mssql.so"

using such a configuration, I can successfully connect to the mysql, but not to the mssql databases .... what else would I need to do to get the mssql connection running.

Thanks all in advance
Reply With Quote
  #2  
Old 04-01-2006, 01:57 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
1) Make sure lsws is shutdown and the lsws logs direction is empty.

2) cd /yourlswsinstall/logs/

3) ../fcgi-bin/lsphp -v

4) Now check that the /logs/ directory doesn't contain any error logs from php complaining about errors loading modules.

5) verify that mssql.so is loaded by running ../fcgi-bin/lsphp -i

Note the .so extensions must be php version exact. If your mssql.so is compiled for mysql 4.3.9 and lsws is running php 4.3.8 or anything different, the .so will not load correctly.
Reply With Quote
  #3  
Old 04-05-2006, 12:23 AM
mfarroyo mfarroyo is offline
New Member
 
Join Date: Mar 2006
Posts: 2
Default Thanks

Yes, you are correct. They are indeed different versions.

Thanks!
Reply With Quote
  #4  
Old 06-27-2006, 04:13 AM
redani redani is offline
New Member
 
Join Date: Jun 2006
Posts: 1
Default FreeTDS & Linux

Hello, how are you?

I've been vainely trying for a month to connect my mysql database hosted on linux to a remote MSSQL database.
I followed all the steps described in the different forums but i couldn't make it...
could you please tell me how you made it?
my linux server is a red hat.

Thank you for your help.
Best regards,
Reda
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable php support in one of virtual hosts? elvis7 Install/Configuration 8 10-31-2008 03:14 PM
replacing system php felosi PHP 3 07-16-2007 11:23 PM
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
max_execution_time did not changed piper Install/Configuration 12 01-24-2007 11:27 AM
Premature end of response header alex Bug Reports 10 06-11-2006 07:48 AM


All times are GMT -7. The time now is 04:13 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.