Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, Iīve a problem with an awstats 6.5 installation, I installed it on
a Suse 9.0 with an Apache 2.0 web server...but when I open the url I only see the script's source code...
What steps did you follow to set it up? Did you run awstats_configure.pl? Do you have the required directives in your httpd.conf file (please see http://awstats.sourceforge.net/docs/awstats_setup.html for more info):
Code:
#
# Directives to add to your Apache conf file to allow use of AWStats as a CGI.
# Note that path "/usr/local/awstats/" must reflect your AWStats Installation path.
#
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/local/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/usr/local/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Yes your permissions are correct. Can you try running the script from the command line as a normal user? If it runs then the problem is with the Apache set up. If it doesn't run, can you post the error here?
It might be that your perl executable isn't were the script thinks it is. For example the first line of /usr/local/awstats/wwwroot/cgi-bin/awstats.pl is #!/usr/bin/perl - is your perl executable in /usr/bin/perl?
yes, the perl executable is in usr/bin...
if I build the static reports with:
perl awstats.pl -config=localhost -output -staticlinks > awstats.localhost.html
[Tue Dec 26 08:51:28 2006] [notice] Apache/2.0.52 (Unix) mod_jk/1.2.6 configured -- resuming normal operations
[Tue Dec 26 08:51:45 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 08:54:27 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/awstats/wwwroot/cgi-bin/wwwroot
[Tue Dec 26 08:54:27 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 08:54:44 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/awstats/wwwroot/cgi-bin/wwwroot
[Tue Dec 26 08:54:44 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 08:54:56 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/awstats/wwwroot/cgi-bin/wwwroot
[Tue Dec 26 08:54:56 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 08:55:00 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 08:56:26 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 08:56:29 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 09:17:21 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 09:51:05 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 11:32:37 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 11:32:47 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 11:32:53 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 11:33:03 2006] [error] [client 127.0.0.1] Attempt to serve directory: /usr/local/awstats/wwwroot/cgi-bin/
[Tue Dec 26 11:33:03 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 11:33:19 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 11:53:05 2006] [notice] caught SIGTERM, shutting down
[Tue Dec 26 11:53:59 2006] [notice] Apache/2.0.52 (Unix) mod_jk/1.2.6 configured -- resuming normal operations
[Tue Dec 26 11:54:04 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 11:54:12 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
[Tue Dec 26 12:06:17 2006] [error] [client 127.0.0.1] File does not exist: /opt/ame/ameinfra/apache/htdocs/favicon.ico
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.