Welcome to Geeklog, Anonymous Wednesday, April 17 2024 @ 08:40 pm EDT

Geeklog Forums

No public_html directory


Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
Working on my second geeklog site. New host, used auto install script for gl. Puts everything in a directory I created. Got the site up and running. Now I want to move geeklog that it is the homepage for the site but the installer did not make a public_html directory.

My question: precisely which files should be available to the public and which should be hidden from evil hackers? It was easier when I just dragged the public ones from the directory on my other site.

Thank you very much in advance.
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Hope I'm reading your question right.

I don't know much about these installer scripts some hosting services run, but mostly anything under the public_html directory stays under the public web server dirs, everything else should be non-viewable.

This is the opposite philosophy from the standard GL install, which you uncompress in the non-public directory, then move the public_html files and directories into your public web server area...

HTH!

PS You in Colorado? So'm I, I fall down hills with 2 boards on my feet...
Tom
www.southparkcity.com
 Quote

Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
Thanks for the quick response. There is no public_html folder in this installation (unlike another one on another server). Since my sites are not identical, I am a little concerned about which files remain public and the others. I wish the installer had put in a public_html directory so I could be sure. I am quite certain that the thmtl files all stay public as well as the themes.
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Well, let's see if I can actually be of any help! Maybe yes, maybe no.

When I look at my non-public GL directory, I see the following...remember now, the PUBLIC_HTML directory is empty, as I've moved it all under the HTDOCS directory so it's public.


bash-2.05a$ ls -la geeklog-1.3.11
total 87
drwxr-xr-x 11 usr223104105 southparkcity.co 512 Mar 5 14:40 .
drwxrwxr-x 13 usr223104105 southparkcity.co 512 Mar 14 16:42 ..
-rw-r--r-- 1 usr223104105 southparkcity.co 198 Dec 31 09:03 INSTALL
drwxr-xr-x 3 usr223104105 southparkcity.co 512 Feb 1 08:19 admin
drwxrwxrwx 2 usr223104105 southparkcity.co 512 Mar 11 07:20 backups
-rw-r--r-- 1 usr223104105 southparkcity.co 35527 Mar 18 08:46 config.php
-rw-r--r-- 1 usr223104105 southparkcity.co 35553 Mar 5 14:40 config.php_sav
drwxrwxrwx 2 usr223104105 southparkcity.co 512 Jan 31 13:18 data
-rwxr-xr-x 1 usr223104105 southparkcity.co 509 Dec 31 09:03 emailgeeklogstories
drwxr-xr-x 2 usr223104105 southparkcity.co 1024 Dec 31 09:03 language
drwxrwxrwx 2 usr223104105 southparkcity.co 512 Dec 31 09:03 logs
drwxr-xr-x 6 usr223104105 southparkcity.co 512 Feb 21 09:05 plugins
drwxr-xr-x 2 usr223104105 southparkcity.co 1024 Jan 31 09:46 public_html
-rw-r--r-- 1 usr223104105 southparkcity.co 4018 Dec 31 09:03 readme
drwxr-xr-x 3 usr223104105 southparkcity.co 512 Dec 31 09:03 sql
drwxr-xr-x 6 usr223104105 southparkcity.co 512 Feb 9 14:28 system


At the top-level of my PUBLIC HTML area reside most of the web-executable PHP scripts, as well as some other stuff particularly including directories that the web server must see. So I see this:

bash-2.05a$ ls -la htdocs
total 780
drwxrwxr-x 17 usr223104105 southparkcity.co 1024 Mar 14 17:08 .
drwxrwxr-x 13 usr223104105 southparkcity.co 512 Mar 14 16:42 ..
-rw-r--r-- 1 usr223104105 southparkcity.co 510 Mar 14 17:11 .htaccess
-rw-r--r-- 1 usr223104105 southparkcity.co 703 Feb 21 10:04 404.php
drwxr-xr-x 3 usr223104105 southparkcity.co 512 Feb 21 10:04 admin
drwxrwxrwx 12 usr223104105 southparkcity.co 512 Mar 4 14:57 albums
-rw-r--r-- 1 usr223104105 southparkcity.co 12691 Feb 21 10:04 article.php
-rw-r--r-- 1 usr223104105 southparkcity.co 12691 Feb 21 10:04 article.php_sav
drwxrwxrwx 2 usr223104105 southparkcity.co 512 Feb 21 10:04 backend
-rw-r--r-- 1 usr223104105 southparkcity.co 41605 Feb 21 10:04 calendar.php
-rw-r--r-- 1 usr223104105 southparkcity.co 31266 Feb 21 10:04 calendar_event.php
-rw-r--r-- 1 usr223104105 southparkcity.co 38599 Feb 21 10:04 comment.php
drwxr-xr-x 5 usr223104105 southparkcity.co 512 Feb 21 10:04 dailyquote
drwxr-xr-x 3 usr223104105 southparkcity.co 512 Feb 21 10:03 docs
-rw-r--r-- 1 usr223104105 southparkcity.co 766 Mar 14 15:28 favicon.ico
drwxr-xr-x 4 usr223104105 southparkcity.co 512 Feb 21 10:03 forum
drwxr-xr-x 21 usr223104105 southparkcity.co 2560 Feb 26 12:16 gallery
-rwxr-xr-x 1 usr223104105 southparkcity.co 0 Feb 21 10:04 gallery_config.php
-rw-r--r-- 1 usr223104105 southparkcity.co 4526 Feb 21 10:04 getimage.php
drwxr-xr-x 2 usr223104105 southparkcity.co 512 Feb 21 10:04 help
drwxr-xr-x 12 usr223104105 southparkcity.co 512 Mar 9 11:08 images
-rw-r--r-- 1 usr223104105 southparkcity.co 6862 Feb 21 10:04 index.html_save
-rwxr-xr-x 1 usr223104105 southparkcity.co 9776 Feb 21 10:04 index.php
drwxr-xr-x 4 usr223104105 southparkcity.co 512 Feb 21 10:03 layout
drwxr-xr-x 4 usr223104105 southparkcity.co 512 Feb 21 10:03 layout_files
-rw-r--r-- 1 usr223104105 southparkcity.co 191541 Feb 21 10:04 lib-common.php
-rw-r--r-- 1 usr223104105 southparkcity.co 190841 Feb 21 10:04 lib-common.php_sav
-rw-r--r-- 1 usr223104105 southparkcity.co 5960 Feb 21 10:04 library.js
-rw-r--r-- 1 usr223104105 southparkcity.co 12717 Feb 21 10:04 links.php
drwxr-xr-x 2 usr223104105 southparkcity.co 512 Feb 21 10:03 lucysoars
-rw-r--r-- 1 usr223104105 southparkcity.co 21 Feb 21 10:04 phpinfo.php
-rw-r--r-- 1 usr223104105 southparkcity.co 9747 Feb 21 10:04 pollbooth.php
-rw-r--r-- 1 usr223104105 southparkcity.co 9747 Feb 21 10:04 pollbooth.php_sav
-rw-r--r-- 1 usr223104105 southparkcity.co 3147 Feb 21 10:04 portal.php
-rw-r--r-- 1 usr223104105 southparkcity.co 17252 Feb 21 10:04 profiles.php
-rw-r--r-- 1 usr223104105 southparkcity.co 134 Mar 9 18:19 robots.txt
drwxr-xr-x 2 usr223104105 southparkcity.co 512 Mar 14 16:42 sanctum
-rw-r--r-- 1 usr223104105 southparkcity.co 2879 Feb 21 10:04 search.php
drwxr-xr-x 3 usr223104105 southparkcity.co 512 Feb 21 10:04 staticpages
-rw-r--r-- 1 usr223104105 southparkcity.co 12018 Feb 21 10:04 stats.php
-rw-r--r-- 1 usr223104105 southparkcity.co 40146 Feb 21 10:04 submit.php
-rw-r--r-- 1 usr223104105 southparkcity.co 533 Feb 21 10:04 test.htm
-rw-r--r-- 1 usr223104105 southparkcity.co 36219 Feb 21 10:04 users.php
-rw-r--r-- 1 usr223104105 southparkcity.co 46808 Feb 21 10:04 usersettings.php
drwxr-xr-x 2 usr223104105 southparkcity.co 512 Feb 21 10:04 webstats


Again, HTH, and this is a lot of material for you to analyze...don't know if I'll be up a heck of a lot longer, but if you grok enough of this to post another question sometime soon, I'll watch for it...

Good luck!

You saw my previous post so soon you probably missed my PS...you in COLO? I'm a two-boarder in CO myself...
Tom
www.southparkcity.com
 Quote

Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
Thanks again. Actually I'm in NH-outstanding spring skiing, peak at my site. I'll take a look at that list; I think I can make it work!
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Awesome, CKofer, sounds like you know what you're doing, run with it! I'm going next thing to your site.

ALSO--check out mine! I actually posted an article on Paul Schipper at Sugarloaf, on March 18, scroll down a bit and you'll see.

www.southparkcity.com

Good Luck --Colorado Tom
Tom
www.southparkcity.com
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
why don't you just download and unzip geeklog and take a look into the directory structure? Everything outside public_htm should be hidden.
You may also chek this FAQ entry.

geKow
 Quote

Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
I suppose I could download the whole thing but I was really looking for a list that says: these things *need* to be in your public directory and these other things should hide elsewhere. This might be a nice faq for someone (like me Embarassed ) who starts messing around the site structure, yielding it useless.

I understand that other files may end up in either place as a person enhances a gl site.
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Quote by ckofer:This might be a nice faq for someone (like me Embarassed ) who starts messing around the site structure, yielding it useless.


Like this Visual Overview ?
Vanrillaer.com - our Family Portal
 Quote

Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
Perfect. I think when install a geeklog on my personal site, I should dedicate a section to "stupid moves a newbie can make installing Geeklog". I must have pages of content by now for that.

This project so far has only been possible because of generous efforts by others. I am working on another project which is a bit more noble than ski discounts (arsenic in drinking water) and am using Geeklog as the basis. I figured I would take chances on the ski one and the arsenic one will go better.

Two more weeks of this and I will reach consultant status. Wink
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
Okay, I thought I had it. I did another install of gl (with the control panel from my host). It put everything in one directory. And the site was working. So I took all but the following files:

backups, data, emailgeeklogstories, config.php, language, logs, plugins, readme, sql, system

and put them in the parent directory so that they would be evident when we a person enters

http://www.newsite.net

the config etc was left in the http://www.newsite.net/folder

then I set up the config.php

file to find config.php at /home/newsite/public_html/folder/ - actually no change needed. this what the successful installation showed. In my ftp program, the www folder and the public_html file are identical

and to find index.php

at /home/newsite/public_html/ which is where the front page on my site would belong.

I plan to at least protect folder as soon as I get this step out of the way

Since I left config.php where it was, there seemed to be no reason to mess with lib-common.php



I haven't changed any permissions.

When I try to go to my site I get

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@thearsenicsite.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

This won't kill me, just make me better. So I'm told. Thanks in advance.

ps I even changed admin to gladmin in the public section and on config.php
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
I made another directory beside the one that holds the config file. Everything works again. I guess this host doesn't want it on top for some reason. I guess I'll just write a page with a redirect so that www.mynewsite.net > www. mynewsite.net/anotherdirectory.

That was painful. I'll be okay.
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
I think I made about 3 installs and 2 deletes of all directories on my site before I got my GL site to come up and work.. I share some of your pain, and I say to you, keep taking deep breaths! It's not an easy product, and many I'm sure give up. Nice going! Good for you!

Tom
Tom
www.southparkcity.com
 Quote

Status: offline

ckofer

Forum User
Junior
Registered: 03/19/05
Posts: 25
Location:New Hampshire
Is it possible that some hosts just don't allow index.php as a way to open a site? Now that my site is in a subdirectory of the main site, I'd like to make php redirect from mysite.net > mysite.net/directory . I know I can easily write an html one but they're slow. I tried write an index.php with a redirect to the geeklog directory but that just gave me server error. Index.html with a static page seems to work. Any other thoughts on a redirect?
----

Chris Kofer
TheArsenicSite.net site adminstrator

plus some hobby sites
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
If your service provider allows .php to run as pages, I'd be very suprised if index.php wouldn't work as the default page for the site...but that's easy to test. Set up a an index.html page WITHOUT a redirect, see if it displays in the browser, then make it a redirect, see what happens, then delete it completely.

I know my server does fine just on index.php, and if I want the site offline, I can add an index.htm file and that's what displays even if the index.php file is still intact.

HTH...
Tom
www.southparkcity.com
 Quote

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