CGI Script not executing

Avatar
  • Answered
I have a cgi script on my site, called by www.mcafee.cc/Journal/index.html

I created a folder named cgi-bin in /Journal and placed the script, search.cgi, inside this folder.

This script worked on my previous host but has not worked on inmotion (I transferred hosts yesterday.)

The site www.mcafee.cc/Journal/index.html loads normally, but when the script is called, I get an error from the URL

http://www.mcafee.cc/Journal/cgi-bin/search.cgi

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

I think I need to enable cgi in this folder, but don't see how to do it. Weirdly, some of my folders had cgi-bin subfolders already present, while others like Journal did not.

Avatar
Scott
Hello Preston,

The issue was the permission settings on the search.cgi file. It had no execution permissions. I changed the permissions from 644 to 755 and it began to work properly.

Best Regards,
Scott M