ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

codeigniter and cpanel and cronjob

June 27, 2011 5:20am

Subscribe [2]
  • #1 / Jun 27, 2011 5:20am

    donald.tbd

    26 posts

    Is it possible to put a codeigniter function into a cronjob in cpanel?

    This is how i put in a regular file:
    /usr/local/bin/php -f /home/codeigniter/public_html/cron.php

    But if would be to try something like this:
    /usr/local/bin/php -f /home/projekti/public_html/index.php/cron/cron

    ... i get an error “Could not open input file”.

    Any thoughts? 😊

  • #2 / Jun 27, 2011 6:11am

    donald.tbd

    26 posts

    I found a way to access the controller by http:
    “wget -O - -q -t 1 http://cron.com/cron/cron”

    I dont know what that means but it works :D

  • #3 / Jun 27, 2011 7:50am

    InsiteFX

    6819 posts

    Search the WIKI for Cron

    InsiteFX

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases