In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.