Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Daniel Fazekas <fdsubs AT t-online.hu>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] [Fwd: Problems configuring php with freetds]
  • Date: Thu, 5 Jun 2008 22:33:46 +0200

On Jun 5, 2008, at 20:01, me AT mikesoh.com wrote:

Nope...no SELinux. I have Ubuntu

Check with Ubuntu people then, maybe there's a similar procedure.
Wikipedia seems to suggest that they also use SELinux now.

I tried doing a fopensock on the server. PHP opens the socket using fopensock, but cannot use mssql_connect.

The main issue here is not what PHP is calling, it's that PHP runs inside your Apache webserver.
Default security policies now often prohibit the webserver to initiate connections to arbitrary third-party addresses and ports. By default, it is only allowed to answer incoming requests or use local databases. If you need more, you have to enable it yourself.

Try to run you PHP script from the command line, rather than the web environment, and you'll probably see that the database connection is allowed there.
If not, then just ignore this thread and look elsewhere; starting with enabling FreeTDS logging:
http://www.freetds.org/userguide/logging.htm




Archive powered by MHonArc 2.6.24.

Top of Page