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:
Is the script owned by the main user of the domain?
Does the script and its parent directory both have 755 permissions?
Was the script uploaded in ascii mode, not binary?