Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:18 am EST

Geeklog Forums

Directory Specifics


Status: offline

new-b

Forum User
Newbie
Registered: 05/10/04
Posts: 11
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
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
It depents on where you put it. Normally, it put it like this.

/home/user/gl/config.php

You need a gl directory parallel to public_html.

Your host has put something outside of public_html does not necessarily mean you can put it. They might just set the permission to deny your access.

Send me a mail if you want a space on my server. It's a high-end one and GL friendly. If you don't put my other sites to danger, and your content is acceptable (no porn), I will give you 100mb. I just want you to enjoy GL.

Sam
 Quote

Status: offline

new-b

Forum User
Newbie
Registered: 05/10/04
Posts: 11
Wow!

What a very kind and generous offer! Thank you very much ... and I just may end up taking you up on it (no porn!! Not even any foul language )

I AM enjoying GeekLog ... I'm just not one who can settle for something that "works" when I know that it can work "better." LOL. Maybe a tad bit obsessive

I've got it up .. it works ... but dangit ... everytime I try to move the "sensitive files" outside of the public area ... I get all types of errors.

I'm determined that ... if it can be done, it WILL be done

So ... now I am sure of the config.php being right .. and all is well .. just not sure why the heck I can't make it work with the files in the more secure area, unless, it is as you said ... my host doesn't allow it.

I'm gonna play and tweak and fiddle some more ... and if I am defeated .... I'll be back to take you up on your offer

Thanks so much!

Take care.
Darla
NewbieHangout.com
 Quote

Status: offline

new-b

Forum User
Newbie
Registered: 05/10/04
Posts: 11
One more question

With the sensitive folders outside of my public area ... will these need to be changed?

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/';
 


They are currently set like this already ... but since it says we shouldn't need to edit ... I'm assuming that they can remain as is?

Thanks.
Darla
NewbieHangout.com
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
You only need to set the first $_CONF['path_html'] right.

The rests just use the above as reference.

Sam
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
You only need to set the first $_CONF['path_html'] right.

The rests just use the above as reference. Get it?

The GL community is compose of givers. Everything is free here. The programmer feely give away their intellectual properties. So I am also moved by their kindness to give away free. After all, what am I going to do with zillions of space that I might never use?

Oh, yes, you might say they they accept donations. Well, I won't refuse it either.



Sam
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
Interesting! How was it duplicated?
 Quote

All times are EST. The time is now 01:18 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content