Re: apache/mod_perl help

2002-07-30 Thread Stas Bekman

Dinesh Patel wrote:
> I'm trying upgrade my mod_perl version from 1.27 to 1.99.02 for
> apache-2.0.39.
> 
>  version 1.27 of mod_perl was compiled using :
> 
>  CC=cc OPTIM=-O $INET_TOP/bin/$OPSYS/perl Makefile.PL \
> DO_HTTPD=1 PERL_AUTHEN=1 PERL_SECTIONS=1
> 
>   make
> 
> The question is how do I compile 1.99.02 with the PERL_AUTHEN  and PERL_SELCTIONS
> enabled!

It's too early to upgrade to mod_perl 2.0. Not all features are 
implemented (which is the case with  sections). For more info see:
http://perl.apache.org/docs/2.0/user/index.html

> I have compiled the new version of mod_perl without the PERL values,
> 
> The httpd.conf was edited to include :
> # mod_perl stuff
> Alias /cgi-bin/ /INDATA/inet_data/httpd/cgi-bin/
> 
> SetHandler  perl-script
> PerlHandler Apache::Registry
> PerlSetupEnv On
> Options ExecCGI
> 
> PerlWarn On
> PerlScript /INDATA/inet_data/httpd/cgi-bin/startup.pl
> 
> however when i try and start the apache server i get the error :
> 
> Syntax error on line 1067 of /INDATA/inet_data/httpd/conf/httpd.conf:
> Invalid command 'PerlSetEnv', perhaps mis-spelled or defined by a module not 
>included in the server configuration
> 
> 
> 
> Any help would be appreciated
> 
> Regards
> 
> Dinesh Patel



-- 


__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




apache/mod_perl help

2002-07-30 Thread Dinesh Patel

I'm trying upgrade my mod_perl version from 1.27 to 1.99.02 for
apache-2.0.39.

 version 1.27 of mod_perl was compiled using :

 CC=cc OPTIM=-O $INET_TOP/bin/$OPSYS/perl Makefile.PL \
DO_HTTPD=1 PERL_AUTHEN=1 PERL_SECTIONS=1

  make

The question is how do I compile 1.99.02 with the PERL_AUTHEN  and PERL_SELCTIONS
enabled!

I have compiled the new version of mod_perl without the PERL values,

The httpd.conf was edited to include :
# mod_perl stuff
Alias /cgi-bin/ /INDATA/inet_data/httpd/cgi-bin/

SetHandler  perl-script
PerlHandler Apache::Registry
PerlSetupEnv On
Options ExecCGI

PerlWarn On
PerlScript /INDATA/inet_data/httpd/cgi-bin/startup.pl

however when i try and start the apache server i get the error :

Syntax error on line 1067 of /INDATA/inet_data/httpd/conf/httpd.conf:
Invalid command 'PerlSetEnv', perhaps mis-spelled or defined by a module not included 
in the server configuration



Any help would be appreciated

Regards

Dinesh Patel




Re: mod_perl help

2002-07-11 Thread Ken Miller

I had this same problem with installing some precompiled packages from
sunfreeware, such as libdb.  My only recommendation is to scrap the
installed packages for anything related to perl, including perl itself.
And note that even though it says that Perl was compiled with GCC, the
options selected may be generally incompatibile with how perl works with
dynamically loaded modules.  This was the conclusion that I same to,
anyways...

Build the stuff yourself.  You'll save yourself a lot of headaches.

BTW, when compiling perl for Solaris 8, you'll need to do this:

/Configure -Dcc='gcc -B/usr/ccs/bin/'

If you don't have the GNU linker/assember installed, then you can skip
the -Dcc option.

Once I built everything myself, I had NO problems.

-klm.

- Original Message -
From: "Ryan Hairyes" <[EMAIL PROTECTED]>
To: "Peter Werner" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 9:45 AM
Subject: RE: mod_perl help


> Thanks for the reply.  Actually ... according to sunfreeware perl5.6.1 was
> compiled with gcc.  Anything else you can think of?
>
> Thanks again.
>
>
> Quoting Peter Werner <[EMAIL PROTECTED]>:
>
> : you will have to compile perl from scratch as the sunfreeware perl is
> : compiled with suns compiler not gcc and this causes problems. poke
around
> : sunfreeware.com for the instructions he used to build perl, it is quite
> : simple.
> :
> : -pete
> :
> : -Original Message-
> : From: Ryan Hairyes [mailto:[EMAIL PROTECTED]]
> : Sent: Thursday, July 11, 2002 4:34 PM
> : To: [EMAIL PROTECTED]
> : Subject: mod_perl help
> :
> :
> : Hello all,
> :
> : I just compiled mod_perl 1.27 with apache 1.3 for Solaris 8.  I used
perl
> : 5.6.1 and gcc from www.sunfreeware.com.  After I compiled everything and
> : tried
> : to load the perl module (with LoadModule) I receive the following error:
> :
> :
> : Cannot load /usr/local/apache/libexec/libperl.so into server: ld.so.1:
> : /usr/local/apache/sbin/httpd: fatal: relocation error: file
> : /usr/local/apache/libexec/libperl.so: symbol main: referenced symbol not
> : found
> :
> :
> : Any idea on what I did wrong?  Thanks.
> :
> : Ryan
> :
>
>
> --
> Ryan Hairyes
> Network/System Administration
> Lee County School System
> Phone:919.774.6226 x 1252
> Voicemail:x 2361
>
>
>




RE: mod_perl help

2002-07-11 Thread Peter Werner

make sure you are not using the sun as and ld etc. you can check by looking
at the output of "which as". (should be /usr/local/bin/as not
/usr/ccs/bin/as). i have /usr/local/bin in my PATH before /usr/ccs/bin and
/usr/ucb.

if this doesnt help i would try recompiling perl. 

maybe someone with more knowledge of the subject could explain why mod_perl
needs perl to be compiled with the same compiler (just idle curiosity)

cheers
-pete
-Original Message-
From: Ryan Hairyes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:45 PM
To: Peter Werner
Cc: [EMAIL PROTECTED]
Subject: RE: mod_perl help


Thanks for the reply.  Actually ... according to sunfreeware perl5.6.1 was
compiled with gcc.  Anything else you can think of?

Thanks again.


Quoting Peter Werner <[EMAIL PROTECTED]>:

: you will have to compile perl from scratch as the sunfreeware perl is
: compiled with suns compiler not gcc and this causes problems. poke around
: sunfreeware.com for the instructions he used to build perl, it is quite
: simple.
: 
: -pete
: 
: -Original Message-
: From: Ryan Hairyes [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, July 11, 2002 4:34 PM
: To: [EMAIL PROTECTED]
: Subject: mod_perl help
: 
: 
: Hello all,
: 
: I just compiled mod_perl 1.27 with apache 1.3 for Solaris 8.  I used perl
: 5.6.1 and gcc from www.sunfreeware.com.  After I compiled everything and
: tried
: to load the perl module (with LoadModule) I receive the following error:
: 
: 
: Cannot load /usr/local/apache/libexec/libperl.so into server: ld.so.1:
: /usr/local/apache/sbin/httpd: fatal: relocation error: file
: /usr/local/apache/libexec/libperl.so: symbol main: referenced symbol not
: found
: 
: 
: Any idea on what I did wrong?  Thanks.
: 
: Ryan
: 


-- 
Ryan Hairyes
Network/System Administration
Lee County School System
Phone:919.774.6226 x 1252
Voicemail:x 2361



RE: mod_perl help

2002-07-11 Thread Ryan Hairyes

Thanks for the reply.  Actually ... according to sunfreeware perl5.6.1 was
compiled with gcc.  Anything else you can think of?

Thanks again.


Quoting Peter Werner <[EMAIL PROTECTED]>:

: you will have to compile perl from scratch as the sunfreeware perl is
: compiled with suns compiler not gcc and this causes problems. poke around
: sunfreeware.com for the instructions he used to build perl, it is quite
: simple.
: 
: -pete
: 
: -Original Message-
: From: Ryan Hairyes [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, July 11, 2002 4:34 PM
: To: [EMAIL PROTECTED]
: Subject: mod_perl help
: 
: 
: Hello all,
: 
: I just compiled mod_perl 1.27 with apache 1.3 for Solaris 8.  I used perl
: 5.6.1 and gcc from www.sunfreeware.com.  After I compiled everything and
: tried
: to load the perl module (with LoadModule) I receive the following error:
: 
: 
: Cannot load /usr/local/apache/libexec/libperl.so into server: ld.so.1:
: /usr/local/apache/sbin/httpd: fatal: relocation error: file
: /usr/local/apache/libexec/libperl.so: symbol main: referenced symbol not
: found
: 
: 
: Any idea on what I did wrong?  Thanks.
: 
: Ryan
: 


-- 
Ryan Hairyes
Network/System Administration
Lee County School System
Phone:919.774.6226 x 1252
Voicemail:x 2361




mod_perl help

2002-07-11 Thread Ryan Hairyes

Hello all,

I just compiled mod_perl 1.27 with apache 1.3 for Solaris 8.  I used perl
5.6.1 and gcc from www.sunfreeware.com.  After I compiled everything and tried
to load the perl module (with LoadModule) I receive the following error:


Cannot load /usr/local/apache/libexec/libperl.so into server: ld.so.1: 
/usr/local/apache/sbin/httpd: fatal: relocation error: file 
/usr/local/apache/libexec/libperl.so: symbol main: referenced symbol not found


Any idea on what I did wrong?  Thanks.

Ryan



Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-05-05 Thread Jason Woodward

You'll also need to use a PerlPassEnv directive prior to your  block.

For debug purposes, try adding the following inside your  block:

print join("\n", map { "$_ => $ENV{$_}" } (keys %ENV)), "\n";

OR, my personal quick-debugging catch-all:

use Data::Dumper;
print Dumper \%ENV;

You'll be able to see what is available in %ENV when running under 
mod_perl.  See also Chapter 9, page 498 of the Eagle.

jason

Ken Williams wrote:
> 
> On Wednesday, May 1, 2002, at 05:04 AM, Fran Fabrizio wrote:
> 
>>
>> I spoke too soon.
>>
>> I need:
>>
>> 
>>   push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-
>> bin/chimpkit/) ];
>> 
>>
>> This does not appear to be possible because there's no way to pass in 
>> SERVER_ROOT to the apache startup.
> 
> 
> I think the problem is your Perl syntax, not the value of the variable.  
> Scalars do not interpolate in qw() constructs.  Try this instead:
> 
> 
>   push @Alias, '/cgi-bin/chimpkit/', "$ENV{SERVER_ROOT}/cgi-
> bin/chimpkit/";
> 
> 
> or even
> 
> 
>   push @Alias, '/cgi-bin/chimpkit/',
>$r->server_root_relative . '/cgi-bin/chimpkit/';
> 
> 
>  -Ken
> 





Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-05-03 Thread Fran Fabrizio


What I was really looking for was $r->server_root_relative.  =)  Thanks 
Geoff!

That's to all for your help.

-Fran

> You'll also need to use a PerlPassEnv directive prior to your  
> block.
>
> For debug purposes, try adding the following inside your  block:
>
> print join("\n", map { "$_ => $ENV{$_}" } (keys %ENV)), "\n";
>
> OR, my personal quick-debugging catch-all:
>
> use Data::Dumper;
> print Dumper \%ENV;
>
> You'll be able to see what is available in %ENV when running under 
> mod_perl.  See also Chapter 9, page 498 of the Eagle.
>
> jason
>
> Ken Williams wrote:
>
>>
>> On Wednesday, May 1, 2002, at 05:04 AM, Fran Fabrizio wrote:
>>
>>>
>>> I spoke too soon.
>>>
>>> I need:
>>>
>>> 
>>>   push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-
>>> bin/chimpkit/) ];
>>> 
>>>
>>> This does not appear to be possible because there's no way to pass 
>>> in SERVER_ROOT to the apache startup.
>>
>>
>>
>> I think the problem is your Perl syntax, not the value of the 
>> variable.  Scalars do not interpolate in qw() constructs.  Try this 
>> instead:
>>
>> 
>>   push @Alias, '/cgi-bin/chimpkit/', "$ENV{SERVER_ROOT}/cgi-
>> bin/chimpkit/";
>> 
>>
>> or even
>>
>> 
>>   push @Alias, '/cgi-bin/chimpkit/',
>>$r->server_root_relative . '/cgi-bin/chimpkit/';
>> 
>>
>>  -Ken
>>
>






Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-05-02 Thread Ken Williams


On Wednesday, May 1, 2002, at 05:04 AM, Fran Fabrizio wrote:

>
> I spoke too soon.
>
> I need:
>
> 
>   push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-
> bin/chimpkit/) ];
> 
>
> This does not appear to be possible because there's no way to 
> pass in SERVER_ROOT to the apache startup.

I think the problem is your Perl syntax, not the value of the 
variable.  Scalars do not interpolate in qw() constructs.  Try 
this instead:


   push @Alias, '/cgi-bin/chimpkit/', "$ENV{SERVER_ROOT}/cgi-
bin/chimpkit/";


or even


   push @Alias, '/cgi-bin/chimpkit/',
$r->server_root_relative . '/cgi-bin/chimpkit/';


  -Ken




Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Geoffrey Young



Fran Fabrizio wrote:

> 
> I spoke too soon.
> 
> I need:
> 
> 
>   push @Alias, [ qw(/cgi-bin/chimpkit/ 
> $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ];
> 
> 
> This does not appear to be possible because there's no way to pass in 
> SERVER_ROOT to the apache startup.  I have SERVER_ROOT getting set in 
> root's .bashrc, but when I execute ./apachectl start it appears to not 
> pass in any ENV at all, and the server seems to set only a 
> fewGATEWAY_INTERFACE, MOD_PERL and PATH.  I can't use PerlSetEnv of 
> course because I'm trying to make a portable mod_perl.conf in the first 
> place.  I can't use SetEnv in the httpd.conf because that doesn't get 
> set until the fixup phase.  Is there any way?
> 

what about:


   warn "ServerRoot: ", Apache->server_root_relative;


?

you also might want to do something with -D flags to httpd.  it would mean editing 
apachectl, but then you could either do


   do stuff

or


   $ServerRoot = 'ClientA' if Apache->defined('ClientA');

or somesuch.

HTH

--Geoff




Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio


I spoke too soon.

I need:


   push @Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ];


This does not appear to be possible because there's no way to pass in SERVER_ROOT to 
the apache startup.  I have SERVER_ROOT 
getting set in root's .bashrc, but when I execute ./apachectl start it appears to not 
pass in any ENV at all, and the server seems 
to set only a fewGATEWAY_INTERFACE, MOD_PERL and PATH.  I can't use PerlSetEnv of 
course because I'm trying to make a portable 
mod_perl.conf in the first place.  I can't use SetEnv in the httpd.conf because that 
doesn't get set until the fixup phase.  Is 
there any way?

-Fran



Fran Fabrizio wrote:
> 
> Yikes, I just found an example of the exact thing I needed in the 
> cookbook (recipe 2.16).  Sorry, and thanks!
> 
> -Fran





Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio


Yikes, I just found an example of the exact thing I needed in the 
cookbook (recipe 2.16).  Sorry, and thanks!

-Fran




Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Steven Lembark

Yup. See the  directive. Good description of how it works in
the Eagle Book.

-- Fran Fabrizio <[EMAIL PROTECTED]>

>
> I am trying to make a portable mod_perl.conf.  I have things like:
>
> Alias /cgi-bin/chimpkit/   /usr/local/apache/cgi-bin/chimpkit/
> 
>  SetHandler perl-script
>  PerlHandler Apache::Registry
>  Options +ExecCGI
>  PerlSendHeader On
> 
>
> which really needs to become something like:
>
> Alias /cgi-bin/chimpkit/   $SERVER_ROOT/cgi-bin/chimpkit/
> etc...
>
> I don't think I can do this directly with Apache but I found a random
> newsgroup thread that suggested something like the following might work:
>
> 
> push @PerlConfig, 
>  SetHandler perl-script
>  PerlHandler Apache::Registry
>  Options +ExecCGI
>  PerlSendHeader On
>
> EOF
> 
>
> Is this a good way to solve this problem, is there an easier way, and
> does this even work?  :-)
>
> Thanks,
> Fran

--
Steven Lembark   2930 W. Palmer
Workhorse Computing   Chicago, IL 60647
+1 800 762 1582



Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio


I am trying to make a portable mod_perl.conf.  I have things like:

Alias /cgi-bin/chimpkit/   /usr/local/apache/cgi-bin/chimpkit/

 SetHandler perl-script
 PerlHandler Apache::Registry
 Options +ExecCGI
 PerlSendHeader On


which really needs to become something like:

Alias /cgi-bin/chimpkit/   $SERVER_ROOT/cgi-bin/chimpkit/
etc...

I don't think I can do this directly with Apache but I found a random 
newsgroup thread that suggested something like the following might work:


push @PerlConfig, <
 SetHandler perl-script
 PerlHandler Apache::Registry
 Options +ExecCGI
 PerlSendHeader On
   
EOF


Is this a good way to solve this problem, is there an easier way, and 
does this even work?  :-)

Thanks,
Fran




mod_perl : HELP (am I going nuts ?)

2002-01-09 Thread Philip M. Gollucci

The following short test script :

#!/usr/local/bin/perl

use strict;
use Apache;

my $r = shift;
my %params = $r->method eq 'POST' ? $r->content : $r->args;

$r->send_http_header('text/html');
print "Name = [",  $params{'Name'}, "]";
print "R = [" , $r, "]";
print "Mehtod = [", $r->method, "]";
print "Content = [", $r->content, "]";
print "Args = [", $r->args, "]";


Now lets say I goto http://www.dev.p6m7g8.com/perl-reg/test.pl?Name=p6m7g8
which is the above file

Gives output :

Name = []
R = [Apache=SCALAR(0x80d3aac)]
Mehtod = [GET]
Content = []
Args = []

Comming from CGI.pm, I know you can pass parameters like the Name(above) for
urls, but with mod_perl (aka Apache::*) All I can get at are variables inside
 in an html page.

Am I missing something, am I going nuts ?
PLEASE PLEASE TELL ME WHAT I AM NOT DOING RIGHT HERE !

Thanks in advance for all you kind souls out there!


I have read almost all of but most especialy
http://perl.apache.org/guide/snippets.html#CGI_params_in_the_mod_perl_ish_
If I need to read something else please point me there


My System configuration follows:
uname -a
FreeBSD sduwebship.student.umd.edu 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Jan
8 03:41:06 GMT 2002
[EMAIL PROTECTED]:/usr/src/sys/compile/WEBSHIP  i386

perl -v
This is perl, v5.6.1 built for i386-freebsd

Apache/1.3.22 (Unix) mod_python/2.7.6 Python/2.1.1 PHP/4.0.6 mod_perl/1.26
mod_ssl/2.8.5 OpenSSL/0.9.6b


httpd.conf [snipped]
PerlRequire  /usr/local/www/apache/conf/startup.pl


  SetHandler perl-script
  PerlHandler Apache::Status
  order deny,allow
  deny from all
  allow from .student.umd.edu


Include conf/vhosts.conf

conf/vhosts.conf [snipped]
# START MOD_PERL #
Alias /perl-reg/ /usr/local/sites/dev/perl-reg/
PerlModule Apache::Registry

SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On


startup.pl [entirety]
use strict;

# Make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";

# For things in the "/perl-reg"  and "/perl-run" URL
use Apache::Status ();
use Apache::Registry;
use Apache::PerlRun;

# Load Perl modules of your choice here
# This code is interpreted *once* when the server starts
use LWP::UserAgent ();
use Apache::Status ();
use Apache::DBI ();
use DBI ();

$Apache::DBI::DEBUG = 2;
# Tell me more about warnings
use Carp ();
$SIG{__WARN__} = \&Carp::cluck;

# Load CGI.pm and call its compile() method to precompile
# (but not to import) its autoloaded methods.
use CGI ();
CGI->compile(':all');

Apache::DBI->connect_on_init
 ("DBI:mysql:database=test;host=localhost",
  "test","",
  {
   PrintError => 1, # warn() on errors
   RaiseError => 1, # die on error
   AutoCommit => 1, # commit executes immediately
   Taint => 1   # Taint Checking on
  }
 );

1;



--
Philip M. Gollucci (p6m7g8) [EMAIL PROTECTED] 301.314.3118

Science, Discovery, & the Universe (UMCP)
Webmaster & Webship Teacher
URL: http://www.sdu.umd.edu

EJPress.com
Database/PERL Programmer & System Admin
URL : http://www.ejournalpress.com

Resume  : http://www.p6m7g8.com/resume.txt






RE: mod_perl help

2001-04-24 Thread Brendan McAdams

I'm not sure if mod_perl will work with activeperl

-Original Message-
From: abhishek agrawal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 11:50
To: [EMAIL PROTECTED]
Subject: mod_perl help


Hi,
 
  I have been trying to run perl scripts on apache using mod_perl. I
initially had perl5.6.0 which came with the Redhat. I then configured my
apache and got simple per scripts running. Then i realised that most of
the perl scripts which will eventually run on my machine are wirtten in
Activeperl, i installed activeperl ( for linux).

but then when i tried running perl scripts which used modules such as
Date::Calc, i get errors such as 
"Cant find loadabel object module "

I am sure that i have installed the modules correctly using the ppm. 

Someone suggested me that the mod_perl is built using different perl
(perl5) and the perl which is running on my machine is different (Active
perl). Hence it is causing problem. So i removed the perl5 completely
from my machine and tried building mod_perl again. But when i tried
bulding mod_perl again, i gave me and error saying that "it need
perl5.6.0"

Does Active perl does not work properly with mod_perl? If yes, can you
tell me where exactly am i making mistake.

I have been stuck with this problem for more than 2 weeks now, and any
help will be greatly appreciated.

yours truely,
Abhishek
   

_
The reward for working hard is more hard work.




MESG «(`P_BE
On Tue, 24 Apr 2001 13:34:49  
 Stas Bekman wrote:
>> At least two people responded to my last message telling me that they
>> didn't like Slash much; it was a horrible piece of code.  Are you
>> refering to it as a general piece of Perl code, or how it deals with
>> mod_perl?  If the latter, where I can find some good code to look it?
>
>Once you do something not very cleanly people will remember for a long
>time. I didn't check the latest versions of it, I suppose it's much
much
>better now. It's rewritten by different people too.
>
>> Also, Apache can't recognize the  directive; it gives me the
>> following error:
>>
>> Invalid command '', perhaps mis-spelled or defined by a module
not
>> included in the server configuration
>
>Please read the documentation before posting. e.g. see:
>http://perl.apache.org/guide/config.html#Enabling
>
>> mod_perl.c seems to be installed.  'httpd -l' shows it listed at the
>> bottom.  I've added the directive 'AddModule mod_perl.c' to
httpd.conf,
>> and it doesn't throw an error, so I know /something/ is being loaded,
>> but the  directive still doesn't work.
>>
>> Am I missing something?
>
>see above
>
>_
>Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
>http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
>mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
>http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
>
>
>


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/



mod_perl help

2001-04-24 Thread abhishek agrawal

Hi,
 
  I have been trying to run perl scripts on apache using mod_perl. I initially had 
perl5.6.0 which came with the Redhat. I then configured my apache and got simple per 
scripts running. Then i realised that most of the perl scripts which will eventually 
run on my machine are wirtten in Activeperl, i installed activeperl ( for linux).

but then when i tried running perl scripts which used modules such as Date::Calc, i 
get errors such as 
"Cant find loadabel object module "

I am sure that i have installed the modules correctly using the ppm. 

Someone suggested me that the mod_perl is built using different perl (perl5) and the 
perl which is running on my machine is different (Active perl). Hence it is causing 
problem. So i removed the perl5 completely from my machine and tried building mod_perl 
again. But when i tried bulding mod_perl again, i gave me and error saying that "it 
need perl5.6.0"

Does Active perl does not work properly with mod_perl? If yes, can you tell me where 
exactly am i making mistake.

I have been stuck with this problem for more than 2 weeks now, and any help will be 
greatly appreciated.

yours truely,
Abhishek
   

_
The reward for working hard is more hard work.




MESG «(`P_BE
On Tue, 24 Apr 2001 13:34:49  
 Stas Bekman wrote:
>> At least two people responded to my last message telling me that they
>> didn't like Slash much; it was a horrible piece of code.  Are you
>> refering to it as a general piece of Perl code, or how it deals with
>> mod_perl?  If the latter, where I can find some good code to look it?
>
>Once you do something not very cleanly people will remember for a long
>time. I didn't check the latest versions of it, I suppose it's much much
>better now. It's rewritten by different people too.
>
>> Also, Apache can't recognize the  directive; it gives me the
>> following error:
>>
>> Invalid command '', perhaps mis-spelled or defined by a module not
>> included in the server configuration
>
>Please read the documentation before posting. e.g. see:
>http://perl.apache.org/guide/config.html#Enabling
>
>> mod_perl.c seems to be installed.  'httpd -l' shows it listed at the
>> bottom.  I've added the directive 'AddModule mod_perl.c' to httpd.conf,
>> and it doesn't throw an error, so I know /something/ is being loaded,
>> but the  directive still doesn't work.
>>
>> Am I missing something?
>
>see above
>
>_
>Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
>http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
>mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
>http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
>
>
>


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/