Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
An Unofficial "I hate Apache" Thread. Perl woes [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bobber205
Guru
Guru


Joined: 23 Aug 2006
Posts: 561
Location: Oregon

PostPosted: Tue Oct 16, 2007 5:11 pm    Post subject: An Unofficial "I hate Apache" Thread. Perl woes [S Reply with quote

First off, I would like to say in a rant that I am NEVER, repeat never, upgrading apache and its related things unless I absoutely have to. I am thinking about switching to another webserver once we get our new hardware.

Here's the deal. No matter what I try to do, I cannot get apache to parse my .pl files in /cgi-bin/awstats.pl
I have set a alias to that dir for /awstats/awstats.pl if that helps.
Below is the result of my trying to fix the problem.

For what it's worth, I have compiled apache,php and perl with threads/ithreads. Way back in last year sometime something needed thread support in php and I am NOT going to take it out and break more stuff.

Though I don't think that's the problem.
Thanks for any and all help. and yes -D PERL is in apache_opts

Code:

<IfDefine PERL>
  <IfModule !mod_perl.c>
    LoadModule perl_module    modules/mod_perl.so
  </IfModule>
</IfDefine>
 
<IfModule mod_perl.c>
   #PerlTrace all
   PerlRequire "/etc/apache2/modules.d/apache2-mod_perl-startup.pl"
 
   #Provide two aliases to the same cgi-bin directory,
   #to see the effects of the 2 different mod_perl modes
   #for Apache2::Registry Mode
   Alias /perl/ /var/www/localhost/perl/
   #for Apache2::Perlrun Mode
   Alias /cgi-perl/ /var/www/localhost/perl/
 
   <IfModule mod_access.c>
   <Location /perl-status>
           SetHandler perl-script
      PerlResponseHandler Apache2::Status
           Order deny,allow
           Deny from all
           Allow from 127.0.0.1
   </Location>
   </IfModule>
 
   <Location /awstat/*.pl>
      SetHandler perl-script
      #PerlResponseHandler Apache2::Status
      PerlResponseHandler ModPerl::PerlRun
      #Order allow,deny
      #Deny from all
      #Allow from 127.0.0.1
   #   Allow from all
      Options -Indexes ExecCGI
      PerlSendHeader On
   </Location>
 
    <Directory /home/*/public_html/perl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::PerlRun
        Options -Indexes ExecCGI
      PerlOptions +ParseHeaders
    </Directory>
 
    PerlModule ModPerl::Registry
    #set Apache::Registry Mode for /perl Alias
    # To set subdirectories to use perl set the following
    # and comment the orignial:
    # <Location ~ "^/perl/.*\.pl$">
    <Location  "^/perl/*.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        Options -Indexes ExecCGI
        PerlSendHeader On
    </Location>
 
    #set Apache::PerlRun Mode for /cgi-perl Alias
    <Location /cgi-perl/*.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::PerlRun
        Options -Indexes ExecCGI
#   Options ExecCGI
        PerlSendHeader On
    </Location>
 
</ifModule>

_________________
Never Forget The Expat 2.0!


Last edited by bobber205 on Tue Oct 16, 2007 10:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
embobo
Guru
Guru


Joined: 19 May 2003
Posts: 311

PostPosted: Tue Oct 16, 2007 8:32 pm    Post subject: Re: An Unofficial "I hate Apache" Thread. Perl woe Reply with quote

First, unless awstats requires mod_perl, why not try to get its CGI scripts to run with mod_cgi instead?

Quote:

I have set a alias to that dir for /awstats/awstats.pl if that helps.


What does that mean?

Code:

 <Location /awstat/*.pl>


Should that be awstat or awstats?

That is supposed to be a regular expression not a shell glob. http://httpd.apache.org/docs/2.2/mod/core.html#locationmatch

Code:

<Location /cgi-perl/*.pl>


This should be a LocationMatch; even if it were this is not going to matach "/cgi-bin/awstats.pl". CGI-BIN vs CGI_PERL.
Back to top
View user's profile Send private message
bobber205
Guru
Guru


Joined: 23 Aug 2006
Posts: 561
Location: Oregon

PostPosted: Tue Oct 16, 2007 8:54 pm    Post subject: Reply with quote

File this topic under "Stress and Stupidity".

It was awstats. once I added the s, all is well.
_________________
Never Forget The Expat 2.0!
Back to top
View user's profile Send private message
embobo
Guru
Guru


Joined: 19 May 2003
Posts: 311

PostPosted: Tue Oct 16, 2007 9:01 pm    Post subject: Reply with quote

You must now start 5 "I love apache" threads. :twisted:
Back to top
View user's profile Send private message
bobber205
Guru
Guru


Joined: 23 Aug 2006
Posts: 561
Location: Oregon

PostPosted: Tue Oct 16, 2007 9:20 pm    Post subject: Reply with quote

embobo wrote:
You must now start 5 "I love apache" threads. :twisted:


:lol:

I would if it wasn't for the horrendous 2.2 upgrade.
_________________
Never Forget The Expat 2.0!
Back to top
View user's profile Send private message
Corona688
Veteran
Veteran


Joined: 10 Jan 2004
Posts: 1204

PostPosted: Tue Oct 16, 2007 9:58 pm    Post subject: Reply with quote

bobber205 wrote:
File this topic under "Stress and Stupidity".

It was awstats. once I added the s, all is well.
Also put "solved" in the title. :D
_________________
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum