freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] [Fwd: Problems configuring php with freetds]
- 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
-
[freetds] [Fwd: Problems configuring php with freetds],
me, 06/04/2008
- Re: [freetds] [Fwd: Problems configuring php with freetds], ZIGLIO, Frediano, VF-IT, 06/04/2008
- <Possible follow-up(s)>
-
Re: [freetds] [Fwd: Problems configuring php with freetds],
me, 06/04/2008
- Re: [freetds] [Fwd: Problems configuring php with freetds], Daniel Fazekas, 06/04/2008
-
Re: [freetds] [Fwd: Problems configuring php with freetds],
me, 06/05/2008
- Re: [freetds] [Fwd: Problems configuring php with freetds], Daniel Fazekas, 06/05/2008
-
Re: [freetds] [Fwd: Problems configuring php with freetds],
Michael Soh, 06/06/2008
- Re: [freetds] [Fwd: Problems configuring php with freetds], Daniel Fazekas, 06/06/2008
- Re: [freetds] [Fwd: Problems configuring php with freetds], Michael Soh, 06/09/2008
Archive powered by MHonArc 2.6.24.