How to set a cron job using PHP in webmin

I have a CentOS server to test my all projects. According to clients requirement webmin is installed as admin panel. Today I had tried to use a cron PHP script in that server and succeeded. This is how I have setup the cron job.

In the webmin panel ther is a menu group named ‘Cluster’;
So from that menu group -> Cluster Cron Job.
Then I have added a new cron job.
1. Selected user ‘apache’.
2. in the command box:
/usr/bin/php -q /full/path/to/the/cronjob.php
3. Then selected the time which I want the cron job should be done.

Wow… It’s working. Please feel free to ask if you need any further help regarding this.

2 Comments

Sha Identicon Icon Sha  on March 3rd, 2010

I have set the cron in webmin using system-> scheduled cronjob-> add ‘wget -q -0 /dev/null/http://mysite.com/admin/cron.php’

I don’t see any output from this and my statistic doesnt work also. Need your advice.

Joke Buddha Identicon Icon Joke Buddha  on May 3rd, 2010

The command has changed for latest version… as the path to php

Leave a Comment