LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   AWstats setup on tinysofa (https://www.linuxquestions.org/questions/linux-newbie-8/awstats-setup-on-tinysofa-186830/)

tommytomato 05-28-2004 03:05 AM

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

hw-tph 05-28-2004 03:59 AM

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

tommytomato 05-28-2004 06:50 AM

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

tommytomato 09-17-2004 07:18 AM

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

silverd 10-24-2004 12:45 PM

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"


All times are GMT -5. The time now is 12:01 AM.