YII Command tool not working


YII Command tool was not working in the newly created YII application, While using the below command in the command prompt not getting any respond, but normally its work with other YII application. Every path has been configured correctly and not getting any errors.

/var/www/yii-1.1.16/framework/yiic shell


Screenshot from 2015-03-30 08:48:24


This caused due to access rules has been configured in the new YII application, So index.php is not accessible without login, the YII command (yiic) tool will be failed without performing operation. To overcome this issue by specifying the path to the config file.

/var/www/yii-1.1.16/framework/yiic shell ./protected/config/main.php


Screenshot from 2015-03-30 08:57:37

Permanent link to this article: https://blog.openshell.in/2015/03/yii-command-tool-not-working/