1

I have a problem while connecting MSSQL ODBC. I tried using ISQL and it shows result, but when I use PHP script, there is no result.

I am using Ubuntu server 12, and PHP Version 5.3.10-1

enter image description here

Racil Hilan
  • 22,887
  • 12
  • 43
  • 49

1 Answers1

-1

Make sure the MSSQL port(1433) is accessible via your webserver, If the webserver not able to reach that port it through communication error. We had the same problem with Centos 7. We have given enough access to webserver(httpd). It worked fine.

NAVIN NEO
  • 1
  • 2
  • Thanks for answering my question sir, it will help me – galih utama Apr 24 '17 at 14:35
  • Can you please provide any more details? We are having the same issue, and unsure of the solution. From the same CentOS 7 server where httpd is running, I can connect to SQL Server with sqlcmd and with isql as well, but PHP app shows communication problem. – Gábor Major Jul 23 '20 at 21:10