LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2004, 04:05 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Rep: Reputation: 32
AWstats setup on tinysofa


Hi guys
I've downloaded the AWstats file
and installed it on a tinysofa server

install went well, i followed the screen notes and added my httpd path etc etc when asked

However when trying to view the page i get the following error
http://192.168.0.28:81/awstats/awsta...nfig=localhost

Forbidden
You don't have permission to access /awstats/awstats.pl on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Any one tell me whats going on..

TT
 
Old 05-28-2004, 04:59 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
In the directory where you have installed AWStats, can you execute (cgi) scripts? And does the user the webserver runs as have read and execute permission on the scriptfile itself?


Håkan
 
Old 05-28-2004, 07:50 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Original Poster
Rep: Reputation: 32
Hi i am alittle lost on this.

The only folder i see is tools under awstats



Code:
root@localhost /usr/local/awstats/tools# ls -al
total 160
drwxr-xr-x  4 root root  4096 May 28 16:49 ./
drwx------  5 root root  4096 May 28 14:33 ../
-rw-------  1 root root     0 May 28 16:49 awstats.localhost.html
-rwxr-xr-x  1 root root 18472 May 15 21:40 awstats_buildstaticpages.pl*
-rwxr-xr-x  1 root root 12767 May 15 21:40 awstats_exportlib.pl*
-rwxr-xr-x  1 root root  4576 May 15 21:40 awstats_updateall.pl*
-rwxr-xr-x  1 root root 25391 May 15 21:40 configure.pl*
-r--r--r--  1 root root   762 May 15 21:40 httpd_conf
-rwxr-xr-x  1 root root 27513 May 15 21:40 logresolvemerge.pl*
-rwxr-xr-x  1 root root 26376 May 15 21:40 maillogconvert.pl*
-rwxr-xr-x  1 root root 10535 May 15 21:40 urlaliasbuilder.pl*
drwxr-xr-x  2 root root  4096 May 28 14:33 webmin/
drwxr-xr-x  2 root root  4096 May 28 14:33 xslt/
root@root@localhost /usr/local/awstats/tools#
I dont know if this is right, I'm doing all this on a test machine before i go live to my server.

Code:
localhost /usr/local# cd awstats/
root@localhost /usr/local/awstats# ls
README.TXT  docs/  tools/  wwwroot/
TT

Last edited by tommytomato; 05-28-2004 at 07:53 AM.
 
Old 09-17-2004, 08:18 AM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Original Poster
Rep: Reputation: 32
Hi all

I got awstats running like a T my fcron has no errors updates ok
only problem is i cant view it ( the page )

I get this
You don't have permission to access /awstats/awstats.pl on this server.

Can any one tell me what the perms should be please, i'm new to awstats and it has me foxed big time.

/usr/local/awstats#

drwx------ 6 root root 4096 Sep 17 17:58 ./
drwxr-xr-x 12 root root 4096 Sep 17 16:51 ../
-r--r--r-- 1 root root 6716 May 15 21:40 README.TXT
drwxr-xr-x 2 root root 4096 Sep 17 20:00 data/
drwx------ 3 root root 4096 Sep 17 16:51 docs/
drwxr-xr-x 4 root root 4096 Sep 17 16:51 tools/
drwxr-xr-x 7 root root 4096 Sep 17 17:58 wwwroot/


/etc/awstats


drwx------ 2 root root 4096 Sep 17 17:49 ./
drwxr-xr-x 48 root root 4096 Sep 17 16:51 ../
-rw------- 1 root root 52736 Sep 17 17:48 awstats.model.conf
-rwxr-xr-x 1 root root 52807 Sep 17 17:52 awstats.www.mydomain.com.conf*



TT


P.S OS is TinySofa
 
Old 10-24-2004, 01:45 PM   #5
silverd
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
I had the same problem and the solution was to move awstats directory from /usr/local to another one (ie: /opt), of course I had to change all the lines in the htttpd.conf file which referred to the old path:

Alias /awstatsclasses "/opt/awstats/wwwroot/classes/"
Alias /awstatscss "/opt/awstats/wwwroot/css/"
Alias /awstatsicons "/opt/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/opt/awstats/wwwroot/cgi-bin/"

<Directory "/opt/awstats/wwwroot">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Pay attention to the following lines in the /etc/awstats/awstats.hostname.conf file, they have wrong values when the file is created by the configuration script. They have to be based on the aliases stated in httpd.conf, so the correct values are:
DirData="../data"
DirCgi="/awstats"
DirIcons="/awstatsicons"
 
  


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
Tinysofa apt-get IchBin Linux - Newbie 2 12-19-2004 03:26 PM
htaccess on TinySofa tommytomato Linux - Security 5 10-21-2004 09:07 AM
MySQL on Tinysofa tommytomato Linux - Newbie 5 05-18-2004 11:52 AM
setup question tinysofa tommytomato Linux - General 0 05-15-2004 06:21 AM
Setup Crontab for AWSTATS hct224 Linux - Newbie 0 02-28-2004 12:34 PM


All times are GMT -5. The time now is 11:56 AM.

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