Author |
|
bagu
Joined: 06 Jan 2011 Posts: 193 Location: France
|
Posted: Thu 23 Feb '12 2:05 Post subject: Perl is half interpreted |
|
|
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
|
Posted: Thu 23 Feb '12 7:32 Post subject: |
|
|
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
|
Posted: Thu 23 Feb '12 8:01 Post subject: |
|
|
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
|
Posted: Thu 23 Feb '12 13:04 Post subject: |
|
|
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
|
Posted: Thu 23 Feb '12 13:36 Post subject: |
|
|
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
|
Posted: Thu 23 Feb '12 16:25 Post subject: |
|
|
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
|
Posted: Thu 23 Feb '12 16:45 Post subject: |
|
|
NP. Happens all of us. Other can learn again from this post.
Thanks,
Steffen |
|
Back to top |
|