Joomla: Moving sensitive files outside the web root for Joomla
This example for Joomla.
One challenge in Joomla! is ensuring that certain PHP files in public_html (or otherwise known as httpdocs or www depending on your server setup) containing executable code or confidential data are protected from direct Internet access.
(more…)