RE: Installation problem - Invalid command 'PerlSetEnv'

<[email protected]>
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
Hi Joel,

thank's a lot for your answer!

I uninstalled and reinstalled mod_perl via YAST2.


I tried two test scripts (found on
http://www.perl.com/pub/a/2002/03/22/modperl.html?page=2) on the command
line:

print "Content-type: text/plain\r\n\r\n";
print "mod_perl rules!\n";

my $r = shift;
$r->send_http_header('text/plain');
$r->print("mod_perl rules!\n");

The first one works. The second gives me the following error:

wb-db:/srv/www/cgi-bin # Can't call method "send_http_header" on an
undefined value at test.pl line 2.

Might this be a hint for you?

Tom



> -----Original Message-----
> From: [email protected] [mailto:owner-survey-
> [email protected]] On Behalf Of Joel Palmius
> Sent: Wednesday, September 22, 2004 10:49 AM
> To: [email protected]
> Subject: Re: survey-discussion-list: Installation problem - Invalid
> command 'PerlSetEnv'
> 
> This is caused with a non-enabled mod_perl. PerlSetEnv is a mod_perl
> directive. If it isn't found, it means that apache didn't understand
to
> include the mod_perl modules.
> 
> I don't know how Suse looks, but on my gentoo box, I have to start
apache
> with "-D PERL" in order to actually enable mod_perl.
> 
>    // Joel
> 
> On Tue, 21 Sep 2004 [email protected] wrote:
> 
> >
> > Dear mod_survey-users,
> >
> > after installing mod_survey i get the following error, when I try to
> > start apache2:
> >
> >  Starting httpd2 (prefork) Syntax error on line 7 of /srv/www/cgi-
> >  bin/mod_survey/survey.conf:
> >  Invalid command 'PerlSetEnv', perhaps mis-spelled or defined by a
> > module
> >  not included in the server configuration
> >
> >  The command line was:
> >  /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
> >
> > Suse Linux 9.1 prof.
> > Mod_perl installed (1.9x)
> >
> > Used installation script with default values besides:
> >  Script dir: /srv/www/cgi-bin/mod_servey/
> >  Language: de
> >  OS: unix/suse
> >
> > Any help out there?
> >
> > Thanx a lot in advance!
> >
> > Tom
> >
> >
> > Skickat av <[email protected]>
> > till survey-discussion
> >
> Skickat av Joel Palmius <[email protected]>
> till survey-discussion
>
Thomas Oberhofer ([email protected]).vcf (text/x-vcard, 569 B)
BEGIN:VCARD
VERSION:2.1
N:Oberhofer;Thomas;;Herr
FN:Thomas Oberhofer ([email protected])
ORG:ATLAS ELEKTRONIK GmbH;CPA / Aus- und Weiterbildung
TEL;WORK;VOICE:+49 (0) 421 457 - 4869
TEL;WORK;FAX:+49 (0) 421 457 - 4860
ADR;WORK:;SEB BT 020 / Raum 0115;Sebaldsbrücker Heerstraße 235;Bremen;;D-29305;Germany
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:SEB BT 020 / Raum 0115=0D=0ASebaldsbr=FCcker Heerstra=DFe 235=0D=0ABremen D-=
29305=0D=0AGermany
URL;WORK:http://www.atlas-elektronik.de/
EMAIL;PREF;INTERNET:[email protected]
REV:20040414T143626Z
END:VCARD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.