• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cron not runing using php

#1
[eluser]vinu[/eluser]
Hello All,

i have set a cron job in codeigniter.

my cron works fine if i run it with http (http://mysite.com/index.php/controller/method)

but i need to use it via php:

php /home/username/public_html/accountinfo/index.php mycontroller mymethod

it's not working for me.

anybody help me please.

Thank you!

#2
[eluser]NotDior[/eluser]
If your site is using cPanel you need to call a different PHP.

/usr/local/bin/php


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.