500 Error Executing CGI Script

I'm trying to install Dada Mail on a clean virtualmin install. I've read a similar post where it turned out to be a permission problem relating to root owner ship. I've check this and the domain is the owner in my case. Here are the logs:

suexec: uid: (500/icms1) gid: (500/500) cmd: uncompress_dada.cgi file is writable by others: (/home/icms1/cgi-bin/uncompress_dada.cgi)

error: suexec policy violation: see suexec log for more details Premature end of script headers: uncompress_dada.cgi

Access: GET /cgi-bin/uncompress_dada.cgi HTTP/1.1" 500 608 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"

Permissions of file set to 775. tried uploading cgi script in binary and ascii and uploaded directly from GIT repo. All same results.

Please help, thanks!

Status: 
Active

Comments

Howdy -- that suexec error suggests that the cgi-bin/uncompress_dada.cgi file is world writable, which would be a security risk.

What you may want to do is make the permissions 755, which would be writable by the owner, but only readable and executable by everyone else.

You can do that by logging into your server over SSH, and running "chown 755 uncompress_dada.cgi" on that file.

Damn! I've been fighting this all day lol. I had 775 in my head. Thanks so much!