RE: Installation problem - Invalid command 'PerlSetEnv'

Joel Palmius <[email protected]>
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
This has nothing to do with it, you cannot run mod_perl on command line, 
since mod_perl is an extension of apache. In order to test it you have to 
try to access the scripts via apache, ie browse to them.

Please read the documentation on how to enable mod_perl in apache:

http://perl.apache.org/docs/2.0/user/config/config.html

A good start would probably be reading httpd.conf to see if the required 
directives are there.

If mod_perl is properly configured, the directive "PerlSetEnv" will be 
understood.

   // Joel


On Wed, 22 Sep 2004 [email protected] wrote:

> 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
>>
>
>
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion
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.