*AddHandler cgi-script .cgi *

Demi:

Based on your information I only see two small missing steps.
The first is with Apache and the second is missing PERL modules.

Failure of CGI execution is a problem of your Apache configuration. I don't see PERL's database modules either so in that order:

1) A handler directive for ".cgi" extensions is needed.
Somewhere in your httpd.conf there must be the following

LoadModule cgi_module mod_cgi.so
#unless you compiled Apache with mod_cgi.so (often the case)
#And the critical problem you have:
AddHandler cgi-script .cgi

2) If you have a modern PERL installation (your 5.8.8-4 is good choice!) you need only add DBI and DBD::mysql (or pg) to run DBMA. To install DBI / DBD open a console window and invoke CPAN and get the modules like this:

perl -MCPAN -e shell
CPAN> install DBI

Once installed get DBD like this:
CPAN> install DBD::mysql

In the alternative you can install both these modules with your Debian package manager.
best...
Mike



----- Original Message ----- From: "Demi" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "M. J. [Mike] O'Brien" <[EMAIL PROTECTED]>
Sent: Thursday, April 27, 2006 2:49 PM
Subject: Re: [Dbmail] Shared folder


On 4/27/06, M. J. [Mike] O'Brien <[EMAIL PROTECTED]> wrote:
Hello Demi:
Welcome to the DBMail fold and congrats on your new
installation/migration. Sounds like you have jumped in with
both feet :o) bravo.


Hello Mike,

Yes I guess I did jump in with both feed didn't I.
I have a little problem which isn't all that unusual when I have to
deal with perl. I installed ISPMan once and it took me like week to do
so. Back then I said to my self if I can install this I can install
anything perl and here we are again having problems with DBMA. You
perl guys make great stuff and so did you. I tested your demo and it
is just great.
However perl stuff seam to be a pain to install AND why does it have
to look so ugly?
What I also don't understand is why don't you guys advertice this
script on the dbMail site. I would have never even started with cyrus
if I had seen this.

Here is my problem. Like I said I am on Debian Sarge (Mostly Sarge anyway).
Below is a list of perl modules installed via apt-get. I have also
done the apache2 auth.
However when I go to DBMA after auth I just get to see the script the
cgi doesn't get executed.
Any ideas what the problem could be?

Demi

# dpkg -l | grep perl
ii libarchive-tar 1.23-1 Archive::Tar - manipulate tar files in perl ii libcarp-assert 0.18-2 Carp::Assert - executable comments for perl
ii  libdbi-perl    1.46-6         Perl5 database interface by Tim Bunce
ii  libfile-tail-p 0.98-5         File::Tail perl module
ii  libmail-sendma 0.79-1         Send email from a perl script
ii  libmailtools-p 1.62-1         Manipulate email in perl programs
ii libmd5-perl 2.03-1 backwards-compatible wrapper for Digest::MD5 ii libmime-perl 5.417-1 Perl5 modules for MIME-compliant messages (M ii libnet-perl 1.19-1 Implementation of Internet protocols for Per
ii  libnet-server- 0.87-3         An extensible, general perl server engine
ii  libperl5.8     5.8.8-4        Shared Perl library
ii libplrpc-perl 0.2017-1 Perl extensions for writing PlRPC servers an ii librrds-perl 1.0.49-1 Time-series data storage and display system
ii  liburi-perl    1.35-1         Manipulates and accesses URI strings
ii libwww-perl 5.803-4 WWW client/server library for Perl (aka LWP) ii perl 5.8.8-4 Larry Wall's Practical Extraction and Report
ii  perl-base      5.8.8-4        The Pathologically Eclectic Rubbish Lister
ii  perl-modules   5.8.8-4        Core Perl modules

dpkg -l | grep libnet-snmp
ii  libnet-snmp-pe 5.0.1-1        Script SNMP connections

# dpkg -l | grep carp
ii libcarp-assert 1.10-2 Convenience wrappers for libcarp-assert-perl ii libcarp-assert 0.18-2 Carp::Assert - executable comments for perl ii libcarp-clan-p 5.3-3 Perl enhancement to Carp error logging facil ii libcarp-datum- 0.1.3-1 Debugging And Tracing Ultimate Module (for p


apache2 config:

       <Directory "/var/www/safe/admin/dbmailadministrator">
         AllowOverride None
         Options ExecCGI MultiViews
         Order allow,deny
         Allow from all
         AuthUserFile /var/www/safe/admin/.htpasswd
         AuthGroupFile "www-data"
         AuthType Basic
         AuthName "Administration Only.  Enter username and password."
         require valid-user
         order allow,deny
       </Directory>

Reply via email to