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

Re: [cobalt-users] One last webalizer question raq3



> On Wed, 2 Apr 2003, steeker wrote:
> 
>> I finally got php 4.3.1, gd, png, and webalizer running on my raq3.  Thanks
>> to those that offered their adivice and help.  But I have one last question.
>> Where does webalizer generate the stats directory .htaccess file from?  It
>> is making it a little funky.
>> 
>> #Access file
>> order allow,deny
>> allow from all
>> require group site15
>> Authname WebStats
>> Authtype Basic
>> AuthAuthoritative
>> Off
>> 
>> 
>> If I move the last line "Off" up to the previous line it works fine.  Where
>> can I change this so that it does it right to start with?
>> 
> 
> look in /etc/cron.daily/webalizer.pl
> 
> # Create a .htaccess if it isn't there yet
> 
>   if (!-e "$thepath/.htaccess")
>   {
>      my $string =
>       "#Access file\norder allow,deny\nallow from all\nrequire group
>        $name\nAuthname WebStats\nAuthtype Basic\nAuthAuthoritative
>        off\nAuthPAM_Enabled on\n";
>       open HTACCESS, qq(>$thepath/.htaccess);
>      print HTACCESS $string;
>      close HTACCESS;
>      chmod 0744, qq($thepath/.htaccess);
>   }
> 
> I notice that 'off' is on a seperate line.
> Maybe changing it will help, mine works though
> 
> Gerald


Thanks.  I moved it up one line and we will see how it comes out tomorrow
morning.

Kody