It's much easier to first make sure you have CGI script working, and only then try to run Wakaba.
Try getting this script running first, then proceed to running Wakaba: http://wakaba.c3.cx/sup/kareha.pl/1102836129/6