OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Individual Name for Each Journal within MULTIPLE OJS inst.

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby asmecher » Tue Jan 22, 2013 11:15 am

Hi Marc,

Can you check that you're using the ojs-stable-2_4 branch for both the ojs and the pkp-lib repositories (the latter in lib/pkp)? OTOH I wonder if you haven't got master checked out in lib/pkp.

Cheers,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8316
Joined: Wed Aug 10, 2005 12:56 pm

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby mbria » Tue Jan 22, 2013 2:32 pm

Thanks again Alec for your fast answer.

Yes, as you suspect I cloned ojs (master) and lib-pkp (master).
Github networks are now running really slow but from your comments I understund lib-pkp master is not still merged with 2_4_stable, isn't it?

I will try now been sure I work over 2_4_stable branches.
BTW, James told me to translate 2.4.2 but git tags ends at 2.4.1... I suppose the 2_4_stable branch is the one need to be translated so I can also download the tarball you distribute from your web, am I right?

Finally, have you any trick to clone full ojs (ojs plus lib-pkp) with a single git command?
Is not really important, but I'm curious.

Cheers,
m.
mbria
 
Posts: 292
Joined: Wed Dec 14, 2005 4:15 am

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby asmecher » Tue Jan 22, 2013 3:15 pm

Hi Marc,

The master branch is for unstable development (which will be released as 3.0 eventually but is currently undergoing a lot of changes); the ojs-stable-2_4 branch is for 2.4.x releases, and we add a new tag to that branch whenever a new release is finalized. So for the moment, you're best off working with ojs-stable-2_4, which will be released soon as OJS 2.4.2.

There's no way to use git to fetch the submodules etc. all at once, but I've just posted a shell script at http://pkp.sfu.ca/wiki/index.php/HOW-TO_check_out_PKP_applications_from_git that should simplify the checkout process for those working from github.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8316
Joined: Wed Aug 10, 2005 12:56 pm

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby mbria » Thu Jan 24, 2013 5:49 am

Perfect documentation and script Alec. Just what I was looking for.
It will facilitate our internal control of the translations as well as the distribution back to you (PKP).
If I find time and is ok for you, I will extend the wiki (http://pkp.sfu.ca/wiki/index.php/Frequent_git_use_cases) for translators.

Let's see if the "site login issue" disappears with the code of the ojs-stable-2_4 branch...
although I'm suspect it won't as far as the official tarball for 2.4.1 still fails. :roll:

Cheers,
m.
mbria
 
Posts: 292
Joined: Wed Dec 14, 2005 4:15 am

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby mbria » Thu Jan 24, 2013 6:09 pm

Silly me, I missed to SUBMIT this post I wrote on 23th just after Alec's one.
I think what I aid it's still relevant in this thread ("login issue with multiOJS"), so I publish it anyway:

-----------

Hi Alec,

To be completely sure the code versions were synchronized I tried directly with the tarball you distribute from your PKP website (released as OJS 2.4.1).

With RESTful and without patching SessionsManager.inc.php and bootstrap.inc.php I'm unable to login in the Site (index) or the Magazine (trad241).
With RESTful and patching both files I'm able to login in the manager (trad241) but not in the Site (index).

In this last case, while user keeps logged in the magazine, when I visit links to the Site (ojs-trad241) I'm redirected to login at:
http://revistes.uab.cat/ojs-trad241/log ... 241%2Fuser

In other words, I'm able to reach the magazine (as Journal Manager or whatever) but I'm unable to do anything as Site Administrator as far as any link is redirected to login page.

I'm pretty sure mod_rewrite is working fine (I'm testing new code in our production server and 2.3.6 is working like a charm).
The point is this issue sounds a lot like former one so seams to me that I'm missing something obvious.

Thanks again,
m.

----------
Context info:
base_url = "http://revistes.uab.cat/ojs-trad241"
session_cookie_name = OJSSID-trad241
base_url[index] = http://revistes.uab.cat/ojs-trad241
base_url[trad241] = http://revistes.uab.cat/trad241
; MBR: Patch to allow multiple OJS sites with RESTful URLs
session_cookie_path = /
mbria
 
Posts: 292
Joined: Wed Dec 14, 2005 4:15 am

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby asmecher » Mon Jan 28, 2013 11:07 am

Hi Marc,

Would you mind PMing me some test credentials? I'd like to look at the URLs and the cookie that gets generated.

Thanks,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8316
Joined: Wed Aug 10, 2005 12:56 pm

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby mbria » Tue Jan 29, 2013 4:45 am

Unbelievable. Cleaning cookies did the job.
Now I'm able to reach the site and magazine with the brand new ojs-stable-2_4.

Hurray !!

Thanks Alec. The issue part related with this thread is now official closed.
MultiOJS script is now OJS 2.4.x compliant (with the two patches commented before).

BTW Alec, is it possible to add those two patches to the official branch?
If not now (I understand it need further testing), what about 2.4.3?

Let's go to translate.

Cheers,
m

PD to Alec: I sent you the credentials you asked for as well as a doubt about translations.
If you find time, answer the PM, please.
mbria
 
Posts: 292
Joined: Wed Dec 14, 2005 4:15 am

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby mbria » Thu Jul 25, 2013 2:37 am

OJS patching to be "MOjO" friendly is discussed here:
http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7073

Cheers,
m.
mbria
 
Posts: 292
Joined: Wed Dec 14, 2005 4:15 am

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby webhngu » Sun Apr 20, 2014 12:03 am

i Have installed Ojs with multi site in my cpanel account with domain

base url = http://ojs.ilife.org

Also created two different journals like JIS1 and JIS2, andd path for both of these as follows
Code: Select all
 http://ojs.ilife.org/index.php/jis1
http://ojs.ilife.org/index.php/jis2


But now, i would like to set the two different domain names for both of these journals.
http://benchmark.com
http://eschimo.org

I had followed the tutorials above like, viewtopic.php?f=8&t=7578#p29284
Code: Select all
* base_url = "http://ojs.ilife.org"
* base_url[index] = http://ojs.ilife.org
* base_url[jis1] = http://benchmark.com
* base_url[jis2] = http://eschimo.org
* restful_urls = On

But confused in the rewirting the .htaccess

Code: Select all
RewriteEngine On
RewriteBase /
RewriteRule ^magazine1$ magazine1/
RewriteRule ^magazine1/(.*)$ ojs1/index.php/magazine1/$1 [L]
RewriteRule ^ojs1$ ojs1/
RewriteRule ^ojs1/(.*)$ ojs1/index.php/index/$1 [L]


please help me to modify my .htaccess file and made this journal available to seperate domain.
webhngu
 
Posts: 1
Joined: Sat Apr 19, 2014 11:51 pm

Re: Individual Name for Each Journal within MULTIPLE OJS ins

Postby mbria » Sun Apr 20, 2014 3:22 am

Hi webhngu,

This thread is not really a manual... it's the process we follow to create a multiple OJS installation and the "mojo" script.
I mean, you need to read the whole thread because some approaches were slightly modified, code was adapted and finally the thread was kind of abandoned to follow the work in the github's "mojo" script pages.

I really encourage you to follow this howto and install "mojo", as far as a MultiOJS installation without the script will be harder to admin:
https://github.com/marcbria/mojo

Here you have a detailed explanation about the script:
http://pkp.sfu.ca/wiki/index.php?title= ... S_%26_mOJO

If you decide to follow without "mojo" you will find this useful:
viewtopic.php?f=8&t=7578&start=15#p32090

Your .htaccess need to be something like:

Code: Select all
RewriteEngine On
RewriteBase /
# Rules for magazine "magazineTag" on domain "www.yoursite.com"
RewriteRule ^magazineTag$ magazineTag/
RewriteRule ^magazineTag/(.*)$ ojs-magazineTag/index.php/magazineTag/$1 [L,QSA]
RewriteRule ^ojs-magazineTag/magazineTag/(.*)$ ojs-magazineTag/index.php/magazineTag/$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ojs-magazineTag/(.*)$ ojs-magazineTag/index.php/index/$1 [L]

RewriteCond %{SERVER_NAME} ^www.yoursite.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ magazineTag/$1 [L]


This is what the howto suggests as wall as the script does for you:
https://github.com/marcbria/mojo/blob/m ... omain.base

Cheers,
m.
mbria
 
Posts: 292
Joined: Wed Dec 14, 2005 4:15 am

Previous

Return to OJS Technical Support

Who is online

Users browsing this forum: ctgraham and 6 guests