That’s indeed quite strange.
Have you tried the ‘older’ version of crons in Yii, or the newer one?
What you might want to do is check whether everything is in right position, double check all settings in cron.php and the config/console.php.
By the way: Why is your cron.php in the root? Mine is located in protected, in the same folder as yiic.php
If everything is correctly, try to add a function in your Command actionIndex(){}. And leave function run(){} empty or use it for initialization. Then you can call it using
/usr/bin/php /home/develgl/public_html/cron.php CronXml index
Just so show my code for potential differences:
(cron.php, in protected [!]):
<?php
$yii=dirname(__FILE__).'/../framework/yii.php';
$config=dirname(__FILE__).'/config/console.php';
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
Yii::createConsoleApplication($config)->run();
?>
config/console.php
<?php
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Console Name',
// preloading 'log' component
'preload'=>array('log'),
'import'=>array(
'application.models.*',
'application.components.*',
),
// application components
'components'=>array(
'db'=>array(
....
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'logFile'=>'cron.log',
'levels'=>'error, warning',
),
array(
'class'=>'CFileLogRoute',
'logFile'=>'cron_trace.log',
'levels'=>'trace',
),
),
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'mail@example.org',
),
);
protected/commands/commandNameCommand.php
class commandNameCommand extends CConsoleCommand {
...
}
Hope this helps?