01223 850 730  |  hello@primexeon.com  |  Home  |  About Us  |  Contact Us

Portal Home > Knowledgebase > Web Hosting > I cannot use wget, lynx, curl in cron job


I cannot use wget, lynx, curl in cron job




curl, wget and lynx are disabled on the server for security reasons.

Hence, instead of something like:

0 0 1 * * /usr/bin/lynx -q http://www.domain.com/cron_dir/cron.php > /dev/null

please change your cron to something like the following to work:

0 0 1 * * /usr/bin/php -q /home/username/public_html/cron_dir/cron.php


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read