I had a CGI script break on otto this morning. Upon investigation, I found it was because the web server was now running as “dhapache” rather than as my username as it had before.
To quickly fix this and get things working again, I changed the directory permissions to 777 and the file permissions to 666…which the CGI documentation says NOT to do.
(scroll down to “Special considerations because we run suexec!”)
It says, “your CGI scripts on your web site run as though they were run by your user and group!” This is no longer the case.
It was working fine until sometime last night when the server was changed so that CGI scripts are run as user “dhapache” rather than my username. When that changed, the forum CGI scripts broke because they suddenly didn’t have permission to write/change files anymore.
What really has me worried is if you turn suexec back on again, this will break again because “As a security precaution, suexec REQUIRES that all cgi scripts AND THE DIRECTORIES IN WHICH THEY RESIDE NOT be writable by anyone but the owner user.” …and I’ll have to go change all the file and directory permissions back to what they were before.
Pain. In. The. Ass!
I opened a ticket. It was about 13 hours before I got a response. The response just told me it looks like my script is working again. I don’t think Brian even looked into the details I provided…so now I have to explain the whole problem AGAIN and wait again for another stupid response. (It seems like the first responses are always trying to blow me off until I insist there IS a problem.)