[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Fontpage and Webalizer version 2.0 - RaQ 3



The fix depends on which version you have of Webalizer.  If you have the one
from Cobalt, it's Webalizer Version 1.30 (unless they have recently updated
it).  I have that on one RaQ3.  On the other, I have Webalizer Version 2.00,
which I downloaded from John Rood at sfarc.net.  There's a different
solution to each situation.

For Webalizer Version 1.30
---------------------------
After installing the pkg, there's a script, /etc/cron.daily/webalizer.pl,
that you need to have a look at.  There was an update that caused the web
server to run as "nobody," rather than "httpd," but the webalizer.pl script
didn't know about that.  All you need to do is edit the script (vi or
pico -w) and make a change.  Look for the text below in that script:

    # Now change ownership of stats files for siteadmin
    $messages .= `chown -R httpd:$name $thepath`;

and change "httpd" to "nobody" so that it looks like this:

    # Now change ownership of stats files for siteadmin
    $messages .= `chown -R nobody:$name $thepath`;

Save the script, and that will take care of it.
---------------------------

For Webalizer Version 2.00
---------------------------
I found the problem here to be that the script was run by cron as root,
causing the stats directory to be owned by root, when it needs to be owned
by nobody.

This was an easy thing to fix.  I just edited /etc/cron.d/webalizer and made
it look like this:

# just run webalizer.pl each day at 4.12 am
45 10 * * *    nobody   /usr/local/bin/webalizer.pl


I hope that helps.  This is what did it for me.

-  Beth

P.S.   If your Front Page files are all owned by httpd, then you need to
make sure that httpd owns the stats directories and files, rather than
nobody.





----- Original Message -----
From: "Andrew Witham" <awitham@xxxxxxxxxxxx>
To: "'Beth's Lists'" <lists@xxxxxxxxxxxxx>
Sent: Tuesday, December 05, 2000 2:02 PM
Subject: RE: [cobalt-users] Fontpage and Webalizer version 2.0 - RaQ 3


> Beth,
>
> I have the same problem on a RAQ4r - can you point me to a 'for Dummies'
> guide (keystroke by keystroke!) to doing this as I have 'zero' Linux
> experience - have done everything off the GUI so far - although I can now
> manage to telnet into the server and find my way around - a steep learning
> curve!
>
> Thanks
>
> Drew
>
> Andrew (Drew) Witham
> Data Services Manager
> Adtel Communications
>
> Swb  (530) 242 3900
> DiD   (530) 245 2829
> Fax   (530) 242 3912
>
> awitham@xxxxxxxxxxxx
> http://www.adtelcom.net
>
>
>
> >   -----Original Message-----
> >   From: cobalt-users-admin@xxxxxxxxxxxxxxx
> >   [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Beth's Lists
> >   Sent: Tuesday, December 05, 2000 9:25 AM
> >   To: cobalt-users@xxxxxxxxxxxxxxx
> >   Subject: Re: [cobalt-users] Fontpage and Webalizer version
> >   2.0 - RaQ 3
> >
> >
> >   Oops!  Sean, it's version 1.3 that you modify the script.
> >   The newest one
> >   (2.0) just requires that your cron run it as "nobody."  I
> >   tested that on one
> >   of my RaQs, and that's all it took.
> >
> >
> >   ----- Original Message -----
> >   From: "Sean Chester" <seanc@xxxxxxxxxxxxxxxxxxxxxx>
> >   To: <cobalt-users@xxxxxxxxxxxxxxx>
> >   Sent: Tuesday, December 05, 2000 4:16 AM
> >   Subject: [cobalt-users] Fontpage and Webalizer version 2.0 - RaQ 3
> >
> >
> >   > Could someone help me out here, with file permisions and
> >   frontpage.
> >   >
> >   > I'v installed Webalizer v2.0, but since iv installed
> >   that, Frontpage
> >   doesnt
> >   > like it when it updates sites with a /stats directory.
> >   >
> >   > Im told i need to change the file permisions on the
> >   /stats directory,
> >   > i'v looked through webalizer.pl and i canot find anything
> >   to change to set
> >   > the permisions.
> >   >
> >   > My customers cannot update their sites (using frontpage)
> >   until iv fixed
> >   this
> >   > problem.
> >   >
> >   >
> >   >
> >   > _______________________________________________
> >   > cobalt-users mailing list
> >   > cobalt-users@xxxxxxxxxxxxxxx
> >   > To Subscribe or Unsubscribe, please go to:
> >   > http://list.cobalt.com/mailman/listinfo/cobalt-users
> >   >
> >
> >   _______________________________________________
> >   cobalt-users mailing list
> >   cobalt-users@xxxxxxxxxxxxxxx
> >   To Subscribe or Unsubscribe, please go to:
> >   http://list.cobalt.com/mailman/listinfo/cobalt-users
> >
>