Problems With Yiic When Apache Does Not Have Mod_Php

Trying to load yii framework on a server that hasn’t got mod_php in Apache:

when I run yiic I get this error:

PHP Notice:  Undefined index:  SCRIPT_FILENAME in /blah/blah/blah/yiisite/framework/base/CApplication.php on line 136

Server admin quotes this reason for using CGI instead of mod_php:

Any thoughts if this is the problem…?

Could be some PHP configuration problem. Seems that on that server $_SERVER[‘SCRIPT_FILENAME’] is not defined.