Knowledgebase
Webinova Online Customer Support > Webinova Help Desk > Knowledgebase

Search help:


How do I move important Joomla files outside public_html?

Solution

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 ‘ );

?>

 
Was this article helpful? yes / no
Article details
Article ID: 291
Category: General Joomla FAQ
Date added: 2012-12-11 15:31:05
Views: 20
Rating (Votes): Article rated 3.0/5.0 (6)

 
« Go back

 
Powered by Help Desk Software HESK - brought to you by Help Desk Software SysAid