Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Jan 30, 2002, 11:05 AM
Miksa Miksa is offline
New Member
 
Member Since: Jan 2002
Posts: 1
I've been fighting hours with OJ installation, everything seems to be fine but one LITTLE thing.

oj.cfg sets the variables, one of them is $ojdir. If I use relative (relative to $baseurl) PATH it would be miksa68/public_html/oj - fine until I have made first diary entry and end up on "my open journal: entry added"-page. Now I have a link to my message and link to Journal index but the URL created for those is made of whole path (http://www.saunalahti.fi/miksa68/public_html/oj/)... Well my browser doesn't understand this .../public_html/...

Can I work through this easily, since otherwise the script seems very nice.

Thanks Mika


advertisement
  #2  
Old Jan 30, 2002, 04:21 PM
DocJohn's Avatar
DocJohn DocJohn is offline
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

Your browser doesn't understand what part, exactly?

The public_html part?

John

__________________
Don't throw away your shot.
  #3  
Old Feb 04, 2002, 10:37 AM
RikN RikN is offline
New Member
 
Member Since: Feb 2002
Posts: 1
John,
I think what Mika is saying is the same problem I have - the oj.cfg variables seem to conflict. On my server, the users' html directory structure is this:
/home/rik/public_html/cgi-bin/oj.cgi # for the program
/home/rik/public_html/oj # for the oj dir

and I set the oj.cfg like this:
$mydir = "/home/rik/public_html";
$progdir = "/home/rik/public_html/cgi-bin";
$ojdir = "/oj";
$cgi_url = "/cgi-bin/oj.cgi";
$baseurl = "http://xku/~rik";
$title = "myJournal";
$mesgdir = "story";

After authorizing, the program tries to access itself using :
http://xku/cgi-bin/oj.cfg
which is incorrect, as it it trying to go to the server's (not users') base html directory.

Rik



  #4  
Old Feb 06, 2002, 12:32 AM
aflones aflones is offline
New Member
 
Member Since: Feb 2002
Posts: 2
The program must delineate between server-side and client-side and between local directory and URL. The use of $ojdir in the program does not respect these
delineations. I am working on this issue.

See my earlier post.

  #5  
Old Feb 12, 2002, 09:41 AM
DocJohn's Avatar
DocJohn DocJohn is offline
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

Well, the script goes to what you tell it to go to...

The script_link is made from:

$db_script_url = "$baseurl$cgi_url";

Which, in your case, should result in your script_link being:

http://xku/~rik/cgi-bin/oj.cgi

There's nothing in the code that would suggest that this isn't what you should be seeing. You're telling me that instead of going to the above URL, OJ is going to:

http://xku/cgi-bin/oj.cgi

I did find a place where the link is incorrect. In oj.cfg, find the sub error routine and replace:

$cgi_url

with

$db_script_url

There are also two occurrences of this problem in oj.cgi. Look for $cgi_url in this file and replace with the above (one is in print_auth and the other is in the pring_new_auth subroutines).

This should fix the problem and has been corrected in the downloadable version.

John



__________________
Don't throw away your shot.
Reply
Views: 504

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bears: Build it and they will come! seeker1950 General Social Chat 0 Jun 26, 2008 08:29 PM
How to build self-esteem sabby Steps to Better Self-Esteem 7 Feb 27, 2007 12:55 AM


All times are GMT -5. The time now is 12:45 PM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.