delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <41C304C5.2030901@delanobay.com> |
Date: | Fri, 17 Dec 2004 08:09:41 -0800 |
From: | kurt heston <kheston AT delanobay DOT com> |
Reply-To: | kheston AT delanobay DOT com |
User-Agent: | Mozilla Thunderbird 0.7.2 (Windows/20040707) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Can't use DBI and mod_perl together in Cygwin. |
I've traced my problem to the TCP/IP stack. The code below gives: "Can't get tcp protocol by name at /var/www/htdocs/groups/Purch/bin/secure/test.cgi line 12" <pre> #!/usr/bin/perl use CGI; use Net::Ping; $query = new CGI; print $query->header; print "<html><head><pre>\n"; $p = Net::Ping->new('tcp'); print "$host is alive.\n" if $p->ping("panther2"); print "$host is not alive.\n" if !$p->ping("panther2"); $p->close(); print "</pre></head></html>\n"; </pre> The DBD code that won't work from within Apache works fine from the command line: $DBH = DBI->connect("Apache::DBI::Oracle:",q{uid/password@(DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST=server)(PORT=1521)) (CONNECT_DATA=(SID=databaseSID)))}, ""); When this code is called from within the Apache process (within Cygwin), I invariably get a 12545 error. Again, the DBI apis work fine from the Cygwin command-line. I can connect and run queries without issue so long as I don't try it within a CGI script. Pointers? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |