Web Hosting Talk







View Full Version : phpAdsNew crontab question please.


Salvatore
08-07-2004, 03:30 AM
trying to setup phpAdsNew. a little lost on this section. can someone give me specific instructions please. i have a cpanel server. thank you very much

Based on which tool your server supports add one of the following lines to the cron.txt
file:

# if your server supports curl:
0 * * * * curl -s -o /dev/null http://your.server.name.here/phpAdsNew/maintenance/maintenance.php


# if your server supports fetch:
0 * * * * fetch -o /dev/null http://your.server.name.here/phpAdsNew/maintenance/maintenance.php


# if your server supports lynx:
0 * * * * lynx > /dev/null -dump http://your.server.name.here/phpAdsNew/maintenance/maintenance.php


# if your server supports wget:
0 * * * * wget -q -O /dev/null http://your.server.name.here/phpAdsNew/maintenance/maintenance.php

AussieHosts
08-07-2004, 10:55 AM
http://www.cpanel.net/docs/cp/cronJobs.htm

The section at the bottom which starts with:

"If you want to use the Advanced mode, click on the Advanced (Unix Style) button."

Put 0 in the Minutes field, asterixes in the rest, and in the Command field put:

wget -q -O /dev/null http://your.server.name.here/phpAdsNew/maintenance/maintenance.php

Salvatore
08-07-2004, 11:06 AM
thank you so much for helping me. the server name is an ip number or ns1.server?

Salvatore
08-07-2004, 11:09 AM
i think its the direct link to the maintenance.php file, thanks again for your help.

AussieHosts
08-07-2004, 11:14 AM
Originally posted by samborocks
i think its the direct link to the maintenance.php file, thanks again for your help.

Yep. wget will just call the file over http. Not knowing whether you have curl/lynx/etc support, that's the simplest way.

Salvatore
08-07-2004, 12:05 PM
i just got this emailed to me:

/bin/sh: line 1: http://URLphpadsnewIsInstalled/adserver/maintenance/maintenance.php: No such file or directory

but there is a file there and that is the path. please advise, thank you

Salvatore
08-07-2004, 12:09 PM
forgot this in the beginning like an idiot:
wget -q -O /dev/null

sorry