[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] No png icons
- Subject: Re: [cobalt-users] No png icons
- From: Ramón Batalla <ramon_batalla@xxxxxxxx>
- Date: Sat Dec 8 08:55:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi Mark,
Below I write step by step instructions I was used to make
AWStats work in RaQ3, sorry for the lengthy...
HOW I INSTALL AWSTATS IN RAQ3
*****************************
As root I get awstats, untar it and change dir name & owners:
-------------------------------------------------------------
[root@www /root]#cd /home
[root@www /home]# wget
http://awstats.sourceforge.net/files/awstats.tgz
[root@www /home]# tar -xvizf awstats.tgz
[root@www /home]# chown -R root.root awstats-3.1
[root@www /home]# mv awstats-3.1 awstats
Next I move dirs to suite personal preferences and delete some
misc. files:
--------------------------------------------------------------
[root@www /home]# cd awstats
[root@www awstats]# rm *.TXT
[root@www awstats]# mv /home/awstats/wwwroot/cgi-bin/* /home/awstats/
[root@www awstats]# mv /home/awstats/wwwroot/icon /home/awstats/icon
[root@www awstats]# rm -R wwwroot
Change owners and permissions for security and to make it work:
---------------------------------------------------------------
[root@www awstats]# chmod 750 awstats.pl
[root@www awstats]# chmod -R 644 icon
[root@www awstats]# chmod -R 644 lang
[root@www awstats]# chown root.httpd awstats.pl
[root@www awstats]# chown -R root.httpd icon
[root@www awstats]# chown -R root.httpd lang
I Write one .htaccess file for grant access only to site-admins:
----------------------------------------------------------------
Authname Awstats
Authtype Basic
require group site-adm
order allow,deny
allow from all
And change owners and permissions:
----------------------------------
[root@www awstats]# chmod 640 .htaccess
[root@www awstats]# chown root.httpd .htaccess
I create one test conf file for every domain (not real domains here
;-) )
copying the model.conf and make changes:
----------------------------------------------------------------------
---
[root@www awstats]# cp awstats.model.conf awstats.www.domain.com.conf
(I list here only the conf of dirs I use, the rest as you prefered)
-------------------------------------------------------------------
LogFile="/home/sites/site?/logs/web.log"
DirData="/home/sites/site?/logs"
DirCgi="/awstats-cgi"
DirIcons="/awstats-img"
DirLang="./lang"
I make changes to apache conf files for make it work:
-----------------------------------------------------
[root@www awstats]# cd /etc/httpd/conf
I search in httpd.conf the section of rewrite rules and add at end
of section another rule for awstats:
------------------------------------------------------------------
$rewrite_rules =
'RewriteEngine On
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteCond %{DOCUMENT_ROOT} !-d
RewriteRule .*
proto://servername:81/.cobalt/error/forbidden.html [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/admin/?$
proto://servername:81/.cobalt/sysManage/index.html [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/siteadmin/?$
proto://servername:81/.cobalt/siteManage/%1/index.html [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/personal/?$
proto://servername:81/.cobalt/personal/index.html [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/.cobalt/(.+)
proto://servername:81/.cobalt/$1 [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/cgi-bin/.cobalt/(.+)
proto://servername:81/cgi-bin/.cobalt/$1 [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/stats/?$
http://servername/awstats-cgi/awstats.pl?config=servername [L,R]
';
Next, at the end of this perl section (</Perl>) I add one external
include file:
----------------------------------------------------------------------
----------
.
.
}
</Perl>
# AWSTATS - Include Control file - Modified by: YourName (MM/DD/YYYY)
include /etc/httpd/conf/awstats.conf
Next I write this AWSTATS - Include Control file and save it as
awstats.conf
in the /etc/httpd/conf dir:
----------------------------------------------------------------------
------
# icons and images dirs alias
Alias /awstats-img/ /home/awstats/icon/
# cgi-bin dir alias
Alias /awstats-cgi/ /home/awstats/
# awstats dir options
<Directory /home/awstats>
# allow .htaccess files
AllowOverride All
# the dir is a cgi-bin
Options ExecCGI
# perl scripts
AddHandler cgi-script .pl
</Directory>
Remember to restart apache:
---------------------------
[root@www conf]# /etc/rc.d/init.d/httpd restart
Hope this help but no warranty... ;-)
Ramon