I'm running Apache 3.0, and have a c++ cgi-bin program working fine with Apache... except the cgi-bin program wont create or even read from files it uses as a database? Anybody know the answer to this one?
Are you entirely sure that apache is seeing the same directory structure that you're seeing?
Which real / effective user ID's is apache running with, and do these have appropriate permissions to access the files?
Create a simple C++ program which allows you to log all this information, and send it back out as a response.
Use API calls like perror() to tell you why a file could not be accessed - like could it be found, or is it permissions?