[freetds] [Fwd: Problems configuring php with freetds]

Daniel Fazekas fdsubs at t-online.hu
Wed Jun 4 16:07:38 EDT 2008

On Jun 4, 2008, at 21:58, me at mikesoh.com wrote:

> Warning: mssql_connect() [function.mssql-connect]: Unable to open  
> socket (severity 9) in /home/sohmc/www/mssql_functions.php on line 4
> Any thoughts?

Maybe you got a RHEL, Fedora, CentOS or similar system with SELinux?
If so, you'll have to allow remote database connections.

Try first (more restrictive):
setsebool -P httpd_can_network_connect_db 1

If that didn't help, do:
setsebool -P httpd_can_network_connect 1

More information about the FreeTDS mailing list