Target uid/gid Mismatch with Directory or Program

One fine morning, a perfectly working cgi script started throwing “500 Internal Server Error” without any changes being made to the secipt. Client was at my head and I was at loss of my wits. But, then clients pay me for making things straight and working for them. Read this step by step tutorial as how this problem was solved.

This Sunday at 2 AM, I got a call from one client, who complained that cgi scripts on his website stopped working all of a sudden. This being peak season for his business, he was a worried lot and wanted me to give it an immediate attention. I rushed to my workstation. Client was on phone telling me the urls and script names which stopped working. I saw it was throwing “500 Internal Server Error”. My first question to client was if he has made any changes to the scripts or re-uploaded or changed the permissions on the files. Continue reading “Target uid/gid Mismatch with Directory or Program”