NameSilo

Help with Cron Jobs

Spaceship Spaceship
Watch

flishess

Established Member
Impact
6
Hi -

I need help setting up a cronjob -

This is what the directions say to do -

Create a cron job to ensure that the page cron.php gets executed periodically. This page will close auctions, notify bidders, etc. The following is a cron to run daily at 12:15 am. You can change this once your site has heavier traffic to run more often however to start with once a day is highly recemmended.

Using Cpanel, access cron jobs off the main page. There, click on Advanced (Unix Style), and enter your email address then enter the following information in the box's: (15) in first box, (0) in second, (*) in third, forth and fifth, (GET http://yourdomain.com/cron.php > /dev/null) in the text field.

15 0 * * * GET http://yourdomain.com/cron.php > /dev/null

In my Control Panel this is what I see -

Command to Run (What goes here)

Email Address Where the Cron Output Will be Sent (I understand this part)

And then there are 5 boxes to set (I understand this part)

Can anyone help?

Thanks
Drew
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
This looks like the directions for PHP Auction, anyways, check out this manual, it will tell you the command to put in depending on your server. Even if it isnt for phpauction, the command should be similar

1. Go to http://www.phpauction.org/manuals/gpl_ins_ht/index.html

2. Click on 'Manual Installation'

3. Click on 'Manual Configurations'

You will then see this (you wont need to do the above if you understand this):

--- In Linux if you have PHP installed as a module, you can create a file /etc/cron.daily/phpauction.cron with these contents:


#!/bin/sh

lynx -dump /dev/null http://www.mydomain.com/phpauction/cron.php


--- If you have (or also have) PHP installed as a CGI you can substitute the lynx call above with the following:


PHP /absolute/path/to/cron.php

Of course the path to cron.php will depend on where you installed phpauction. Be sure to give cron.php permission to be executable.


--- In Windows, you can add a task manager job phpauc.job


C:\php\php.exe c:\myweb\htdocs\phpauction\cron.php
 
0
•••
if you are using cpanel. then you have the option between standard and advanced, if you do advanced you can copy and paste the code. if you to standard then you have to manually adjust the time.
 
0
•••
as you are beginned i will suggest you to use Standard option, that's the first i used, when i didn't understand anything about cronjob. :)
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back