Configure cherokee for yii framework

It comes with an easy admin, so it is very easy to configure it for yii framework

  • Add a new host

  • Add PHP support

    Of course it must be already configured - see

  • Add a rule for protected (settings see screenshot 1/2)

    • Folder /protected/
    • Restrict access to ip, so no one except your webserver can access the protected folder
  • Add a rule for all not existing files (settings see screenshot 3/4)

    • Add rule "file exists" and invert it by clicking NOT
    • Choose handler redirection and add expression ^/(.*)$ => /index.php/$1

Save your settings or edit them as you need them. That’s it, you can start working with yii on cherokee.