Knowledge Base Article

How do I move important Joomla files outside public_html?

Prohibiting direct web access to important Joomla files by placing them outside your public_html directory is a good practice in terms of security.

 

For example, if you want to move the main configuration file (configuration.php) of your Joomla outside the public_html directory, you can do that by following these instructions: 

  • Move the configuration.php file to a safe directory outside of public_html and rename it however you want. For the purpose of this article we have chosen to name the file joomconf.original.php
  • Create a new configuration.php file in your public_html directory containing only the following code

<?php
require( dirname( __FILE__ ) . '/../joomconf.original.php ' );

?>



Rating

Please indicate if this article was helpful for you.

rating :  4.6 from 5
views :  364
votes :  7

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!