Problem:
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:
Solution:
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: