Welcome to Geeklog Tuesday, August 04 2020 @ 12:45 am EDT

Geeklog Forums

$_CONF['path_html'] in 1.4.1b1


Status: offline

mystral-kk

Site Admin
Admin
Registered: 19/03/06
Posts: 100
Location:Japan
Hi, all

$_CONF['path_html'] in 1.4.1b1 is defined as

PHP Formatted Code
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';<br />


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.

-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Not sure what you mean - it has always been that way ...

As explained 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
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 29/09/02
Posts: 820
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
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 19/03/06
Posts: 100
Location:Japan
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.
-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 29/09/02
Posts: 820
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
 Quote

Status: offline

eg0master

Forum User
Regular Poster
Registered: 21/07/05
Posts: 73
Location:Stockholm
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.
Geeklog Plugins: http://plugincms.com
 Quote

Status: offline

LWC

Forum User
Full Member
Registered: 19/02/04
Posts: 818
Here's what I do:

PHP Formatted Code

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

 
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 19/03/06
Posts: 100
Location:Japan
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.
-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

eg0master

Forum User
Regular Poster
Registered: 21/07/05
Posts: 73
Location:Stockholm
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.
Geeklog Plugins: http://plugincms.com
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 19/03/06
Posts: 100
Location:Japan
Thanks for suggestions, eg0master.

I use Apache on MS Windows and have never tried IIS. I'll try your idea some time.
-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

eg0master

Forum User
Regular Poster
Registered: 21/07/05
Posts: 73
Location:Stockholm
Even with apache you can set up any folder to be the server root, right? SO I think "my setup" is still possible.
Geeklog Plugins: http://plugincms.com
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 19/03/06
Posts: 100
Location:Japan
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.


I tried "your setup" and it works fine. Thanks for your detailed suggestion, eg0master.
-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 29/08/05
Posts: 985
Quote by samstone: Mine is a little different because I want to keep it organized.

/home/username/geeklog/
/home/username/public_html/
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.
 Quote

All times are EDT. The time is now 12:45 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