Jump to content

PHP on Ubuntu Linux randomly fails to connect to MSSQL 2005


sdhild99

Recommended Posts

Hi there!

 

(Not a Linux guru!) At work we have for the past month had a serious issue that we haven't been able to solve. From a server running Ubuntu-Linux we are using PHP to connect to a server running Microsoft SQL Server 2005. This has been working without problems for a long time. At the start of February 2013 we moved the SQL Server machine into the same core network as the Linux-machine, which involved changing IP-address on the Windows-server running SQL Server 2005.

 

After this operation we've had issues connecting to the SQL Server from this particular Linux-machine. Maybe one out of 1000 connections fails with the following error message:

PHP Warning:  mssql_connect(): Unable to connect to server:

 

I'm not aware of any other changes to either of these two servers. We've tried to look at 'everything'.

 

FreeTDS

php.ini adjustments

IP-address in SQL Server Configuration Manager

Unlimited number of concurrent connections in SQL Server

Network and firewall issues (No packet loss during 24 hours)

 

Any suggestions to  how we can pursue error searching for this problem? Any more info anyone would like to know about this setup? It's kinda serious for us since many of our cronjobs fail to execute normally due to this random connection problem.

 

Rgds,
Sven David, Norway

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.