Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: cirkit on July 11, 2008, 06:04:32 AM
-
I am a linux newbie an am experimenting with sme server 7.3. i ahve a server installated with several users and domains all runing fine. lately i wanteded to explore some contribs so i installaed awstats for qmail, the contrib is working fine. the last command mentioned in the instructions while installing awstats is to perform a manual update. since then i am getting this message on my admin account every two hours. what does this message mean and how can it be disabled.
subject of message: Cron <root@mcp61> /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mail >/dev/nu
message: /bin/ls: /var/log/qmail/*.s: No such file or directory
/bin/basename: too few arguments
Try `/bin/basename --help' for more information.
The procedure i used to install awstats is as follows
Installation
Download the RPM from the AWstats homepage
wget http://prdownloads.sourceforge.net/awstats/awstats-6.7-1.noarch.rpm
Install the RPM
/usr/bin/yum -y localinstall awstats-6.7-1.noarch.rpm
Note:
If you have the AWStats contrib installed, use this install command
rpm -ivh --force awstats-6.7-1.noarch.rpm
Setup
Download the setup script qmail-awstats-setup.sh and run it.
wget http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Qmail-AWStats/qmail-awstats-setup.sh
bash qmail-awstats-setup.sh
This script...
creates an AWStats config file for Qmail
creates a data directory for AWStats
installs a logfile preprocessor script
creates a custom template for httpd.conf
creates a custom template for crontab
Run the first update manually
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mail
Usage
Point your browser to https://YOUR_SMESERVER_IP/awstats/awstats.pl?config=mail and login as admin.
I believe the message i get is due to the last command i issued
how do i solve this problem?
cirkit
-
This seems like the install instructions from the wiki, next time please just post the link, no need to reproduce it's content here.
-
I'll try to post the way you suggest. Any solution to the above problem?
-
How do i remove awstats from the command line, i tried a few commands but unsucessful.
-
How do i remove awstats from the command line, i tried a few commands but unsucessful.
The problem with this howto is that stuff is automated by scripts, you will have to study the contents of the scripts in order to know how to revert it.
To remove the awstats package itself you should be find doing this (considering you installed using yum):
yum remove awstats
-
i have posted the script file and cronjob file here http://jst.net.in/scpfiles
-
I tried going through the scripts but could not understand much. only the last few lines point towards the error i have listed.
-
if i remove awstats using yum. what happens to the script and cron job?
-
if i remove awstats using yum. what happens to the script and cron job?
They will stay unless you remoe them yourself.
-
sounds like you dont have any /var/log/qmail/*.s files. These are logs that are closed when they reach a certain size. When the log named current gets to about 5 megs, its named something like @4000000048701a220ed3fb7c.s and is not used anymore. (except for stats)
You can see samples of them in other log directories in /var/log/ if you poke around, but if its a new server and its not actually processing mail, you might not see any..
That link you posted for the script and cronjob doesnt work, btw.
Also, dont just type in 'yum remove awstats' unless awstats was the actual name of the package you installed. I use the awstats for my website, and its great...
You might get this to work if you modify the script to include the file named current. There shouldnt be file-lock concerns since not a busy system, but you probably shouldnt do it on a production server.
-
I'll check for the log files you mentioned. Actually my server crashed two days ago, its up again and the script and cron job files can be viewed http://jst.net.in/scpfiles
thankx