LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-15-2016, 08:02 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
[ANN] OwnCloud server packages for multidomain installations


Hi,

If you're running multiple instances of OwnCloud using Apache Virtual Hosts, this might interest you.

OwnCloud server packages like those found in CentOS, Debian, Ubuntu, etc. are usually built for a single instance of OwnCloud on a server, usually at the server's default DocumentRoot location. The owncloud-server.SlackBuild from SlackBuilds.org builds such a package, for a default /srv/httpd/htdocs/owncloud directory.

I've rewritten that SlackBuild so you can use it on multiple domains using Apache Virtual Hosts. Let's say you're hosting three different domains on your server:
  • example1.com
  • example2.org
  • example3.net

If you want to use OwnCloud for each one of these domains, you can install it in three different locations. For example:
  • /srv/httpd/vhosts/example1-owncloud/htdocs
  • /srv/httpd/vhosts/example2-owncloud/htdocs
  • /srv/httpd/vhosts/example3-owncloud/htdocs

Of course, you can always do it manually. But packaging OwnCloud is good for a few reasons, namely to clearly separate the application from the data (e. g. data and configuration is what is left when you remove the package), and to keep track of the installed version.

To keep track of my OwnCloud installations, I simply added the corresponding hostname to the package name. So on this particular server, I have three different OwnCloud packages:
  • owncloud-server-example1.com-8.2.2-noarch-1_microlinux
  • owncloud-server-example2.org-8.2.2-noarch-1_microlinux
  • owncloud-server-example3.net-8.2.2-noarch-1_microlinux

Here's the owncloud-server.SlackBuild script that does it all:

http://www.microlinux.fr/microlinux/...ncloud-server/

Note: you can use that on 14.1 or -current too.

When building the package, you have to provide three variables interactively:
  1. your domain (example1.com)
  2. Your server root directory, something like /srv/httpd/htdocs or /srv/httpd/vhosts
  3. Your destination directory, something like example1-owncloud/htdocs

Last but not least, this script has stronger directory permissions than those defined in SBo's SlackBuild. I simply followed the permission directives given in the OwnCloud Server Documentation.

Cheers,

Niki

PS: here's a perfect example of why I prefer Slackware on a server. You don't have to jump through burning loops to do that.

Last edited by kikinovak; 01-15-2016 at 08:06 AM.
 
Old 01-16-2016, 05:46 PM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Thanks Niki, an interesting solution for multiple domains. I might feed the permissions back into SBo eventually, thanks for that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] Slackbuilds and packages for Studioware 14.1 dive Slackware 26 09-24-2016 01:48 PM
[ANN] packages available for po4a Didier Spaier Slackware 0 08-26-2013 08:44 AM
Move owncloud 4 to owncloud 5 to a different server the_bigbalu Linux - Server 2 05-28-2013 01:31 AM
LXer: Security updates break ownCloud installations LXer Syndicated Linux News 0 04-04-2013 04:02 AM
[ANN] sbopkg source packages slakmagik Slackware 7 07-27-2011 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration