|
|
Choosing A Webhost: |
RE: Installation problem - Invalid command 'PerlSetEnv': msg#00017apache.mod-survey.general
Hi Joel, > -----Original Message----- > 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. Yes, shure, ;-) I think so too. I know the documentation you refer to and I checked httpd.conf, apache2, and all the other files. The problem is: Suse 9.1 installs apache 2 + mod_perl 1.9x The docs on perl.apache.org (and all other examples I found) describe Apache 1.3x + mod_perl 1.9x or Apache 2 + mod_perl 2.x but not the mix on my linux box. :-| Thanks a lot Thomas > > // Joel > > > On Wed, 22 Sep 2004 oberhofer.t@xxxxxxxx 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: owner-survey-discussion@xxxxxxxxxxxxxxx [mailto:owner-survey- > >> discussion@xxxxxxxxxxxxxxx] On Behalf Of Joel Palmius > >> Sent: Wednesday, September 22, 2004 10:49 AM > >> To: survey-discussion@xxxxxxxxxxxxxxx > >> 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 oberhofer.t@xxxxxxxx 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 <oberhofer.t@xxxxxxxx> > >>> till survey-discussion > >>> > >> Skickat av Joel Palmius <joel.palmius@xxxxx> > >> till survey-discussion > >> > > > > > > > Skickat av Joel Palmius <joel.palmius@xxxxx> > till survey-discussion >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Installation problem - Invalid command 'PerlSetEnv', Joel Palmius |
|---|---|
| Next by Date: | RE: Installation problem - Invalid command 'PerlSetEnv' - problem solved, oberhofer.t |
| Previous by Thread: | Re: Installation problem - Invalid command 'PerlSetEnv', Joel Palmius |
| Next by Thread: | RE: Installation problem - Invalid command 'PerlSetEnv', oberhofer.t |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |