Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to resolve cron job loopback issue
    primarykey
    data
    text
    <p>Big issue!</p> <p>I use the Codeigniter framework for my website. I need to set up a cron job. I have the ability to do so through cPanel, but I cannot get the command line right...</p> <ol> <li>I have exhausted every suggestion in other threads to run the script AS a Codeigniter URL - nothing works!</li> <li>I have found and tested a bootstrap script, which works fine from the command line when manually tested - but fails otherwise.</li> <li>I then turned to cUrl and wget using the full URL of the update script - however, the connection was refused... Having asked my host provider, they informed me that they don't allow "loopbacks" for cron jobs. I have now replaced my domain name in the command line with "localhost" and it does seem to connect successfully - but the script doesn't appear to run - plus when I use wget every cron creates a new index.html file in my root folder.</li> </ol> <p>/usr/bin/curl localhost/admin/update Cron daemon email (cUrl):</p> <blockquote> <p>% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed</p> <p>0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0</p> </blockquote> <p>/usr/bin/wget localhost/admin/update Cron daemon email (wget):</p> <blockquote> <p>--2013-12-15 23:20:02-- http://<code>localhost</code>/admin/update Resolving localhost... ::1, xxx.x.x.x Connecting to localhost|::1|:xx... connected. HTTP request sent, awaiting response... 302 Found Location: <a href="http://www.extendcp.com/holding/" rel="nofollow">http://www.extendcp.com/holding/</a> [following] --2013-12-15 23:20:02-- <a href="http://www.extendcp.com/holding/" rel="nofollow">http://www.extendcp.com/holding/</a> Resolving www.extendcp.com... xx.xxx.xx.x Connecting to www.extendcp.com|xx.xxx.xx.x|:xx... connected. HTTP request sent, awaiting response... 200 OK Length: 67 [text/html] Saving to: `index.html.2'</p> <pre><code>0K 100% 10.0M=0s </code></pre> <p>2013-12-15 23:20:02 (10.0 MB/s) - `index.html.2' saved [67/67]</p> </blockquote> <p>Can ANYONE help me get this script to run (and preferably NOT create a new index.html in doing so)?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload