The problem is not that my index.php couldn't be found. That seems to work fine.
The e-mail I got, contains a complete html dump of my website's home page, like this:
Code:
X-Powered-By: PHP/5.3.29
Set-Cookie: ci_session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html; charset=UTF-8
<!DOCTYPE html>
<html lang="nl">
<head>
...
</head>
<body>
...
</body>
</html>
So, the method cleanup inside my cronjobs controller is not executed.
My Cronjobs.php:
PHP Code:
<?php
class Cronjobs extends CI_Controller {
function __construct()
{
parent::__construct();
if (!$this->input->is_cli_request()) show_error('Direct access is not allowed');
}
public function cleanup()
{
...
}
}
I also tried the -f parameter in front of the path to index.php, but same result...