Difference between revisions of "NextCloud"

From Jon's Wiki
Line 20: Line 20:
 
Create a database.
 
Create a database.
 
Bump up the PHP memory limit to at least 512M.
 
Bump up the PHP memory limit to at least 512M.
 +
 +
Edit /etc/ImageMagick/policy.xml and remove this line to get PDF previews:'
 +
 +
<policy domain="coder" rights="none" pattern="PDF" /> <!-- remove this line -->
 +
 +
Add stuff to enabledPreviewProviders in config.php
 +
 +
For now, Photos is pretty broken in stable19, so use Gallery which stopped at stable17, update its domPurify JS library, and bump the max version in appinfo/info.xml

Revision as of 06:12, 11 September 2020

Assumes Ubuntu 20.04, stable19 branch (c. September 2020).

Install prerequisites

sudo apt install apache2 libapache2-mod-php7.4 \
   php7.4-{bcmath,curl,gd,gmp,intl,json,mbstring,opcache,pgsql,tidy,xmlrpc,xsl,zip}
   php-{imagick,redis} composer dehydrated postgresql redis-server

cd /var/www
git clone https://github.com/nextcloud/server.git nextcloud && cd nextcloud
git submodule update --init --recursive
chown www-data:www-data config apps .htaccess
sudo -u www-data ./occ maintenance:update:htaccess
mkdir /var/lib/nextcloud/data
chown -R www-data:www-data /var/lib/nextcloud

a2enmod rewrite ssl headers dir env setenvif

Create a database. Bump up the PHP memory limit to at least 512M.

Edit /etc/ImageMagick/policy.xml and remove this line to get PDF previews:'

<policy domain="coder" rights="none" pattern="PDF" /> 

Add stuff to enabledPreviewProviders in config.php

For now, Photos is pretty broken in stable19, so use Gallery which stopped at stable17, update its domPurify JS library, and bump the max version in appinfo/info.xml