Re: DBD::Sybase with FreeTDS on Linux works, but fails when run under Apache

Michael Peppler <[email protected]> Sun, 03 Jun 2007 08:30:19 +0200
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Organization Peppler Consulting SaRL
Message-ID <[email protected]>
Ed Avis wrote:
> I am using Fedora Linux 6, with FreeTDS 0.64, and DBD::Sybase 1.08.  The following test program works:

> However, when I do the same DBI connection from a CGI script running under Apache I get an error like
> 
> DBI connect('WCL-SQL-TEST','WaniSystems',...) failed: (no error string) at /var/www/cgi-bin/test line 34

Check the SElinux settings. By default this is turned on, and prevents 
CGI scripts from openening "untrusted" shared libraries.

Michael
-- 
Michael Peppler           -                 Peppler Consulting SaRL
[email protected]      -                  http://www.peppler.org
Sybase DBA/Developer      -   TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ       -   http://www.peppler.org/FAQ/linux.html