Welcome to Geeklog, Anonymous Thursday, December 12 2024 @ 08:23 am EST

Geeklog Forums

Directory Structure?

Page navigation


Vapour71

Anonymous
Hi everyone. I am new to Geeklog. I have been using a different portal system which I will keep nameless Razz I am wanting to make the switch to Geeklog but I have been having some issues with the install. I guess in the install readme it is unclear as to what the directory structure shoud look like on the webserver itself. I amhosting on a server that is run'n *nix system with the latest version of Plesk. My file directory of which my site runs from is the "httpdocs" directory. My question is, the file structure should be what? When I "UNTAR" the geeklog 1.3.11 I have several sub directories. such as:
Data, Backups...etc. Now do I upload ALL of them to the "httpdocs" directory or do I only do certain folders and files, leaving a a seperate upload for the "public_html" seperately?
For example Directory structure like this?:
Backups
Language
Plugins
Data
Logs
Public_HTML
System

OR

Admin
Docs
Backups
Images
Language
Plugins
Staticpages
Backend
Help
Layout
etc.
etc.
etc.

Thanks in advance for the help Smile
Data
Logs
System
 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 07/30/03
Posts: 241
Location:Illinois
Maybe a graphical explanation will help.

HTH,

Chuck
Too many hands on my time.
 Quote

Vapour71

Anonymous
Oh man! That's sweet dood!! Thanks Smile
 Quote

Vapour71

Anonymous
Ok now I am not getting as many errors. However this is the one I am getting on the installation on Step 2 of the installation script:

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydoman.com/httpdocs/system/lib-database.php on line 114

Fatal error: Failed opening required ' /home/httpd/vhosts/mydomain.com/httpdocs/system/databases/mysql.class.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/mydomain.com/httpdocs/system/lib-database.php on line 114.

Any ideas? Damn I wish I knew PHP Banging your head
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
My own successfully installed site has that file not under what you call "/home/httpd/vhosts/mydomain.com/httpdocs/system/lib-database.php", but instead under the "/home/httpd/vhosts/mydomain.com/geeklog/system/lib-database.php" directory.

So I think this is still a directory structure problem. Again, see that graphical explanation.

HTH...
Tom
www.southparkcity.com
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Let me add a comment or two.

1. I highly recommend you do the uncompress of the tarball in the directory where the not-to-be-seen-by-the-web-server files live, which in your case (if I read you right) is this:

/home/httpd/vhosts/mydomain.com/geeklog

Actually, it'll call itself geeklog-1.3.11 for the latest version. Don't matter if you leave it at that or rename it to geeklog.

2. Then you'll move certain directory structures out to the directory where your web server will see it. Move everything _under_ public_html...not public_html itself...to either your top-level web directory or to something "under" that, if you want this as a sub-directory under your main site. In your case...again, from what I can tell from your previous post, this:

/home/httpd/vhosts/mydomain.com/httpdocs

...So if you want the GL application as your main page, then within httpdocs the index.php file will appear. Or if you want the GL application to be for instance "mydomain.com/myblog", then index.php would be ....httpdocs/myblog/index.php.


Does this help?
Tom
www.southparkcity.com
 Quote

Vapour71

Anonymous
Oh man! I am go'n nuk'n futs! I managed to get to step 2 of 2 in the install but then got an error and I am really getting frustrated Sad I have everything in the right directories I believe. I wish I knew someone that I can just tell show me or give them the info to my web server so they can set it up for me. I know it can't take that long. I set up my other portal I was using in like 15 minutes. I have a good understanding on how to set certan things up, but for some resaon this seems to be a bit more complicated and the instructions are a little vague and confusing as to what files go where on the web server itself. I have tried all kinds of things to fix the errors and when I fix one, I get another. Anyone got a gun? Can someone help me
 Quote

Vapour71

Anonymous
Ok, I am making progress I think Razz I have made it to Step 2 of 2 and after I hit the proceed button it creates the tables in my database but when it is supposed to show the success.php page I get the infamous "The page cannot be found" and this is what is in my addressbar:
"http://www.mydomain.com/home/httpd/vhosts/mydomain.com/httpdocs/geeklog/admin/install/success.php"

Any idea what could be the problem here?
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
I'm guessing here, but this looks like you have one of the variables in your config.php set wrong. Somehow it's concatenated your web address with a server path name.

Luck!
Tom
www.southparkcity.com
 Quote

Status: offline

Vapour71

Forum User
Chatty
Registered: 02/10/05
Posts: 55
Location:Great White North Eh!
Here is screenshot of my web directory on my hosting server. I am assuming that this is correct. If not, then I need to know what it is supposed to be. The HTML file there is just my splash screen. Anyways, view screenshot:

HERE

Text Formatted Code

// +---------------------------------------------------------------------------+
// | (1) Database Settings                                                     |
// +---------------------------------------------------------------------------+

$_DB_host         = 'localhost';   // host name or IP address of your DB server
$_DB_name         = 'mydbname';     // name of your database,
                                   // must exist before running the installer!
$_DB_user         = 'mydbusername';    // MySQL user name
$_DB_pass         = 'mydbpassword';    // MySQL password

// The table prefix is prepended to each table used by Geeklog to avoid name
// collisions with other tables that may already exist in your database.
$_DB_table_prefix = 'gl_';         // e.g. 'gl_'


// +---------------------------------------------------------------------------+
// | (2) Paths                                                                 |
// +---------------------------------------------------------------------------+

// Note for Windows users: It's safe to use the forward slash '/' instead of
// the backslash '' in paths. Make sure each path starts with a drive letter!

// This should point to the directory where your config.php file resides.
$_CONF['path']            = '/'; // 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['path'] . 'geeklog/';


// +---------------------------------------------------------------------------+
// | (3) Site Settings                                                         |
// +---------------------------------------------------------------------------+

// Make sure this is the correct URL to your site, i.e. to where Geeklog's
// index.php file resides (no trailing slash).
$_CONF['site_url']          = 'http://www.digital-directss.com';

// Some hosting services have a preconfigured admin directory. In that case,
// you need to rename Geeklog's admin directory to something like "myadmin"
// and change the following URL as well. Leave as is until you experience any
// problems accessing Geeklog's admin menu.
$_CONF['site_admin_url']    = $_CONF['site_url'] . 'geeklog/admin';

// This is the return address for all email sent by Geeklog:
$_CONF['site_mail']         = 'admin@digital-directss.com';

// Name and slogan of your site
$_CONF['site_name']         = 'Digital Direct Satellite';
$_CONF['site_slogan']       = 'Your # 1 Satellite Information Site';


// ****************************************************************************
// * If you set up Geeklog for the first time, you shouldn't need to change   *
// * anything below this line. Come back here once the site is up and running.*
// ****************************************************************************


// Note: See the file docs/config.html for more information on the settings.

// +---------------------------------------------------------------------------+
// | 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/';
$_CONF['path_data']     = $_CONF['path'] . 'data/';

// 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'] . 'geeklog/images/';

// +---------------------------------------------------------------------------+
// | PEAR Settings                                                             |
// |                                                                           |
// | Geeklog uses PEAR to send emails (see "Email Settings" below). Here you   |
// | can tell Geeklog whether to use the PEAR packages installed on your       |
// | server or to use the included packages.                                   |
// +---------------------------------------------------------------------------+

// If your server is running PHP 4.3.0 (or newer) then chances are that PEAR
// is already installed and you can change this to: $_CONF['have_pear'] = true;
$_CONF['have_pear'] = false;

// Geeklog comes with the necessary PEAR packages and will pick them up from
// the following directory if $_CONF['have_pear'] = false (above).
$_CONF['path_pear'] = $_CONF['path_system'] . 'pear/';

 


Now I am assuming that everything below the last line I have pasted in the "code" is correct but if anything above that would be where the problem is. I must be missing something Banging your head
I've Gone To Find Myself. If I Show Up Before I Return, Make Me Wait Here Until I Get Back.
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Two problems areas in the config file! Now--I'm fairly new at this, so accuracy of these comments not guaranteed. But what I'm seeing is this.


You haven't put values into the database config lines--unless you've simply displayed the lines as you got them, which you might do to hide your database username/password, which you do not want to publish publically. Here are those lines:

$_DB_host = 'localhost'; // host name or IP address of your DB server
$_DB_name = 'mydbname'; // name of your database,
// must exist before running the installer!
$_DB_user = 'mydbusername'; // MySQL user name
$_DB_pass = 'mydbpassword'; // MySQL password


Leave host as localhost, unless the DB is a different server than your web server. name, user, pass must all be set, the user/pass is (if I remember right, check documentation) the MySQL Root username. But check the doc--it might be instead for the more sedate normal user account.


This following line must contain not geeklog/ but instead your "absolute" path on the server to the WWW area.

$_CONF['path_html'] = $_CONF['path'] . 'geeklog/';


Which I'm making a guess from your error message should probably be something like '/home/httpd/vhosts/mydomain.com/httpdocs'.


Hopefully I haven't screwed up and steered you wrong! But those are issues that stood out to me.
Tom
www.southparkcity.com
 Quote

Vapour71

Anonymous
I actually have the variables in my config file for the user name and passwords etc. I just put dbusername etc. when I published it on here so that nobody can see what I have set them to. I also changed the line with my domain name in it and its not happening. I think I might have to go back to installing the other portal Sad Unless I can thet this thing fixed up, this weekend. But, I have been down trying to setup GL for nearly 5 days now. Sad
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Sorry to hear it--I probably struggled with things easily five days or more, just because I'm somewhat new to *nix install styles...almost all my problems were with the config.php & directory structures, I'm still mostly suspecting that's what you have.

Then I added easily another 5 days because I was on an old version of GL, and various hacks, functions, & plugins didn't do what I wanted, so I then upgraded GL & fiddled some more.

It's now been up & fine for almost 2 weeks, and I continue to fine-tune.

I'm delighted with GL, I just had a bit of a time learning.

Good luck, whatever path you take!
Tom
www.southparkcity.com
 Quote

Vapour71

Anonymous
I have an idea. I was wondering if you could or would email me your config file without your domain name, usernames and passwords so that I can compare to the one I have. I can usually figure out where my issue is by looking at a properly prepared config file which would also help me determin the proper directory structure. I will add my own username and passwords and my domain name to it and work from there. I guess I just need a little jump-start. Wink
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Why don't you go for this option ...

That way you are sure you are ready, steady go for the futher and you won't loose more time and have a very good base to build on.

If you don't like thqt option, why not do the following as it seems most probably a directory structure problem.

Go to the directory where you placed your config.php
Do a pwd and a ls -l
Go to the directory where you have your index.php webpage and do a
pwd and a ls again.

Paste it here and let's take it from there.

Best Regards,
Boris




Vanrillaer.com - our Family Portal
 Quote

Vapour71

Anonymous
Ok, here is what I get when I do the following Commands:

"Where My Config.php File Is"
Text Formatted Code

<b>CMD PWD:</b>
pwd
257 "/httpdocs" is current directory.

<b>CMD LIST:</b>
PASV
227 Entering Passive Mode (xx,xx,xx,xx,xx,xx).
Opening data connection IP: xx.xx.xx.xx PORT: xxxxx
LIST
150 Opening ASCII mode data connection for file list
226-Transfer complete.
226 Quotas off
drwx------   2 digitaldirect psaserv      4096 Aug 17  2003 _private
drwxr-xr-x   4 digitaldirect psaserv      4096 Aug 17  2003 _vti_bin
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_cnf
-rw-rw-rw-   1 digitaldirect psaserv      1754 Oct 23  2003 _vti_inf.html
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_log
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_pvt
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_txt
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  9 15:09 backups
-rw-r--r--   1 digitaldirect psacln      35431 Feb 11 21:59 config.php
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  9 15:09 data
-rw-rw-rw-   1 digitaldirect psacln       1049 Aug 22 00:53 donate_config.php
-rw-rw-rw-   1 digitaldirect psacln      56469 Feb 10 22:27 ftpview.jpg
drwxrwxrwx   9 digitaldirect psacln       4096 Feb 11 17:16 geeklog
-rw-rw-rw-   1 digitaldirect psacln        493 Feb  8 18:23 index.html
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  9 15:10 language
-rw-rw-rw-   1 digitaldirect psacln      21525 Feb  9 15:32 logo.gif
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  7 16:01 logs
drwxrwxrwx   4 digitaldirect psacln       4096 Feb  9 15:12 plugins
-rw-rw-rw-   1 digitaldirect psacln     185379 Nov 30  2003 shipping_info_fix.php
-rw-rw-rw-   1 digitaldirect psacln      18196 Feb  7 13:02 sorry.jpg
drwxrwxrwx   3 digitaldirect psacln       4096 Feb  9 15:12 sql
drwxrwxrwx   6 digitaldirect psacln       4096 Feb  9 15:15 system
-rw-rw-rw-   1 digitaldirect psacln       3498 Feb  7 13:02 under_construction.gif
drwxrwxrwx   2 digitaldirect psacln       4096 Aug 19  2003 webstat

<b>CMD LIST -l:</b>
PASV
227 Entering Passive Mode (xx,xx,xx,xx,xx,x).
Opening data connection IP: xx.xx.xx.xx PORT: xxxxx
LIST -l
150 Opening ASCII mode data connection for file list
226-Transfer complete.
226 Quotas off
drwx------   2 digitaldirect psaserv      4096 Aug 17  2003 _private
drwxr-xr-x   4 digitaldirect psaserv      4096 Aug 17  2003 _vti_bin
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_cnf
-rw-rw-rw-   1 digitaldirect psaserv      1754 Oct 23  2003 _vti_inf.html
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_log
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_pvt
drwxr-xr-x   2 digitaldirect psaserv      4096 Aug 17  2003 _vti_txt
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  9 15:09 backups
-rw-r--r--   1 digitaldirect psacln      35431 Feb 11 21:59 config.php
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  9 15:09 data
-rw-rw-rw-   1 digitaldirect psacln       1049 Aug 22 00:53 donate_config.php
-rw-rw-rw-   1 digitaldirect psacln      56469 Feb 10 22:27 ftpview.jpg
drwxrwxrwx   9 digitaldirect psacln       4096 Feb 11 17:16 geeklog
-rw-rw-rw-   1 digitaldirect psacln        493 Feb  8 18:23 index.html
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  9 15:10 language
-rw-rw-rw-   1 digitaldirect psacln      21525 Feb  9 15:32 logo.gif
drwxrwxrwx   2 digitaldirect psacln       4096 Feb  7 16:01 logs
drwxrwxrwx   4 digitaldirect psacln       4096 Feb  9 15:12 plugins
-rw-rw-rw-   1 digitaldirect psacln     185379 Nov 30  2003 shipping_info_fix.php
-rw-rw-rw-   1 digitaldirect psacln      18196 Feb  7 13:02 sorry.jpg
drwxrwxrwx   3 digitaldirect psacln       4096 Feb  9 15:12 sql
drwxrwxrwx   6 digitaldirect psacln       4096 Feb  9 15:15 system
-rw-rw-rw-   1 digitaldirect psacln       3498 Feb  7 13:02 under_construction.gif
drwxrwxrwx   2 digitaldirect psacln       4096 Aug 19  2003 webstat

 



"Where My Index.php File Is"
Text Formatted Code

<b>CMD PWD:</b>
PWD
257 "/httpdocs/geeklog" is current directory.

<b>CMD LIST:</b>
PASV
227 Entering Passive Mode (xx,xx,xx,xx,xx,xx).
Opening data connection IP: xx.xx.xx.xx PORT: xxxxx
LIST
150 Opening ASCII mode data connection for file list
226-Transfer complete.
226 Quotas off
-rw-rw-rw-   1 digitaldirect psacln        703 Feb 11 16:54 404.php
drwxrwxrwx   4 digitaldirect psacln       4096 Feb 11 16:36 admin
-rw-rw-rw-   1 digitaldirect psacln      12691 Feb 11 16:54 article.php
drwxrwxrwx   2 digitaldirect psacln       4096 Feb 11 16:36 backend
-rw-rw-rw-   1 digitaldirect psacln      41605 Feb 11 16:54 calendar.php
-rw-rw-rw-   1 digitaldirect psacln      31266 Feb 11 16:54 calendar_event.php
-rw-rw-rw-   1 digitaldirect psacln      38599 Feb 11 16:54 comment.php
drwxrwxrwx   3 digitaldirect psacln       4096 Feb 11 16:37 docs
-rw-rw-rw-   1 digitaldirect psacln       4526 Feb 11 16:54 getimage.php
drwxrwxrwx   2 digitaldirect psacln       4096 Feb 11 16:37 help
drwxrwxrwx   8 digitaldirect psacln       4096 Feb 11 16:37 images
-rw-rw-rw-   1 digitaldirect psacln       9779 Feb 11 16:54 index.php
drwxrwxrwx   3 digitaldirect psacln       4096 Feb 11 16:37 layout
-rw-r--r--   1 digitaldirect psacln     190787 Feb 11 17:16 lib-common.php
-rw-rw-rw-   1 digitaldirect psacln       5960 Feb 11 16:54 library.js
-rw-rw-rw-   1 digitaldirect psacln      12717 Feb 11 16:54 links.php
-rw-rw-rw-   1 digitaldirect psacln       9747 Feb 11 16:54 pollbooth.php
-rw-rw-rw-   1 digitaldirect psacln       3147 Feb 11 16:54 portal.php
-rw-rw-rw-   1 digitaldirect psacln      17252 Feb 11 16:54 profiles.php
-rw-rw-rw-   1 digitaldirect psacln       2879 Feb 11 16:54 search.php
drwxrwxrwx   3 digitaldirect psacln       4096 Feb 11 16:41 staticpages
-rw-rw-rw-   1 digitaldirect psacln      12018 Feb 11 16:54 stats.php
-rw-rw-rw-   1 digitaldirect psacln      40146 Feb 11 16:54 submit.php
-rw-rw-rw-   1 digitaldirect psacln      36219 Feb 11 16:54 users.php
-rw-rw-rw-   1 digitaldirect psacln      46808 Feb 11 16:54 usersettings.php

 


Did I miss anything?
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hi,

Not 100% sure it will work, but from what I see and the error you get try the following.

Move all the geeklog system directories into a new directory, one level up. We call this one geeksystem

Currently your config.php is available in your webdirectory Mr. Green

So it looks like this


Text Formatted Code
<hidden path>/
<hidden path>/httpdocs
<hidden path>/geeksystem
<hidden path>/geeksystem/config.php
<hidden path>/geeksystem/system
...
 


Verify the file permissions on your geeksystem directory.

Now make sure your paths are absolute in your config file

Text Formatted Code

// This should point to the directory where your config.php file resides.
$_CONF['path']            = '/home/httpd/vhosts/digital-directss.com/geeksystem/'; // 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']         = '/home/httpd/vhosts/digital-directss.com/httpd/geeklog';

 



If this is not working, and you still get the open_basedir error, have a look here and see if this solves your problem.

Maybe if all this doesn't work, let us know who your hosting company is and maybe someone else has a workaround.

Best Regards,
Boris

Vanrillaer.com - our Family Portal
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Vapour71, I've been out-of-pocket (not checking in on this forum) for a bit, and I see Boris (knuff) has been posting for you...maybe he got something that worked for you?

And I also just saw for the first time your request I send you my config file. I'd be happy to...I'll nuke my usernames and passwords, but you can certainly have my domainname in my config file when I email it to you.

I am at ftuck@frii.com, email me so I know where to email you, and we'll see if what I got helps.

*laugh* Probably a bad idea to post my real email address here, but I've had that addr for maybe 12+ years...so much spam that I doubt publishing here will matter...*/laugh*

*sob* sob */sob*

One more option...there are several "masters" on geeklog that charge US $50 or so for a working install...would you consider that, you still have to do customizations like site name, themes, and more, but at least you get a working install! Plugins extra I'm sure.

I really hope you can get GL to work, it's really a cool product...and as I said, I'd be happy to email you my config & maybe we'd exchange notes about directory structures, Config and Structurs is where IMO most of the GL blues come from.

Tom
Tom
www.southparkcity.com
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
PS, if you're in the US, I can call you during very off-hours on my cell phone for free minutes, and that might be a Good Thing. I'm really serious about Directory Structures combined with the Config File as being critical to an install and I still think this is likely your issue.

T
Tom
www.southparkcity.com
 Quote

Status: offline

Vapour71

Forum User
Chatty
Registered: 02/10/05
Posts: 55
Location:Great White North Eh!
Ok, I am making some headroom here. I have had my webhosting company reset all directories so that I can start from scratch. Now here is the message I get:
"Fatal error: Failed opening required '/home/httpd/vhosts/digital-directss.com/httpdocs/config.php/system/databases/mysql.class.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/digital-directss.com/httpdocs/system/lib-database.php on line 114"

I have looked at this for a long time and made sure that everything was in correct spot. So, I AM getting closer to having this baby installed, but just need some direction and help with correcting this msg. Thanks Smile
I've Gone To Find Myself. If I Show Up Before I Return, Make Me Wait Here Until I Get Back.
 Quote

Page navigation

All times are EST. The time is now 08:23 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