There can be any number of reasons that can happen, and sometimes it can be difficult to determine the cause of the problem. Here is what the Apace documentation has to say about it. It would help a lot to know what kind of script you were trying to run (PHP, perl, etc.) and possibly see the code.
Another possible, and common, cause of this is uploading files created on Wind*ws systems without accounting for the difference in the line endings between Wind*ws and *nix (DH runs Debian Linux).
In short, without more details it is very hard for me to know exactly why your script isn't working.
Here is the list of "most common" reasons for this error:
- Make sure you have Unix line breaks.
- Make sure the text is ASCII.
- Make sure any "shebang!" lines in your script are correct (perl script points to #!/usr/bin/perl, etc)
- On DH, Make sure that your script, and the directory in which it resides) has 755 permissions.