

OWNCLOUD IN A BOX HOW TO
You need to configure Moodle so that it knows how to talk to your ownCloud server.įor this, a so-called OAuth 2 issuer has to be registered in the admin menu Site administration ► Server ► OAuth 2 services.Ĭhoose the name freely it will only be shown to you.Įnter ClientID and Secret from the ownCloud settings of Add Moodle as a client to ownCloud.Įnable the "Authenticate token requests via HTTP headers" checkbox.Īs Service base URL, enter the full URL to your ownCloud installation, including a custom port (if any).įor example, if the ownCloud installation is at, then this is the base URL. The next steps describe how the necessary issuer is created in Moodle's central OAuth 2 services settings.Īfterwards, an ownCloud repository instance is created using that issuer. However, when the repository is enabled, the admin has to select an issuer which defines the ownCloud server. No additional settings are displayed to the admin when installing the plugin. Those will be required for the configuration in Moodle, so keep them at hand.Ĭopy the content of this repository to repository/owncloud. So the name should be self-explanatory to them.Īfter adding the client, the table displays a corresponding Client Identifier and a secret. The name can be chosen freely, but note that it will presented to ownCloud users, Your Moodle URL + /admin/oauth2callback.phpįor example, if your users reach Moodle at , Go to Settings ► User authentication and add your Moodle installation as a client: Prerequisites: Current ownCloud installation (recommended: version 10.0.1+) with enabled HTTPS and the ownCloud OAuth 2 app.Īlternatively, a current Nextcloud installation (recommended: version 13.0.1+) on HTTPS. We collect a list of known problems and hints at their resolution below. Fair warning: The configuration might become very technical. This plugin requires configuration in ownCloud (add Moodle as an allowed client) as well as in Moodle (add ownCloud servers to which users will be able to connect). Remaining limitations have been resolved with Nextcloud 13.0.1 (see Nextcloud Limitations for details). This repository was developed with ownCloud in mind, but it actually works with Nextcloud as well.

As a consequence, they work quite similar. Tech-savvy users are not able to add their own ownCloud servers, though, so the Moodle admin is always in control which servers are connected.Īre you using Nextcloud? ownCloud and Nextcloud share the same history. Is your institution using multiple ownCloud servers? Don't worry, a Moodle administrator can connect multiple ownCloud servers that are then presented separately to the users.

OWNCLOUD IN A BOX DOWNLOAD
Without having to download it to their local machine first. Next up we need to setup SSL $ sudo a2enmod rewriteĪfter the follow command you will be asked to provide information sudo openssl genrsa -des3 -out server.key 1024 sudo openssl rsa -in server.key -out sudo openssl req -new -key server.key -out server.csr sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt sudo cp server.crt /etc/ssl/certs sudo cp server.This repository enables Moodle users to have direct access to their private files from ownCloud in the Moodle file picker and the URL resource module,Įnabling to upload files into Moodle directly from their ownCloud, Inside the file we need to change Allow over ride to All from none Next up we need to config apache and enable SSL $ sudo nano /etc/apache2/sites-enabled/000-default We need to find externsion= section and add in the extension=apc.so The we need to find post_max_size and then chaged the value to 1200m which will allow files to upto 1 gb to be uploaded In this file we need to find upload_max_filesize and then change the value to 1024M which will allow files of upto 1GB to be uploaded Next up we have to change the PHP.ini to change the max upload file so we can add large file and add the APC externsion to PHP $ sudo nano /etc/php5/apache2/php.ini In to that file we need to add the following
OWNCLOUD IN A BOX INSTALL
Now we have download the software we need to configor it.įirst off we need to install PHP apc $ sudo pecl install apcĪfter that is done we need to create the apc.ini $ sudo nano /etc/php5/cgi/conf.d/apc.ini
