Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 03:01 am EST

Geeklog Forums

Understanding Upload to Public/Non-Public Directories


Status: offline

jonimueller

Forum User
Junior
Registered: 11/28/02
Posts: 17
I am doing a new install of GL. According to the directions, a portion of the installation is to be placed in a "non-public" area of my server. That includes everything EXCEPT what is in the public_html directory. I am having trouble configuring this correctly so that GL can find what it needs to run. First, here is my server structure:URL: http://www.jonimueller.com/geeklog FTP PATH TO THIS URL: /home/jonimueller.com/data/geeklog That is where I placed the contents of the public_html directory of the installation files Notice it is not "public_html", but "data" I then created another directory in my non-public area: home/jonimueller.com/geeklog That is where I placed everything not in the public_html directory of the installation files (e.g., docs, etc, include, language, logs, plugins, sql, system). This is also where CONFIG.PHP resides. The paths in CONFIG.PHP are as follows: $_CONF['path'] = '/home/jonimueller.com/geeklog/'; // C:/inetpub/wwwroot/geeklog // you only need to change this if you moved or renamed the public_html directory $_CONF['path_html'] = $_CONF['path_html'] . '/home/jonimueller.com/data/geeklog'; // you shouldn't need to edit the following $_CONF['path_system'] = $_CONF['path_html'] . '/home/jonimueller.com/data/geeklog/system/'; $_CONF['path_log'] = $_CONF['path'] . '/home/jonimueller.com/geeklog/logs/'; $_CONF['path_language'] = $_CONF['path'] . '/home/jonimueller.com/geeklog/language/'; $_CONF['rdf_file'] = $_CONF['path_html'] . '/home/jonimueller.com/data/geeklog/backend/geeklog.rdf'; $_CONF['backup_path'] = $_CONF['path_html'] . '/home/jonimueller.com/data/geeklog/backups/'; Now, this is the error message I receive when I run check.php from the admin directory: Parse error: parse error in /home/jonimueller.com/geeklog/config.php on line 88 Fatal error: Failed opening required 'databases/.class.php' (include_path='.:/usr/local/php/share/pear') in /home/jonimueller.com/geeklog/system/lib-database.php on line 105 I have path_system pointing to home/jonimueller.com/data/geeklog/ in config.php and in lib_common.php. Why am I having this trouble? Instead of having to put the non-public files in a directory away from the public directory, couldn't I just put them in my cgi-bin directory (as you can do with Movable Type) so they aren't accessible to the public? For what it's worth, I know DS (diddly squat) about PHP. Thanks for any help. Joni ;-)
My Geeklog Site:
http://www.ro-jo.net.com/geeklog/
 Quote

Anonymous

Anonymous
Joni, are you using Dreamweaver or some other WYSIWIG editor? I suspect that you are, and that you used it to change the necessary lines in lib-common.php. For some reason WYSIWIG editors don't like the very long file that is lib-common.php and they tend to munch it. It might be best to unzip that file again, change it using a standard text editor, then reupload it.
 Quote

Status: offline

jonimueller

Forum User
Junior
Registered: 11/28/02
Posts: 17
I am not using a WYSIWYG editor to my knowledge. My HTML editor is HTML-Kit. When I open the lib-common.php file, Windows says it is too big to open in Notepad, and opens it in Wordpad instead. Word wrapping is OFF. What do you suggest I use to view/edit this file? Thanks for your help. I am very intrigued by GeekLog and am anxious to start using it on my site. Thanks again! Joni
My Geeklog Site:
http://www.ro-jo.net.com/geeklog/
 Quote

Anonymous

Anonymous
Forget what I just wrote. I found your problem. You are really messing up in the directory paths. Here is what they should look like if you placed the directories in the right places. $_CONF['path'] = '/home/jonimueller.com/geeklog/'; $_CONF['path_html']='/home/jonimueller.com/data/geeklog'; $_CONF['path_system']=$_CONF['path'] . 'system/'; $_CONF['path_log'] = $_CONF['path'] . 'logs/'; $_CONF['path_language'] = $_CONF['path'] . 'language/'; $_CONF['rdf_file']=$_CONF['path_html'] . 'backend/geeklog.rdf'; and so on. You were adding multiple instances of the directories back on to each other, and you also had the system directory pointed to the public space. See where it has $_CONF['something'] after the =? Then a period. The period means paste the strings together. So as a for instance your $_CONF['path_language;] was parsing out to read: /home/jonimueller.com/data/geeklog//home/jonimueller.com/geeklog/language/' But what I said about lib-common still holds true. Never edit it with a WYSIWIG editor.
 Quote

Anonymous

Anonymous
GL is a great script. Welcome to it. I don't really know what to recommend as an editor. I use Object Edit which comes with another program I purchased. Wordpad should be fine.
 Quote

Status: offline

jonimueller

Forum User
Junior
Registered: 11/28/02
Posts: 17
Ah. I see the error of my ways. I was trying to ensure that it got the paths right so I tried to make them absolute. This is where a slight understanding of PHP would have served me well. I modified the file as you suggested. It went forward but now seems to be stalling out at the MySQL section. (I have a database and a table, but the permissions are screwed up. And I'm full of turkey and getting sleepy.) Without your help, I wouldn't have gotten this far. I'll look at it again with a fresh eye tomorrow. Thanks for all your help!! Joni
My Geeklog Site:
http://www.ro-jo.net.com/geeklog/
 Quote

Anonymous

Anonymous
My pleasure, glad I could be of assistance. The sql problem is going to be a bit trickier. But it can be worked through. hope you enjoyed Thankgiving. I know...urp... ummm excuse me.. I know I did. Mmmm gravy and stuffing and pecan pie. Oh and of course the family stuff, yadda yadda yadda. Wink Moshiach
 Quote

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