LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-29-2011, 12:28 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Rep: Reputation: 32
Awstats


Hi all

I'm trying to install awstats via the command line

after running
Code:
apt-get install awstats
, seems to install OK

when running the command
Code:
cp /etc/awstats/awstats.conf /etc/awstats/awstats.yourdomain.ext.conf
I get NO such directory or file any idea to why

I'm logged in as root

system is Ubuntu 9.04 \n \l

TT ( karl )
 
Old 01-29-2011, 01:54 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
post the output of

Code:
aptitude show awstats
and

Code:
ls -al /etc/awstats
 
Old 01-29-2011, 03:01 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Original Poster
Rep: Reputation: 32
install as follows ( fresh install )

Code:
apt-get install awstats
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  binutils-static
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libnet-xwhois-perl
Suggested packages:
  libnet-dns-perl libnet-ip-perl libgeo-ipfree-perl
The following NEW packages will be installed:
  awstats libnet-xwhois-perl
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 974kB of archives.
After this operation, 5,341kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://au.archive.ubuntu.com karmic-updates/main awstats 6.9~dfsg-1ubuntu3.9.10.1 [951kB]
Get:2 http://au.archive.ubuntu.com karmic/main libnet-xwhois-perl 0.90-3 [23.0kB]
Fetched 974kB in 9s (101kB/s)
Selecting previously deselected package awstats.
(Reading database ... 35076 files and directories currently installed.)
Unpacking awstats (from .../awstats_6.9~dfsg-1ubuntu3.9.10.1_all.deb) ...
Selecting previously deselected package libnet-xwhois-perl.
Unpacking libnet-xwhois-perl (from .../libnet-xwhois-perl_0.90-3_all.deb) ...
Processing triggers for man-db ...
Setting up awstats (6.9~dfsg-1ubuntu3.9.10.1) ...

Configuration file `/etc/cron.d/awstats'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : background this process to examine the situation
 The default action is to keep your current version.
*** awstats (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/cron.d/awstats ...

Configuration file `/etc/awstats/awstats.conf'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : background this process to examine the situation
 The default action is to keep your current version.
*** awstats.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/awstats/awstats.conf ...

Setting up libnet-xwhois-perl (0.90-3) ...
root@localhost:~#
aptitude show awstats

Code:
root@localhost:~# aptitude show awstats
Package: awstats
State: installed
Automatically installed: no
Version: 6.9~dfsg-1ubuntu3.9.10.1
Priority: optional
Section: web
Maintainer: Ubuntu Core Develoers <ubuntu-devel@lists.ubunutu.com>
Uncompressed Size: 5,214k
Depends: perl
Recommends: libnet-xwhois-perl
Suggests: apache | httpd, libnet-dns-perl, libnet-ip-perl, libgeo-ipfree-perl
Description: powerful and featureful web server log analyzer
 Advanced Web Statistics (AWStats) is a powerful web server logfile analyzer
 written in perl that shows you all your web statistics including visits, unique
 visitors, pages, hits, rush hours, search engines, keywords used to find your
 site, robots, broken links and more. Gives more detailed information and better
 graphical charts than webalizer, and is easier to use. Works with several web
 server log format as a CGI and/or from command line. Supports more than 30
 languages.
Homepage: http://awstats.sourceforge.net/

root@localhost:~#
ls -al /etc/awstats

Code:
root@localhost:~# ls -al /etc/awstats
total 80
drwxr-xr-x  2 root root  4096 2011-01-29 15:57 .
drwxr-xr-x 99 root root 12288 2011-01-29 15:56 ..
-rw-r--r--  1 root root 60659 2011-01-13 00:13 awstats.conf
root@localhost:~#
 
Old 01-29-2011, 04:30 AM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Original Poster
Rep: Reputation: 32
after setting it up and freaking out on the weather ( cyclone )

I keep getting this message

Code:
/usr/lib/cgi-bin/awstats.pl -config=rockinghamgateway.com -update
Error: Could not open include file: /etc/awstats/awstats.conf.local
Setup ('/etc/awstats/awstats.rockinghamgateway.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
funny thing is I only see awstats.conf and not awstats.conf.local

TT
 
Old 01-30-2011, 03:31 AM   #5
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Original Poster
Rep: Reputation: 32
I follows this link http://www.server-world.info/en/note...4&p=httpd&f=12

all seems to install OK, I even see the html report using vi

but when I try to access the index.html
I get, You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. You don't have permission to access the requested object. It is either read-protected or not readable by the server.

I'm at a loss here, I cant seem to find a doc that explains the permissons, what am I doing wrong ?

TT ( karl )
 
Old 01-31-2011, 03:24 AM   #6
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Original Poster
Rep: Reputation: 32
I still get the error after following another link, http://rudyisskankin.blogspot.com/20...untu-1004.html

Quote:
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. You don't have permission to access the requested object. It is either read-protected or not readable by the server.
I don't get it, is apache2 not reading the file ?

Any help please

TT ( karl )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
awstats tommytomato Linux - General 5 07-19-2010 07:31 PM
awstats trebek Linux - Software 17 12-08-2006 12:50 AM
awstats tommytomato Linux - General 4 09-20-2006 07:29 PM
awstats comprookie2000 Linux - Security 2 05-01-2005 06:55 PM
AWstats WiWa Linux - Software 11 08-17-2003 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration