View Full Version : PowWeb Log File Announcement
PowWeb has announced that the backup log rotation will be reduced from 8 days to 3 days. For those who want to retain the raw log files (which IMHO should be done anyway, whether PowWeb keeps 8 days or 3 days) take a look at this script:
http://prettyworthless.com/tips.php?tip=logs#tip
Skunkboy
11-28-04, 11:36 AM
I did notice that in your page, you mention to use cron - the only question then is... the best line to put in cron to make it work = ??
I say this because it took me a while to figure out:
*/5 * * * * /usr/local/bin/php /www/u/username/htdocs/confirmation_script.php >>/www/u/username/logs/cronaw.log 2>>/www/u/username/logs/cronaw.err
I did notice that in your page, you mention to use cron - the only question then is... the best line to put in cron to make it work = ??
My Tips & Scripts page has a whole section on making Cron work. Included are working examples.
I tried using your log rotating script, and it's the first script of yours that hasn't worked for me!
When I run it manually from the browser I get "500 internal server error", and it doesn't appear to run from the cron either. Double checked permissions, ascii upload, blank lines at end of cron, file paths etc.
Hmmmmm....
(This site is on magnatar if that helps)
I tried using your log rotating script, and it's the first script of yours that hasn't worked for me!I would guess that one of your paths is not valid. Double check that.
The script runs fine for me every night. If you want, youi can PM me with your script. You would not want to post your u/user info here.
OK, this is what I've found: I *CANNOT* get this script to work on magnatar, but it DOES work on www03. Anyone else using this on magnatar?
cyberCrank
12-1-04, 08:51 PM
I say this because it took me a while to figure out:
*/5 * * * * /usr/local/bin/php /www/u/username/htdocs/confirmation_script.php >>/www/u/username/logs/cronaw.log 2>>/www/u/username/logs/cronaw.err
but probably better security to never run cron jobs out of any top-level /htdocs... directory space (accessible by HTTP URL links) and do as B&T and stick with low-level directories such as /etc or another root-level directory like /cronjobs created and configured maybe for backups, cronjobs, and such...
OK, this is what I've found: I *CANNOT* get this script to work on magnatar, but it DOES work on www03. Anyone else using this on magnatar?
Well, after a LOT of timewaste, by chance I tried
AddHandler application/x-httpd-php5 .php
in an .htaccess file, and B&T's script (along with all the other scripts which work fine on other servers but not on magnatar) now work again.
This must be one of those service improvements.
Well, after a LOT of timewaste, by chance I tried
AddHandler application/x-httpd-php5 .php
in an .htaccess file, and B&T's script (along with all the other scripts which work fine on other servers but not on magnatar) now work again.
This must be one of those service improvements.
Now you are sending all your scripts through php5 rather than php4. You should not need to do that. It would appear a bug still remains on your server or in your htaccess file.
Now you are sending all your scripts through php5 rather than php4. You should not need to do that. It would appear a bug still remains on your server or in your htaccess file.
It appears I hadn't been spending enough hours per days keeping up with Powweb's changes - it was an old version of Powweb's php.ini file (old being nearly 2 months). No idea what was in it that caused it, as I'd only changed the session variable thing. Started using your php copying script now! Thanks
Started using your php copying script now! Thanks
Glad to help.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.