How to run php file as cron job in cPanel in Bigrock Shared Hosting service?

I am trying to run a PHP file that automatically generates a sitemap and pings various search engines using cURL as a cron job.

The hosting plan is a shared plan provided by Bigrock.in .

CPanel Pro 1.0 Control Panel (RC1)

This is my current cron command:

php /home/myusername/public_html/sitemap_auto.php

      

But that doesn't seem to work at all. So any help would be greatly appreciated.

Thanks in advance.

+1


source to share


2 answers


The path to the php binary is / usr / bin / php, so the cron command to be configured will be

/usr/bin/php/home/myusername/public_html/sitemap_auto.php



However, the reason for the cron failure is likely elsewhere. I suggest you raise a request to our support team and tell them exactly how you create a sitemap and what specific commands you use to test search engines.

+2


source


You can check the guide provided by your hosting provider Bigrock

Below is the link for Cron Job on Large Hosting Hosting



Also you can link to the documentation on the same page

Please let me know if I can help you.

+1


source







All Articles