Webmin cron job can't access function on Codeigniter

304 Views Asked by At

Hi I create a new scheduled cron job on webmin

My command is php

/var/www/admin-mywebsite/index.php croncontroller cronfunction

it returns the home page of my website on Codeigniter

I tried on an other website on the same server and it is the same : it returns the homepage.

If I try on navigator :

www.admin-mywebsite/croncontroller/cronfunction

it works

Why my cronjob doesn't access to mycontroller and function in my command?

0

There are 0 best solutions below