Re: DBD::Sybase with FreeTDS on Linux works, but fails when run under Apache
Michael Peppler <[email protected]> Mon, 04 Jun 2007 12:56:15 +0200
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Organization | Peppler Consulting SaRL |
| Message-ID | <[email protected]> |
Ed Avis wrote: > Michael Peppler wrote: > >>> I am using Fedora Linux 6, with FreeTDS 0.64, and >>> DBD::Sybase 1.08. > >> Check the SElinux settings. By default this is turned on, and >> prevents CGI scripts from openening "untrusted" shared libraries. > > Thanks, that was it. I went to System -> Administration -> Security level and firewall -> SELinux -> Modify SELinux settings -> HTTPD settings and ticked a bunch of stuff. Now the CGI script is able to connect. > > Could DBD::Sybase be changed to report a better error message when it cannot load the ctlib shared library? > Unfortunately not, because DBD::Sybase itself simply can't load if the shared library can't be loaded. 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