in reply to mod_perl and Apache::DBI - Installation help

`perldoc Apache::DBI'
... SYNOPSIS

# Configuration in httpd.conf or startup.pl:

PerlModule Apache::DBI # this comes before all other modules using DBI

You might also wanna read cgi_to_mod_perl,mod_perl ... http://perl.apache.org


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
** The Third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: mod_perl and Apache::DBI - Installation help

Replies are listed 'Best First'.
Re: Re: mod_perl and Apache::DBI - Installation help
by S_Shrum (Pilgrim) on May 18, 2003 at 21:10 UTC

    I've read all the sources that you listed and made the following change to my httpd.conf:

    LoadModule perl_module modules/mod_perl.so Alias /cgi-bin/ g:/websites/cgi-bin/ <Location /cgi-bin> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> <Files ~ "\.pl$"> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI </Files> PerlModule Apache::DBI

    Now I'm getting Internal Server Errors on my Apache::DBI scripts. If I remove the Apache::DBI and leave in my DBI clause, DBI functions work.

    Nothing is being generated error log wise so I am a bit stumped on where to go from here.

    Any more help would be apprechiated.

    Settings: SERVER_SOFTWARE: Apache/1.3.24 (Win32) PHP/4.3.1 mod_perl/1.27_01-dev

    TIA

    ======================
    Sean Shrum
    http://www.shrum.net

      To see errors during startup, start httpd manually instead of using a script for it and watch the console.

        The server errors are to the browser...Apache is running fine as is my other scripts that do not implement the Apache:DBI calls. The problem I believe is either with the script but the script itself (or Perl) which is not generating any results in the error logs or my 'carpout(\*LOGGY) if open(LOGGY,'>>'.__FILE__.'.err.log');' file OR with my configuration.

        I know that mod_perl is installe and running as is evidence in the environment settings displaying it.

        I'm still stumped but at least I can still use DBI for now so it's not really a giant stumbling block.

        It would just be really nice if I can get the thing working right.

        Here is the latest rendition of my conf settings:

        LoadModule perl_module modules/mod_perl.so Alias /cgi-bin/ g:/websites/cgi-bin/ <Location /cgi-bin> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> PerlModule Apache::Registry <Files ~ "\.pl$"> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI </Files> PerlModule Apache::DBI

        Any other ideas are most welcome.

        TIA

        ======================
        Sean Shrum
        http://www.shrum.net