cgiapp:
Ron Savage wrote:
> Eeek. I do not put the stuff I posted inside any tags.
When I do this:
[EMAIL PROTECTED]:~$ cat hdwf/conf/vhost.conf
# $Id: vhost.conf,v 1.2 2005/11/29 03:47:31 dpchrist Exp $
#
# Apache configuration settings for hdwf.holgerdanske.com.
#
# Copyright 2005 by David Christensen <[EMAIL PROTECTED]>
<VirtualHost 192.168.254.22>
ServerName hdwf.holgerdanske.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/dpchrist/hdwf/htdocs
HostnameLookups off
UserDir disabled
Alias /images/ /home/dpchrist/hdwf/images/
</VirtualHost>
<Directory /home/dpchrist/hdwf/htdocs>
AllowOverride All
</Directory>
[EMAIL PROTECTED]:~$ cat hdwf/htdocs/.htaccess
# $Id: .htaccess,v 1.7 2005/11/28 03:57:15 dpchrist Exp $
#
# Apache configuration settings for hdwf.holgerdanske.com
#
# Copyright 2005 by David Christensen <[EMAIL PROTECTED]>
DirectoryIndex index.pl
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On
PerlModule Apache::Reload
PerlInitHandler Apache::Reload
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules "Hdwf Hdwf::*"
[EMAIL PROTECTED]:~$ cat hdwf/htdocs/index.pl
#! /usr/bin/perl
#######################################################################
# $Id: index.pl,v 1.2 2005/11/28 00:05:17 dpchrist Exp $
#
# Perl instance script for hdwf.holgerdanske.com.
#
# Copyright 2005 by David Christensen <[EMAIL PROTECTED]>
#######################################################################
use strict;
use warnings;
use CGI::Carp qw(fatalsToBrowser);
use FindBin qw( $Bin );
use lib "$Bin/../modules";
use Hdwf;
my $app = Hdwf->new();
$app->run();
#######################################################################
[EMAIL PROTECTED]:~$ cat hdwf/modules/Hdwf.pm
#######################################################################
# $Id: Hdwf.pm,v 1.9 2005/11/28 03:57:15 dpchrist Exp $
#
# hdwf.holgerdanske.com CGI::Application module.
#
# Copyright 2005 by David Christensen <[EMAIL PROTECTED]>
#######################################################################
# uses:
#----------------------------------------------------------------------
use warnings;
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
package Hdwf;
use base 'CGI::Application';
#######################################################################
# overloaded CGI::Application methods:
#----------------------------------------------------------------------
sub setup {
my $self = shift;
$self->start_mode('home');
$self->mode_param('rm');
$self->run_modes(
'home' => 'home',
);
}
#######################################################################
# run modes:
#----------------------------------------------------------------------
sub home {
return
"hello, world!";
}
#######################################################################
# end of module:
#----------------------------------------------------------------------
1;
__END__
#######################################################################
and restart Apache, all appears well. As soon as I make a change to Hdwf.pm and
hit refresh:
[Mon Nov 28 19:57:54 2005] [error] Can't locate Hdwf.pm in @INC (@INC co
ntains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /u
sr/local/lib/site_perl . /etc/apache-perl/ /etc/apache-perl/lib/perl) at
/usr/local/share/perl/5.8.4/Apache/Reload.pm line 132.\n
Checking A::R version:
[EMAIL PROTECTED]:~$ perl -e 'use Apache::Reload; print $Apache::Reload::VE
RSION, "\n"'
0.07
It looks like Apache::Reload has a bug, or isn't compatible with my system.
I am running fairly minimal Debian 3.1r0a (Sarge), with the ntp and apache-perl
packages installed (Apache 1.3.33 with Perl 5.8.4 compiled in).
CGI::Application, Apache::Reload, etc., were all installed via CPAN as root.
What GNU/Linux and/or *BSD distributions are people using successfully with
Apache (1), MySQL (4.1), Perl (5.8), and C::A (current)?
TIA,
David
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]