How to activate a cron with cPanel?

    1.Connect to your cPanel interface «http://www.votrenomdedomaine.ext/cpanel »

  1. Go to the "Advanced" section and click on "Cron tasks"

  1. Choose the parameters of the values of the desired periodicity (minutes, weekend, month ...), through the field "Common parameters" the choices will be displayed by default.

  1. Enter the command to be executed "/usr/bin/php /home/useraccount/public_html/example.php'' on the "Command" field, and click "Add a new Cron job"

P.S: Type /usr /bin /php /home/useraccount/public_html/example.php

You can replace example.php with the script you need to run periodically. For a blog directory "crick.php", you write:

 

/usr /bin /php /home/useraccount/public_html/blog/cric.php

 

(Pay attention to the space between /usr /bin /php and the rest.)

  • 20 Users Found This Useful
Was this answer helpful?

Related Articles

How do I access my statistics from my cPanel with Awstats?

Connect to your Cpanel interface “http: //www.yourdomainname.ext/cpanel” 2. Under the...

How to activate & configure SpamAssassin?

1-Connect to your cPanel interface "http: //www.yourdomainname.ext/cpanel" 2-Go to the "EMAIL"...

How do I activate SPF / DKIM (cPanel) records?

Connect to your cPanel Interface “http: //www.yourdomainname.ext/cpanel”     2. Go to the...

How to add a site (domain name) to a cPanel account?

It's easy to create a new domain for new sites, if you have a hosting plan that can host multiple...

How to add a MySql database with cPanel?

Connect to your cPanel interface "http: //www.yourdomainname.ext/cpanel" Under the...