The best way to debug this is to turn on debug logging by setting "Debug level" to "HIGH", then check lsws/logs/error.log
Make sure that permission of the CGI script has been set properly, virutal host has not been restrained to its vhost root, script has been enabled.