This can have many causes, ranging from incorrect permissions to syntax errors within the script. Check that the script actually runs by running it via a telnet prompt. Then check permissions and ownership:
Does the main user of the domain own the script?
Do the script and its parent directory both have 755 permissions?
Was the script uploaded in ASCII mode, not binary?