My understanding is that you should never host your configuration.php file within the public_html directory (I am specifically referring to Joomla, but I imagine this is a cross-platform scenario).
My question is: is it at all possible for a user to access/view this configuration file over the internet, or would they first have to exploit the server and then use that exploit to access the config file. In other words, is the best-practice of keeping configuration.php outside of the web root purely to stop a minor exploit from escalating higher, or does the file's existence provide a vulnerability in and of itself?
