For instance I ran into this with two seperate files; one pertained to a perl script. I created a custom .php file located in my /cgi-bin directory and when I tried accessing it from my browser it would spit out:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, email@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.46 (Red Hat) Server at www.____________.com Port 80
I fixed this by placing the .php file in question into a folder that had existing .php files that I knew worked. After I changed the relative paths in the code it worked fine. The second problem I ran into was trying to run a .php file from my browser that I had just uploaded into a folder I had just created (permission 777 on folder and file) and I ran into the same "Internal Server Error." However when I moved the files into my sites root directory it executed without any problems at all.
I'm just wondering if anyone knows if this is a somewhat common problem or if there are ways around it?