Re: Help with configuration - Linux/Mandrake 7.2

2001-02-19 Thread Surat Singh Bhati

There is no error in line 

Files *.pl

It is working for me, on 
(mod_perl/1.24, Apache/1.3.12 , RedHat7).

Content of my perl.conf file are:
Alias /perl/ /var/www/perl/
  Location /perl
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
  /Location

Files *.pl
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
/Files

Files *.mpl
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
/Files

Location /perl-status
SetHandler perl-script
PerlHandler Apache::Status
/Location 

I am able to run *.pl and *.mpl using above 
settings.

In your case possible error may be like  Files.. section 
may be nested inside directive like Location.., or
inside any other directive.

Please check your error log. What happen when you get your
mod-perl script using browser, You get the source code as it is 
or get any error?

-Surat 




At 10:08 AM 2/18/01 -0700, Jeff Beard wrote:

Maybe:

Files ~ "\.pl$"
...
/Files

I think there's some documentation on this issue as well.

--Jeff


On Sun, 18 Feb 2001, Rich Feather wrote:

 I'm trying to get my Apache Web Server to read *.pl files using mod_perl
 (standard Linux-Mandrake 7.2).  Under perl, it works fine and, indeed, in
 httpd-perl.conf, it shows

 Alias perl /var/www/perl
 Directory /var/www/perl
 SetHandler perl-script
 PerlHandler Apache::Registry
 PerlSendHeader On
 Options ExecCGI -Indexes
 /Directory

 Also, I've tried up the following

 Directory /var/www/html
 SetHandler perl-script
 PerlHandler Apache::Registry
 PerlSendHeader On
 Options ExecCGI -Indexes
 /Directory

 and/or

 Files *.pl
 SetHandler perl-script
 PerlHandler Apache::Registry
 Options ExecCGI
 /Files

 Restarted after each change
 /etc/rc.d/init.d/httpd restart

 ...but I cannot get the server to parse *.pl files using mod_perl.

 Any ideas?

 Thanks.


--
Jeff Beard
___
Web:   www.cyberxape.com
Email: jeff at cyberxape dot com
Earth: Boulder, CO, USA






Help with configuration - Linux/Mandrake 7.2

2001-02-18 Thread Rich Feather

I'm trying to get my Apache Web Server to read *.pl files using mod_perl 
(standard Linux-Mandrake 7.2).  Under perl, it works fine and, indeed, in 
httpd-perl.conf, it shows 

Alias perl /var/www/perl
Directory /var/www/perl
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI -Indexes
/Directory

Also, I've tried up the following

Directory /var/www/html
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI -Indexes
/Directory

and/or

Files *.pl
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
/Files

Restarted after each change
/etc/rc.d/init.d/httpd restart

...but I cannot get the server to parse *.pl files using mod_perl.

Any ideas?

Thanks.



Re: Help with configuration - Linux/Mandrake 7.2

2001-02-18 Thread Jeff Beard


Maybe:

Files ~ "\.pl$"
...
/Files

I think there's some documentation on this issue as well.

--Jeff


On Sun, 18 Feb 2001, Rich Feather wrote:

 I'm trying to get my Apache Web Server to read *.pl files using mod_perl
 (standard Linux-Mandrake 7.2).  Under perl, it works fine and, indeed, in
 httpd-perl.conf, it shows

 Alias perl /var/www/perl
 Directory /var/www/perl
 SetHandler perl-script
 PerlHandler Apache::Registry
 PerlSendHeader On
 Options ExecCGI -Indexes
 /Directory

 Also, I've tried up the following

 Directory /var/www/html
 SetHandler perl-script
 PerlHandler Apache::Registry
 PerlSendHeader On
 Options ExecCGI -Indexes
 /Directory

 and/or

 Files *.pl
 SetHandler perl-script
 PerlHandler Apache::Registry
 Options ExecCGI
 /Files

 Restarted after each change
 /etc/rc.d/init.d/httpd restart

 ...but I cannot get the server to parse *.pl files using mod_perl.

 Any ideas?

 Thanks.


--
Jeff Beard
___
Web:www.cyberxape.com
Email:  jeff at cyberxape dot com
Earth:  Boulder, CO, USA




Re: Help with configuration - Linux/Mandrake 7.2

2001-02-18 Thread Rich Feather

Yes.  I've tried this, as well...  No luck, though.

On Sunday 18 February 2001 10:08, Jeff Beard wrote:
 Maybe:

 Files ~ "\.pl$"
 ...
 /Files

 I think there's some documentation on this issue as well.

 --Jeff

 On Sun, 18 Feb 2001, Rich Feather wrote:
  I'm trying to get my Apache Web Server to read *.pl files using mod_perl
  (standard Linux-Mandrake 7.2).  Under perl, it works fine and, indeed, in
  httpd-perl.conf, it shows
 
  Alias perl /var/www/perl
  Directory /var/www/perl
  SetHandler perl-script
  PerlHandler Apache::Registry
  PerlSendHeader On
  Options ExecCGI -Indexes
  /Directory
 
  Also, I've tried up the following
 
  Directory /var/www/html
  SetHandler perl-script
  PerlHandler Apache::Registry
  PerlSendHeader On
  Options ExecCGI -Indexes
  /Directory
 
  and/or
 
  Files *.pl
  SetHandler perl-script
  PerlHandler Apache::Registry
  Options ExecCGI
  /Files
 
  Restarted after each change
  /etc/rc.d/init.d/httpd restart
 
  ...but I cannot get the server to parse *.pl files using mod_perl.
 
  Any ideas?
 
  Thanks.

 --
 Jeff Beard
 ___
 Web:  www.cyberxape.com
 Email:jeff at cyberxape dot com
 Earth:Boulder, CO, USA



Re: Help with configuration - Linux/Mandrake 7.2

2001-02-18 Thread Ken Williams

If it doesn't use mod_perl, what *does* it do?  Display the source? 
Give a 404?

Perhpas you need to do "Alias /perl /var/www/perl" , with a slash.

Officially, I loathe Apache configuration, so I often try to stay
ignorant of its intricacies. =)


[EMAIL PROTECTED] (Rich Feather) wrote:
I'm trying to get my Apache Web Server to read *.pl files using mod_perl 
(standard Linux-Mandrake 7.2).  Under perl, it works fine and, indeed, in 
httpd-perl.conf, it shows 

Alias perl /var/www/perl
Directory /var/www/perl
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI -Indexes
/Directory

Also, I've tried up the following

Directory /var/www/html
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI -Indexes
/Directory

and/or

Files *.pl
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
/Files

Restarted after each change
/etc/rc.d/init.d/httpd restart

but I cannot get the server to parse *.pl files using mod_perl.

Any ideas?

Thanks.


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum