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.

About Saifur

A passionate software engineer, having several years of experiences in different area of software industry in Europe and Asia loves music, playing soccer, traveling new places, researching on new technologies such as programming languages, frameworks, software architectures and different project management practices.

, , ,

2 Responses to How to set a cron job using PHP in webmin

  1. Sha March 3, 2010 at 10:30 am #

    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.

  2. Joke Buddha May 3, 2010 at 7:54 pm #

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

Leave a Reply


*