Line 19: |
Line 19: |
| Information bay name - owncloud, Description - owncloud site, Group - Admin, User access - Write = group, Read = everyone, | | Information bay name - owncloud, Description - owncloud site, Group - Admin, User access - Write = group, Read = everyone, |
| Public access via web - Entire Internet (no password required), Execution of dynamic content - Enabled | | Public access via web - Entire Internet (no password required), Execution of dynamic content - Enabled |
− | * Check that you have the correct PHP version running for the Owncloud version you like to install: [https://doc.owncloud.org/server/8.0/admin_manual/installation/source_installation.html Version 8 doc]. Please see '''[[PHP Software Collections]]''' on how to install a supported higher version of PHP in an Ibay on SME Server 9.x}} | + | * Check that you have the correct PHP version running for the Owncloud version you like to install: [https://doc.owncloud.org/server/8.0/admin_manual/installation/source_installation.html Version 8 doc]. Please see '''[[PHP Software Collections]]'''<nowiki> on how to install a supported higher version of PHP in an Ibay on SME Server 9.x}}</nowiki> |
| * Extract ownCloud into the html directory of the new ibay (in this example called 'owncloud' ) | | * Extract ownCloud into the html directory of the new ibay (in this example called 'owncloud' ) |
| In the following code, change the version number of owncloud to suit the current version downloaded from the owncloud website. The latest version and changelog can be found [https://owncloud.org/changelog/ '''here'''] | | In the following code, change the version number of owncloud to suit the current version downloaded from the owncloud website. The latest version and changelog can be found [https://owncloud.org/changelog/ '''here'''] |
Line 30: |
Line 30: |
| * Set appropriate ibay settings at the command line prompt: | | * Set appropriate ibay settings at the command line prompt: |
| <nowiki>db accounts setprop owncloud \ | | <nowiki>db accounts setprop owncloud \ |
− | AllowOverride All \ | + | AllowOverride All \ |
− | FollowSymLinks enabled \ | + | FollowSymLinks enabled \ |
− | Group www \ | + | Group www \ |
− | PHPBaseDir /home/e-smith/files/ibays/owncloud/:/tmp/:/dev/urandom \ | + | PHPBaseDir /home/e-smith/files/ibays/owncloud/:/tmp/:/dev/urandom \ |
− | PublicAccess global \ | + | PublicAccess global \ |
− | UserAccess wr-group-rd-everyone | + | UserAccess wr-group-rd-everyone |
− | </nowiki> | + | </nowiki> |
| | | |
| * Update the ibay | | * Update the ibay |
Line 43: |
Line 43: |
| * you also need to allow the "allow_url_fopen" | | * you also need to allow the "allow_url_fopen" |
| <nowiki> | | <nowiki> |
− | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
| + | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf |
− | nano -w /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99allow_url_fopen
| + | nano -w /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99allow_url_fopen |
− | </nowiki>
| + | </nowiki> |
| | | |
| * and paste the following and save this | | * and paste the following and save this |
| | | |
| <nowiki> | | <nowiki> |
− | <Directory /home/e-smith/files/ibays/owncloud/html>
| + | <Directory /home/e-smith/files/ibays/owncloud/html> |
− | php_admin_flag allow_url_fopen on
| + | php_admin_flag allow_url_fopen on |
− | </Directory>
| + | </Directory> |
− | </nowiki>
| + | </nowiki> |
| | | |
| * then at the command line prompt enter: | | * then at the command line prompt enter: |
| | | |
| <nowiki> | | <nowiki> |
− | expand-template /etc/httpd/conf/httpd.conf
| + | expand-template /etc/httpd/conf/httpd.conf |
− | /etc/init.d/httpd-e-smith restart
| + | /etc/init.d/httpd-e-smith restart |
− | </nowiki>
| + | </nowiki> |
| | | |
| 4. Create a new MySQL database (In this example the database name is owncloud. Change '''owncloud''', '''username''' and '''password''' with your own choices as required) | | 4. Create a new MySQL database (In this example the database name is owncloud. Change '''owncloud''', '''username''' and '''password''' with your own choices as required) |
Line 67: |
Line 67: |
| mysql | | mysql |
| create database '''owncloud'''; | | create database '''owncloud'''; |
− | grant all privileges on '''owncloud'''.* to '''username@localhost''' identified by ''''password''''; | + | grant all privileges on '''owncloud'''.* to '''username@localhost''' identified by '<nowiki/>'''password''''; |
| flush privileges; | | flush privileges; |
| exit | | exit |
Line 210: |
Line 210: |
| #* Remove "/novalidate-cert" if your chosen mail server uses a signed SSL certificate): | | #* Remove "/novalidate-cert" if your chosen mail server uses a signed SSL certificate): |
| <nowiki> 'user_backends' => | | <nowiki> 'user_backends' => |
− | array (
| + | array ( |
− | 0 =>
| + | 0 => |
− | array (
| + | array ( |
− | 'class' => 'OC_User_IMAP',
| + | 'class' => 'OC_User_IMAP', |
− | 'arguments' =>
| + | 'arguments' => |
− | array (
| + | array ( |
− | 0 => '{[mail.yourdomain.com]:993/imap/ssl/novalidate-cert}',
| + | 0 => '{[mail.yourdomain.com]:993/imap/ssl/novalidate-cert}', |
− | ),
| + | ), |
− | ),
| + | ), |
− | ),</nowiki>
| + | ),</nowiki> |
| | | |
| When done, users will be able to login to your owncloud web interface using their mail server username and password. | | When done, users will be able to login to your owncloud web interface using their mail server username and password. |
Line 346: |
Line 346: |
| | | |
| Further information about caching can be found in the [https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html#caching ownCloud documentation]. | | Further information about caching can be found in the [https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html#caching ownCloud documentation]. |
| + | |
| + | === PHP opcache === |
| + | Into Nextcloud, logged as admin => Parameters => Basic parameters check that Nextcloud doesn't claim for following parameters concerning PHP opcache:<syntaxhighlight> |
| + | opcache.enable=1 |
| + | opcache.enable_cli=1 |
| + | opcache.interned_strings_buffer=8 |
| + | opcache.max_accelerated_files=10000 |
| + | opcache.memory_consumption=128 |
| + | opcache.save_comments=1 |
| + | opcache.revalidate_freq=1 |
| + | </syntaxhighlight>If it is the case: |
| + | |
| + | ==== In short ==== |
| + | * Edit ''/etc/opt/remi/php70/php.d/10-opcache.ini'' and make sure that the above given parameters are set. |
| + | * Restart php: signal-event php-update |
| | | |
| ===Mozilla Sync=== | | ===Mozilla Sync=== |
Line 359: |
Line 374: |
| Using a zipped tarball: | | Using a zipped tarball: |
| <nowiki>cd /home/e-smith/files/ibays/owncloud/files | | <nowiki>cd /home/e-smith/files/ibays/owncloud/files |
− | wget https://github.com/owncloud/mozilla_sync/archive/master.zip -O master.zip | + | wget https://github.com/owncloud/mozilla_sync/archive/master.zip -O master.zip |
− | sudo -u www unzip master.zip | + | sudo -u www unzip master.zip |
− | mv mozilla_sync-master /home/e-smith/files/ibays/owncloud/html/apps/mozilla_sync</nowiki> | + | mv mozilla_sync-master /home/e-smith/files/ibays/owncloud/html/apps/mozilla_sync</nowiki> |
| | | |
| Using Git: | | Using Git: |
| <nowiki>cd /home/e-smith/files/ibays/owncloud/html/apps | | <nowiki>cd /home/e-smith/files/ibays/owncloud/html/apps |
− | sudo -u www git clone https://github.com/owncloud/mozilla_sync.git | + | sudo -u www git clone https://github.com/owncloud/mozilla_sync.git |
− | sudo -u www git checkout master</nowiki> | + | sudo -u www git checkout master</nowiki> |
| | | |
| ====Server settings to enable Mozilla Sync==== | | ====Server settings to enable Mozilla Sync==== |