logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Perl is half interpreted
Author
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Thu 23 Feb '12 2:05    Post subject: Perl is half interpreted Reply with quote

Since i use apache 2.4.1, i have some strange things.
I use awstats, and some pages are not interpreted.

Example :
/awstats/awstats.pl?framename=mainright&output=osdetail
Is not interpreted when
/awstats/awstats.pl?framename=mainright#referer
Is interpreted...

Argh

Can you help me again (really sorry)


Last edited by bagu on Sun 26 Feb '12 21:48; edited 1 time in total
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 23 Feb '12 7:32    Post subject: Reply with quote

I'm seeing neither are interpreted.

Have a look at this line in httpd.conf:

AddHandler cgi-script

by default only .cgi is listed, you may need to add .pl to the list
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Thu 23 Feb '12 8:01    Post subject: Reply with quote

Gregg is wright, you must have AddHandler cgi-script cgi pl

Are you upgrading from 2.2 ?

Running here awstats 7.0 (build 1.976), no issues.

The links you posted, just shows the Perl code, not the output.

Your issue not so clear to me. What happens exactly, not sure what you mean by ".. half interpreted" ? You say "..some pages" ? So there are page correct ?

Any errors in the logs ?


Steffen
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Thu 23 Feb '12 13:04    Post subject: Reply with quote

I already have AddHandler cgi-script in my httpd.conf.
And yes, when i say half, i say some pages.

In the first link, it show perl code where in the second link, the perl code is interpreted.

When i use apache 2.2.22 everything work fine.
I don't have any error in error log.
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Thu 23 Feb '12 13:36    Post subject: Reply with quote

Both links shows perl code. So I still do not understand your issue.

Do you have also ?
Options FollowSymLinks ExecCGI


Steffen
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Thu 23 Feb '12 16:25    Post subject: Reply with quote

Both link ?

from my computer i only see perl code for the first link ?!?

My config is :
Code:
Alias "/awstatsclasses" "D:/wamp/apps/AWStats/wwwroot/classes/"
Alias "/awstatscss" "D:/wamp/apps/AWStats/wwwroot/css/"
Alias "/awstatsicons" "D:/wamp/apps/AWStats/wwwroot/icon/"
ScriptAlias /awstats/ "D:/wamp/apps/AWStats/wwwroot/cgi-bin/"

<Directory "D:/wamp/apps/AWStats/wwwroot">
   Options FollowSymLinks ExecCGI
   AllowOverride None
   Require all granted
</Directory>


EDIT : OK, i found the bug ... My fault ^^
When i switch to apache 2.4.1, i forget to activate cgi module.

I see the first page because my browser cache was here.
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Thu 23 Feb '12 16:45    Post subject: Reply with quote

NP. Happens all of us. Other can learn again from this post.

Thanks,

Steffen
Back to top


Reply to topic   Topic: Perl is half interpreted View previous topic :: View next topic
Post new topic   Forum Index -> Other Software