I'm using a MySQL database from within some Perl and PHP cgi's.
To make the connection, I have to supply the username/password
in the connection string. This info is readable for anyone that
can view my code, e.g. all other users that can access the
webserver box directly. This because the cgi-program has to be
readable for the user that's used by Apache.
How can I avoid this? I can't have my own webserver, regrettably,
other developers have access to this machine. Is there perhaps an
Apache option that I can use to avoid public exposure of the
connectstring?
I have set up the database server so it only accepts connections
from the webserver box, but that doesn't help with the above
problem.
Any pointers?
James
Comment