cgi-bin directories are usually set to try and execute every file. This is not compatible with how kareha works, it needs to be run from a directory where only .pl files are set to use cgi-handler.