in reply to Re^2: Do XS-components require special considerations with CGI?
in thread Do XS-components require special considerations with CGI? [SOLVED]

So you've installed CPAN modules with binary parts locally? And it runs from the command line but not in the browser? Did you try something like this:

chmod -R 755 ~/lib

(where I'm assuming all your local modules are under ~/lib)

Have you tried calling the host's customer support? Are you the first customer they've ever had to try using mysql?

If so - maybe their installation is broke, and if you report it they will fix it. Else, if other customers have done it, maybe they can tell you what they did different (assuming they've done something non-standard they requires extra steps)

Final option - switch hosts!

Replies are listed 'Best First'.
Re^4: Do XS-components require special considerations with CGI?
by locked_user sundialsvc4 (Abbot) on Feb 26, 2009 at 23:31 UTC

    chmod had no useful effect.

    Yes...

    1. If I “run” the script from the command line on that host, in a few milliseconds I get the correct, database-based, HTML output.
    2. If I attempt to access the page from the site, I get the application's error-screen, and the message previously mentioned is in the application's log.
    3. If I do the selfsame thing on my development system, it works.

    “Switching hosts” is not a practical alternative. What I did notice, when I googled "Undefined subroutine &DBD::mysql::db::_login", is that the problem isn't new. In fact, there are several sites out there which are exhibiting the very same problem right now.

    There were people yanking their hair out over this one in 2001, and even then not finding answers. Disturbing...

      There were people yanking their hair out over this one in 2001, and even then not finding answers. Disturbing...
      They found it, they just didn't share :)

      Please see Re: Do XS-components require special considerations with CGI? and report the results. The differences when run from shell/cgi should be telling.