ownCloud website documents.
We're installing ownCloud on a minimal Mageia4 virtual machine using VirtualBox just to go through the process. There is no X-server, so it's all done on the command line.
Part One -- Installing the Apache Webserver
We must begin by installing the Apache webserver. It's certainly possible to use alternative webservers, but Apache is most common. Getting a working Apache webserver is pretty straightforward.
1. Install Apache and some other related modules we'll need. Eventually, you'll want to configure ownCloud to use SSL, so install that module now.
$ sudo urpmi apache apache-mod_ssl
Note that we don't install apache-mod_dav since ownCloud supplies its own DAV module.
2. Use drakconf on the command line and choose the selection that allows you to configure the firewall to allow the web server (and the ssh server for system administration via ssh).
3. Set inint to run the webserver on startup.
$ sudo chkconfig httpd on
4. Start the webserver.
$ sudo service httpd start
5. Check to see that the webserver is working by pointing you browser to the server IP. I used the text-based lynx browser since there is no X-server on this machine.
$ lynx localhost
And it works!
Part Two - Install Useful Dependencies
Use urpmi to install the following apps. The ownCloud documentation explains why they are useful. You might as well do it now.
Part Three - Install ownCloud
By default, the Mageia package installs ownCloud in /use/share. There's nothing wrong with that although some people prefer it to be someplace else and, with some care, you can move it wherever you like. What's important is that the user apache own all the files and directories associated with ownCloud. We do that by using:
$ sudo chown -R apache:apache /usr/share/owncloud
It's also necessary to provide an initial configuration file. The easiest way to do that is to copy the example they provide. That leaves us with a pristine example file to examine if we need.
$ sudo cp /usr/share/owncloud/config/config.sample.conf /usr/usr/share/owncloud/config/config.conf
When we run ownCloud the first time, it will strip out all the comments and fill in some of the values during its initial setup.
Part Four - Setup ownCloud
Before you access the admin part of ownCloud, you must be logging in from an authorized fully qualified domain name (FQDN). This is allowed by editing config.php to add your FQDN. If you are assigned a dynamic IP address, you must use a dynamic DNS service to get access; it's a security feature.
Once that is out of the way, access the admin pages by pointing your web browser to http://your.server.address/owncloud.
The complete configuration is actually a little more complicated that this and I'll be adding links to documents that provide details, but essentially this is what you need to to do to get ownCloud running on Mageia4. It's just not as simple as "urpmi owncloud".
NOTE: I've had some difficulty getting ownCloud 6.x to run reliably, but Mageia has not yet updated their package to version 7.X. However, you can simply download the tar.bz2 package from the ownCloud site and replace the contents of /usr/share/owncloud.
Check blog’s new tagline - I thought it would be a good time to change the tagline (Older: “Linux, Tech, web and other things I’m interested in”). So how is doing an MBA after being ...
4 years ago