AtoM on Multiple Instances

105 views
Skip to first unread message

Marcial Cohene

unread,
Feb 22, 2016, 10:56:17 PM2/22/16
to ICA-AtoM Users
Hi everyone,

I'm sorry if this is a repost, but I'm trying to setup multiple instances of AtoM in the same server, and all I found related to this was this post that is actually something similar to what I'm trying to do:

https://groups.google.com/forum/#!msg/ica-atom-users/xx6LhwQYbgo/yr_V8wi4aTAJ

Unfortunately, the link to the example of two instances on the same server is not working anymore, and I couldn't find any other examples or information. So I was wondering if there's is another another useful example around, or some kind of guide to do this.

Thanks.

Dan Gillean

unread,
Feb 29, 2016, 3:01:02 PM2/29/16
to ICA-AtoM Users
Hi Marcial,

Unfortunately, I've checked with our developer and the example instance was deleted. Hopefully the examples and suggestions included in the original thread should be enough to point you in the right direction, and perhaps other users who have successfully implemented this can offer some suggestions? You might also want to explore the Nginx documentation and public resources, such as their user forums.

Good luck, and let us know how it goes!

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/59d1fc6d-7b88-43a5-b269-62b3edd4e7ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcial Cohene

unread,
Apr 14, 2016, 11:30:56 PM4/14/16
to ICA-AtoM Users
Hello again,

Well finally I did set up multiple instances using multiple URLs, like:
- http://site1.example.com
- http://site2.example.com
- http://site3.example.com

Setting multiple server blocks under /etc/nginx/sites-enabled/, each with it's own socket. If anyone's interested I could show the config files.

Unfortunately, now I'm limited to just 1 URL, so I'm thinking that I could do the same multiple instances in the following format:
- http://www.example.com/site1/
- http://www.example.com/site2/
- http://www.example.com/site3/

However, I'm doing something wrong because I can't find the way to setup a single site like this so far.

How should I setup the server block file for a single site so I can access it under the http://www.example.com/site1/ URL instead of the default http://www.example.com ?

Thanks in advance!

Marcial Cohene

Dan Gillean

unread,
Apr 18, 2016, 2:47:29 PM4/18/16
to ICA-AtoM Users
Hi Marcial,

I will see if I can get a developer to offer some suggestions, but this is a bit beyond what we can provide support for via our user forum, as we do not test and configure these kinds of set ups here at Artefactual. I suggest you look at some of the Nginx resources available:

There are also some help threads for other applications that might give you some ideas, such as:

Etc...


Good luck, and let us know how it goes!


Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

Darryl Friesen

unread,
Mar 8, 2017, 5:53:29 PM3/8/17
to AtoM Users

Sorry to dig up an old thread, but I'm wondering if you've found a solution to this Marcial?  I'm in the same boat.  Can't seem to get the nginx config quite right so that I can server up 2 AtoM installs on the same server.  I'm at the point now where I'm thinking about throwing away nginx and installing Apache.

- Darryl


Darryl Friesen

unread,
Mar 9, 2017, 1:27:44 AM3/9/17
to AtoM Users

Just wanted to follow up on this as I think I have something that works.

Following the instructions for installing on Ubuntu 16 (https://www.accesstomemory.org/en/docs/2.4/admin-manual/installation/linux/ubuntu-xenial/) I had an AtoM instance up and running at a base URL:

 
I wanted to server up a couple of additional AtoM instances from the same host, something like this: 


Not sure it was required, but I created a php-fpm config for each (in /etc/php/7.0/fpm/pool.d/).

I also checked out 2 additional copies of the code from github into /usr/share/nginx and called them atom1 and atom2 to match the URLs I wanted.

The tricky part is the nginx config. After a few hours of experimenting I finally came up with this:


There's an additional upstream section at the top for each of the additional php-fpm config.  For each additional AtoM instance there's a location section with most of the same default config repeated inside it, with care taken to change path/URI values where needed, and of course referencing the correct PHP config.  Those with more experience using nginx will no doubt be able to improve it, but I think it works.

- Darryl

----------------------------------------------------------------------
Darryl Friesen, B.Sc., Programmer/Analyst    Darryl....@usask.ca
Library Systems & Information Technology,    http://library.usask.ca/
University of Saskatchewan Library
----------------------------------------------------------------------
"Go not to the Elves for counsel, for they will say both no and yes"

Dan Gillean

unread,
Mar 9, 2017, 10:40:13 AM3/9/17
to ICA-AtoM Users
Hi Darryl,

Thanks so much for updating the thread and sharing your solution with the community!

Cheers,

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages