Hi. I could not run cron-job on hosting server
Because this is the following error:
This is Yii version 2.0.11-dev.
The following commands are available:
- asset Allows you to combine and compress your JavaScript and CSS files.
asset/compress (default) Combines and compresses the asset files according to the given configuration.
asset/template Creates template of configuration file for [[actionCompress]].
- cache Allows you to flush cache.
cache/flush Flushes given cache components.
cache/flush-all Flushes all caches registered in the system.
cache/flush-schema Clears DB schema cache for a given connection component.
cache/index (default) Lists the caches that can be flushed.
- fixture Manages fixture data loading and unloading.
fixture/load (default) Loads the specified fixture data.
fixture/unload Unloads the specified fixtures.
- gii This is the command line version of Gii - a code generator.
gii/controller Controller Generator
gii/crud CRUD Generator
gii/extension Extension Generator
gii/form Form Generator
gii/index (default)
gii/model Model Generator
gii/module Module Generator
- help Provides help information about console commands.
help/index (default) Displays available commands or the detailed information
help/list List all available controllers and actions in machine readable format.
help/list-action-options List all available options for the $action in machine readable format.
help/usage Displays usage information for $action
- init Init the application.
init/index (default) Init. [Create categories]
- message Extracts messages to be translated from source files.
message/config Creates a configuration file for the "extract" command using command line options specified
message/config-template Creates a configuration file template for the "extract" command.
message/extract (default) Extracts messages to be translated from source code.
- migrate Manages application migrations.
migrate/create Creates a new migration.
migrate/down Downgrades the application by reverting old migrations.
migrate/history Displays the migration history.
migrate/mark Modifies the migration history to the specified version.
migrate/new Displays the un-applied new migrations.
migrate/redo Redoes the last few migrations.
migrate/to Upgrades or downgrades till the specified version.
migrate/up (default) Upgrades the application by applying new migrations.
- rbac RbacController class
rbac/init
- serve Runs PHP built-in web server
serve/index (default) Runs PHP built-in web server
- sitemap Creating/Overwrite the sitemap xml.
sitemap/index (default) Create sitemap file.
- sync Synchronize videos.
sync/added
sync/deleted
sync/index (default) Video sync the new added and deleted videos.
sync/init
Status: 500 Internal Server Error
Content-type: text/html; charset=UTF-8
Exception 'yii\base\InvalidConfigException' with message 'Unable to determine the entry script file path.'
in /home/xxxx/app/vendor/yiisoft/yii2/base/Request.php:64
Stack trace:
#0 /home/xxxxx/app/vendor/yiisoft/yii2/base/Component.php(132): yii\base\Request->getScriptFile()
#1 /home/xxxxx/app/vendor/yiisoft/yii2/console/controllers/HelpController.php(542): yii\base\Component->__get('scriptFile')
#2 /home/xxxxx/app/vendor/yiisoft/yii2/console/controllers/HelpController.php(345): yii\console\controllers\HelpController->getScriptName()
#3 /home/xxxxx/app/vendor/yiisoft/yii2/console/controllers/HelpController.php(67): yii\console\controllers\HelpController->getDefaultHelp()
#4 [internal function]: yii\console\controllers\HelpController->actionIndex(NULL)
#5 /home/xxxx/app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#6 /home/xxxxx/app/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\InlineAction->runWithParams(Array)
#7 /home/xxxxxx/app/vendor/yiisoft/yii2/console/Controller.php(128): yii\base\Controller->runAction('', Array)
#8 /home/xxxxxx/app/vendor/yiisoft/yii2/base/Module.php(522): yii\console\Controller->runAction('', Array)
#9 /home/xxxxx/app/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('', Array)
#10 /home/xxxxx/app/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('', Array)
#11 /home/xxxx/app/vendor/yiisoft/yii2/base/Application.php(379): yii\console\Application->handleRequest(Object(yii\console\Request))
#12 /home/xxxxx/app/yii(26): yii\base\Application->run()
#13 {main}
The PHP version is 5.6. I checked by php -v command.