Menu ▾ ▴

#9 cmuImport does not set o+x bit on logs directory

open
nobody
Other (???) (2)
5
2007-07-15
2007-07-15
No

When cmuImport bring in a site from a RaQ4 (and maybe other models) it appears to restore the site logs directory with the same permission as it originally had. In the RaQ4 case this means it's missing the o+x bit needed by the BQ gui to generate the site stats for web, ftp, and mail.

The protection error is presented as :
"No data were found for activity during the period specified. You may want to try another set of dates."

The error in the BQ gui occurs in line 245 in ReportHelper.php:
$handle = @fopen($statsfile, "r");

A simple workaround is to use the command:
chmod o+x /home/sites/*/logs

to add the required protect bit to allow the BQ php to access the web.stats, ftp.stats, and the mail.stats files in the site's logs directory.

Of course the fix in cmuImport is preferable - to assure the required o+x bit is on.

Thanks,
-Stephanie

Discussion


Log in to post a comment.