Hi,
I'm really having difficulty placing the files outside of my public webfolders but definitely want to do so.
Here's how my site is set up:
/home/user/public_html/gl/
there are some files already outside of the publicly accessible area that my host placed there, like "mail", "public_ftp", ".htpasswds", ".autorespond", ".trash", "etc", "tmp" and "www". So, I'm sure that I can place the stuff there ... but am not sure I'm listing it correctly.
In config.php .... I currently have everything in the "gl" directory ... but let's say I move it all to the more secure area ... is this how it should read?:
This is how I currently have config.php and it is working. Which of these would I need to change if I move them outside of the public area? And I'm not sure HOW I point to something not in the public area?
Text Formatted Code
// +----------------------------------------------------+//
// | (2) Paths |
// +----------------------------------------------------+//
// $_CONF['path_html'] = '/home/user/public_html/gl/';
$_CONF['path_html'] = $_CONF['path'] . '/';
// +----------------------------------------------------+//
// | OTHER PATH SETTINGS |
// | All paths must have a trailing slash ('/'). |
// +----------------------------------------------------+//
// you shouldn't need to edit theses
$_CONF['path_system'] = $_CONF['path'] . 'system/';
$_CONF['path_log'] = $_CONF['path'] . 'logs/';
$_CONF['path_language'] = $_CONF['path'] . 'language/';
$_CONF['backup_path'] = $_CONF['path'] . 'backups/';
// If you set path_images to something other than the default, you will need to make sure that you add the following subdirectories to that directory:
// articles/, userphotos/
$_CONF['path_images'] = $_CONF['path_html'] . 'images/';
// +----------------------------------------------------+//
// | Site Settings |
// +----------------------------------------------------+//
$_CONF['theme'] = 'XSilver'; // default theme
// you shouldn't need to edit the following
$_CONF['layout_url'] = $_CONF['site_url'] . '/layout/' . $_CONF['theme'];
$_CONF['path_themes'] = $_CONF['path_html'] . 'layout/';
$_CONF['path_layout'] = $_CONF['path_themes'] . $_CONF['theme'] . '/';
In lib-common.php I have it set as:
Text Formatted Code
require_once( '/home/user/public_html/gl/config.php' );
So would that then be:
Text Formatted Code
/home/user/config.php?
I did try these settings and then got errors about my template directory and other errors and that my file was not in an allowed area .... so before I go ahead, just want to double check and see if I'm on the right track?
Thanks.
Darla
NewbieHangout.com