How to configure your Cronjobs on your Host? (Significant and necessary!)

Dear customers,

Cronjob functions and how to activate them is really important subject to use Videnox Video Scripts fully. If we want to explain what happens with CronJob; transferring contents to your Youtube, Dailymotion, Vimeo and etc. accounts, Facebook Wallposter and Twitter Commenter features are enabled via performing Cronjob commands.

We have 4 Cronjobs which are 'index', 'wall', 'transfer' and 'tweet'. These are our keywords to perform each Cronjobs.

How are you going to adjust Cronjob functions?

In the example, we used Cpanel.

First of all, you need to know that the commands for Cronjobs are different on Shared and Dedicated Hosts.

If you are using Dedicated Host;

  1. Go to your Host panel,
  2. Find 'Advanced' and click 'Cronjob'.
  3. You are going to face with like screen below
  4. Set your time spaces as example.

5. Then add the cronjob commands according to your [cpanelusername] by one by.

If you are using a Shared Host;

- Follow first 4 step,

- Cronjob command line will be different as you see in the example command line.

/usr/local/bin/php/home/{yourhostusername}/public_html/{yourwebsitefilename}/index.php cron index

/usr/local/bin/php/home/{yourhostusername}/public_html/{yourwebsitefilename}/index.php cron wall

/usr/local/bin/php/home/{yourhostusername}/public_html/{yourwebsitefilename}/index.php cron transfer

/usr/local/bin/php/home/{yourhostusername}/public_html/{yourwebsitefilename}/index.php cron tweet

You need to adjust inside of curvy brackets '{}' according to your domain and also apply it with changing the last word for 4 different cronjobs. Here is an example.

/usr/local/bin/php /home/videnox/public_html/ cron index

What if you are using Plesk or DirectAdmin, things are getting complicated but just follow the steps:

- Create a file named as cronjobs.php on your Videnox directory.

- Paste the code below:

<?php echo file_get_contents(''.$_GET['type']); ?>

-Then save the file.

-Go to your host panel

-Find the setting which can be named as 'scheduled tasks' or 'cronjobs'.

-Paste to command line below:

-Don't forget we have 4 Cronjob which are 'index', 'wall', 'transfer' and 'tweet'. When you are pasting the commend line, don't forget to change the type for different cronjobs. In example the type is 'wall' that shown with "type=wall".

For DirectAdmin: /usr/bin/wget -O /dev/null

For Plesk: wget -q 1>/dev/null 2>&1

Best Regards

Videnox Team