f



Awstats "Internal Server Error" problem

I have installed Awstats and configured it for my site "domain.com"
the config file for stats is stored in
/etc/awstats/awstats.domain.com.conf

when i run the awstats script using  perl awstats.pl -update
-config=domain.com awstats executes and the output is as shown below:
Update for config "/etc/awstats/awstats.domain.com.conf"
With data in log file "/usr/access_log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000
hosts)...
Jumped lines in file: 0
Parsed lines in file: 134771
 Found 4 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 134767 new qualified records.

BUT when i try to see the result by checking
http://localhost/awstats/awstats.pl?config=domain.com i get
"Internal Server Error".

I checked the http error logs and it says permission denied for exec to
execute awstats.pl.
Just for testing i chmod everything to 777. So that i shouldn't get the
permission error.
But inspite of changing i still get the same error. Whats the problem
here?? Where is the Tug?

This is the errror_log:
[Fri Dec 15 04:21:44 2006] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Fri Dec 15 04:21:44 2006] [notice] jrApache[init]  JRun 4.0 (Build
92909) Apache 2 module - Feb 18 2005 06:40:07
[Fri Dec 15 04:21:45 2006] [notice] Digest: generating secret for
digest authentication ...
[Fri Dec 15 04:21:45 2006] [notice] Digest: done
[Fri Dec 15 04:21:45 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Fri Dec 15 04:21:45 2006] [notice] LDAP: SSL support unavailable
[Fri Dec 15 04:21:45 2006] [notice] mod_python: Creating 4 session
mutexes based on 256 max processes and 0 max threads.
[Fri Dec 15 04:21:45 2006] [notice] jrApache[init]  JRun 4.0 (Build
92909) Apache 2 module - Feb 18 2005 06:40:07
[Fri Dec 15 04:21:45 2006] [notice] Apache/2.0.52 configured --
resuming normal operations
[Fri Dec 15 04:21:56 2006] [notice] jrApache[6006: 21632]
127.0.0.1:51011 connect failed: 111 111 Connection refused
[Fri Dec 15 04:21:56 2006] [notice] jrApache[6006: 21632]  Couldn't
initialize from remote server, JRun server(s) probably down.
[Fri Dec 15 04:21:56 2006] [error] [client 127.0.0.1] (13)Permission
denied: exec of '/usr/local/awstats/wwwroot/cgi-bin/awstats.pl'
failed[Fri Dec 15 04:21:56 2006] [error] [client 127.0.0.1] Premature
end of script headers: awstats.pl
[Fri Dec 15 04:22:01 2006] [notice] jrApache[6007: 22144]
127.0.0.1:51011 connect failed: 111 111 Connection refused
[Fri Dec 15 04:22:01 2006] [notice] jrApache[6007: 22144]  Couldn't
initialize from remote server, JRun server(s) probably down.
[Fri Dec 15 04:22:01 2006] [error] [client 127.0.0.1] (13)Permission
denied: exec of '/usr/local/awstats/wwwroot/cgi-bin/awstats.pl'
failed[Fri Dec 15 04:22:02 2006] [error] [client 127.0.0.1] Premature
end of script headers: awstats.pl


Any help is much appreciated.

0
jahan9 (55)
12/15/2006 9:36:35 AM
comp.os.linux.misc 33599 articles. 1 followers. amosa69 (78) is leader. Post Follow

3 Replies
19143 Views

Similar Articles

[PageSpeed] 38

On 2006-12-15, thecoolone <jahan9@gmail.com> wrote:
> I checked the http error logs and it says permission denied for exec to
> execute awstats.pl.

Are you by any chance running SELinux or a Se-linux-enabled distribution?
If so, check your selinux configuration.

> Just for testing i chmod everything to 777. So that i shouldn't get the
> permission error.

The fact that the script is executable doesn't mean that Apache consider
it executable, if it's not in a directory that has the magical
'cgi-bin' exectuable-attribute in the configuration it won't be
executed. The same goes for selinux.

> [Fri Dec 15 04:21:56 2006] [notice] jrApache[6006: 21632]  Couldn't
> initialize from remote server, JRun server(s) probably down.

Why are you running JRun connector if the JRun server isn't running?

> [Fri Dec 15 04:21:56 2006] [error] [client 127.0.0.1] (13)Permission
> denied: exec of '/usr/local/awstats/wwwroot/cgi-bin/awstats.pl'

Is /usr/local/awstats/wwwroot/cgi-bin configured as cgi-bin directory?

Davide

-- 
I read .doc files with "rm".  All you lose is the microsoft-specific
font selections, the macro viruses and the luser babblings.
-- Gary "Wolf" Barnes
0
12/15/2006 10:09:53 AM
Davide Bianchi wrote:
> On 2006-12-15, thecoolone <jahan9@gmail.com> wrote:
> > I checked the http error logs and it says permission denied for exec to
> > execute awstats.pl.
>
> Are you by any chance running SELinux or a Se-linux-enabled distribution?
> If so, check your selinux configuration.

I am running CentOS. Now i am not sure whether this is Se enabled or
not.

> > Just for testing i chmod everything to 777. So that i shouldn't get the
> > permission error.
>
> The fact that the script is executable doesn't mean that Apache consider
> it executable, if it's not in a directory that has the magical
> 'cgi-bin' exectuable-attribute in the configuration it won't be
> executed. The same goes for selinux.

I checked and the cgi-bin under /usr/local/wwwroot/awstats/cgi-bin has
executable permission.

> > [Fri Dec 15 04:21:56 2006] [notice] jrApache[6006: 21632]  Couldn't
> > initialize from remote server, JRun server(s) probably down.
>
> Why are you running JRun connector if the JRun server isn't running?

JRun is used by th ColdFusion app.

> > [Fri Dec 15 04:21:56 2006] [error] [client 127.0.0.1] (13)Permission
> > denied: exec of '/usr/local/awstats/wwwroot/cgi-bin/awstats.pl'
>
> Is /usr/local/awstats/wwwroot/cgi-bin configured as cgi-bin directory?

yes, but just to be on the safe side, this  configuring is in
httpd.conf right?

0
jahan9 (55)
12/16/2006 12:30:38 PM
On 2006-12-16, thecoolone <jahan9@gmail.com> wrote:
> I am running CentOS. Now i am not sure whether this is Se enabled or
> not.

See in /etc/selinux

>> Why are you running JRun connector if the JRun server isn't running?
>
> JRun is used by th ColdFusion app.

Well... it's not running! So fix it or get rid of it.

> yes, but just to be on the safe side, this  configuring is in
> httpd.conf right?

Yes, or in another conf file that is 'included' from httpd.conf

Davide

-- 
I have identified this service to be a scam using the "superfluous female 
person standing next to logo" method.
-- BillX on /.
0
12/16/2006 12:34:41 PM
Reply:

Web resources about - Awstats "Internal Server Error" problem - comp.os.linux.misc

Resources last updated: 3/27/2016 3:54:29 PM