![]() |
cron using wget instead of php
I have PHP on safe_mode globally, but turned it off for the vhost containing phpdig.
Tried the cron with php but still got this message (even though safe_mode is off for that vhost) : PHP Warning: set_time_limit(): Cannot set time limit in safe mode I then tried the following cron That worked, the site got spidered :) I would like to have the site indexed/updated on a weekly basis, should the above mentioned cronjob work or do I have to change it? Also what does the "site is recently spidered" error mean? recently as in 1 hour, 1 day, 1 week? How long do you have to wait before you can spider it again? |
Hi. Seems PHP thinks the vhost is still in safe mode. Not sure about that, but there is a cron job tutorial here. Reindex depends on define('LIMIT_DAYS',7); in the config file or a meta revisit-after tag.
|
Quote:
Thank you for your reply. hmm...I stlll can't get rid off the "Cannot set time limit in safe mode " error when I use the php command The vhost is not in safe_mode (I double checked with phpinfo(); ) Is there a problem with using the following cronjob? It seems to work so far and solves the safe_mode problem :) /usr/bin/wget --delete-after http://admin:pwd@domain.com/phpdig/a...url=http://url |
Hi. Other than passing the username and password in plain text, it's probably not a problem.
|
Quote:
True, the username/password are passed in clear text, but as long as I use it just for my site residing on my server it shouldn't be a big security issue. And I can restict admin access to 127.0.0.1 and my own IP. Instead of wget I could try using curl though. I'll see how that goes. |
All times are GMT -8. The time now is 08:38 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.