Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 03:02 pm EST
Geeklog Forums
$_CONF['path_html'] in 1.4.1b1
Status: offline
mystral-kk
Site Admin
Admin
Registered: 03/19/06
Posts: 100
Location:Japan
Hi, all
$_CONF['path_html'] in 1.4.1b1 is defined as
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."
$_CONF['path_html'] in 1.4.1b1 is defined as
Text 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."
15
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Status: offline
mystral-kk
Site Admin
Admin
Registered: 03/19/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."
-- mystral-kk, "Every cloud has a silver lining."
12
13
Quote
Status: offline
samstone
Forum User
Full Member
Registered: 09/29/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
/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
13
15
Quote
Status: offline
eg0master
Forum User
Regular Poster
Registered: 07/21/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
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
17
12
Quote
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
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/';
Text 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/';
12
17
Quote
Status: offline
mystral-kk
Site Admin
Admin
Registered: 03/19/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."
-- mystral-kk, "Every cloud has a silver lining."
16
11
Quote
Status: offline
eg0master
Forum User
Regular Poster
Registered: 07/21/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
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
17
15
Quote
Status: offline
mystral-kk
Site Admin
Admin
Registered: 03/19/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."
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."
10
14
Quote
Status: offline
eg0master
Forum User
Regular Poster
Registered: 07/21/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
Geeklog Plugins: http://plugincms.com
14
15
Quote
Status: offline
mystral-kk
Site Admin
Admin
Registered: 03/19/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."
16
12
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/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. /home/username/geeklog/
/home/username/public_html/
14
30
Quote
All times are EST. The time is now 03:02 pm.
- 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