![]() |
FAQ/Help |
Calendar |
Search |
#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 |
#2
|
||||
|
||||
Your browser doesn't understand what part, exactly? The public_html part? John
__________________
Don't throw away your shot. |
#3
|
|||
|
|||
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
|
|||
|
|||
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
|
||||
|
||||
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 |
|
![]() |
||||
Thread | Forum | |||
Bears: Build it and they will come! | General Social Chat | |||
How to build self-esteem | Steps to Better Self-Esteem |