Posted on: 09/18/06 11:23am
By: mystral-kk
Hi, all
$_CONF['path_html'] in 1.4.1b1 is defined as
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
It might be assumed that the 'public_html' directory is directly ** under ** the <Geeklog> directory, I imagine. Are these new directory locations recommended in 1.4.1b1? Any help would be greatly appreciated.
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/18/06 11:39am
By: Dirk
Not sure what you mean - it has always been that way ...
As
explained[*1] in the installation instructions, you can separate Geeklog into the contents of public_html and "the rest" but again, that has always been the case. Nothing changed here.
bye, Dirk
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/18/06 11:56am
By: samstone
Mystral KK,
This path has always been like that.
You can comment this out and uncomment the line above if you have a different structure.
Sam
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/18/06 05:39pm
By: mystral-kk
Thanks for replying, Dirk and samstone. I assumed that these two directories ** must ** be in different directory trees for security reasons and thus are located so by default. I think I will have to read the installation instructions better next time.
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/18/06 07:59pm
By: samstone
You are right. You want to put the /geeklog directory behind the /public_html to prevent publich access. The default in CPanel would be like:
/home/username/geeklog/public_html
Mine is a little different because I want to keep it organized.
/home/username/geeklog/
/home/username/public_html/
This way I can keep the geeklog file in one folder and not clutter the directory behind public_html with a bunch of Geeklog core folders and files. This also alows me to upgrade more easily.
Sam
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/19/06 04:36am
By: eg0master
Having public_html *in* your geeklog folder does not mean you have to go against recomendations.
I use the following setup to separate core from www files:
/path/to/geeklog is outside the www-root and contains all geeklog files so there is for example:
/path/to/geeklog/public_html
Then I set up a link in the www-root so:
/www/root/geeklog points to: /path/to/geeklog/public_html
This makes it possible for me to have all geeklog files in one folder but at the same time keep the core files inaccessable from the www-root.
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/19/06 06:28am
By: LWC
Here's what I do:
$_CONF['main_path'] = '/var/www/'; // should end in a slash
$_CONF['public_path'] = $_CONF['main_path'] . 'public_html/'; // should end in a slash
// This should point to the directory where your config.php file resides.
$_CONF['path'] = $_CONF['main_path'] . 'geeklog/'; // should end in a slash
// You only need to change this if you moved or renamed the public_html
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html'] = '/path/to/your/public_html/';
$_CONF['path_html'] = $_CONF['public_path'];
// Write for example $_CONF['public_path'] . 'mysite/' if you use this
// config.php in multiple sites that all use $_CONF['public_path'] as their
// public_html but some of them use more internal folders (e.g. mysite/).
.
.
.
$_CONF['path_to_netpbm'] = $_CONF['main_path'] . 'netpbm/';
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/19/06 07:12am
By: mystral-kk
Thanks for kind replies, samstone, eg0master, and LWC. I'm a MS Window$ user and know little about *nix file systems. When I set up Geeklog on *nix next time, I'll sure remember and make good use of your advice.
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/19/06 11:28am
By: eg0master
Actually you can do what I do on windows too...
Put all geeklog files in one place, then in your IIS create a virtual directory pointing at your geeklog/public_html.
I do it myself on my windows laptop for tests.
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/19/06 05:38pm
By: mystral-kk
Thanks for suggestions, eg0master.
I use Apache on MS Windows and have never tried IIS. I'll try your idea some time.
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/20/06 12:32am
By: eg0master
Even with apache you can set up any folder to be the server root, right? SO I think "my setup" is still possible.
$_CONF['path_html'] in 1.4.1b1
Posted on: 09/22/06 10:07am
By: mystral-kk
[QUOTE BY= eg0master] Even with apache you can set up any folder to be the server root, right? SO I think "my setup" is still possible.[/QUOTE]
I tried "your setup" and it works fine. Thanks for your detailed suggestion, eg0master.
$_CONF['path_html'] in 1.4.1b1
Posted on: 10/17/06 11:39am
By: jmucchiello
[QUOTE BY= samstone] Mine is a little different because I want to keep it organized.
/home/username/geeklog/
/home/username/public_html/
[/QUOTE]I do it this way as well. I wish the tar files were arranged like this by default. It would probably help those folks with dense ISPs understand the security concept. But that's just a minor quibble.