title: Investigating mssql_connect problems in PHP
body: <p>Today, I restarted my CentOS server and after that my PHP application started to fail in accessing our MsSQL server.</p>
  
  <pre><code>[Sun Mar 13 23:44:31 2011] [error] [client 88.154.*.*]
  PHP Warning:  mssql_connect()
  [&lt;a href='function.mssql-connect'&gt;function.mssql-connect&lt;/a&gt;]: Unable to connect to server:  85.*.*.109
  </code></pre>
  
  <ul>
  <li>MsSQL server uses port 1433.</li>
  <li>I'm able to get a connection when I try <em>telnet ip 1433</em> to MsSQL server.</li>
  <li>Username and password combination is correct, I'm able to login from another machine.</li>
  <li>Nothing has been changed in security settings of MsSQL server.</li>
  </ul>
  
  <p>How can I see what's wrong?</p>