Nextcloud¶
one variant to be tested for Fedora 33 Server: https://www.howtoforge.de/anleitung/wie-man-nextcloud-auf-fedora-32-installiert-und-konfiguriert/
Install¶
currently in EPEL-testing ...
ius-release repo¶
php7.1¶
yum install php71u php71u-mysqlnd php71u-dom php71u-mbstring php71u-gd php71u-pdo php71u-json php71u-xml php71u-zip curl php71u-curl php71u-mcrypt
podman based¶
taken from https://fedoramagazine.org/nextcloud-20-on-fedora-linux-with-podman/
podman volume create nextcloud-app
podman volume create nextcloud-data
podman volume create nextcloud-db
podman run --detach --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env MYSQL_ROOT_PASSWORD=DB_ROOT_PASSWORD --volume nextcloud-db:/var/lib/mysql --network nextcloud-net --restart on-failure --name nextcloud-db docker.io/library/mariadb:10
podman run --detach --env MYSQL_HOST=nextcloud-db.dns.podman --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env NEXTCLOUD_ADMIN_USER=NC_ADMIN --env NEXTCLOUD_ADMIN_PASSWORD=NC_PASSWORD --volume nextcloud-app:/var/www/html --volume nextcloud-data:/var/www/html/data --network nextcloud-net --restart on-failure --name nextcloud --publish 8080:80 docker.io/library/nextcloud:20
update container¶
podman pull mariadb:10
podman stop nextcloud-db
podman rm nextcloud-db
podman run --detach --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env MYSQL_ROOT_PASSWORD=DB_ROOT_PASSWORD --volume nextcloud-db:/var/lib/mysql --network nextcloud-net --restart on-failure --name nextcloud-db docker.io/library/mariadb:10
podman pull nextcloud:20
podman stop nextcloud
podman rm nextcloud
podman run --detach --env MYSQL_HOST=nextcloud-db.dns.podman --env MYSQL_DATABASE=nextcloud --env MYSQL_USER=nextcloud --env MYSQL_PASSWORD=DB_USER_PASSWORD --env NEXTCLOUD_ADMIN_USER=NC_ADMIN --env NEXTCLOUD_ADMIN_PASSWORD=NC_PASSWORD --volume nextcloud-app:/var/www/html --volume nextcloud-data:/var/www/html/data --network nextcloud-net --restart on-failure --name nextcloud --publish 8080:80 docker.io/library/nextcloud:20
config.php additions¶
automagically clear deleted files¶
Nextcloud may delete files from trash as necessary but has to after 10 days latest.
password-recovery not working, getting 'network error' on GUI¶
taken from https://help.nextcloud.com/t/network-error-for-new-account-at-reset-password-page/74234
default phone region not set¶
remove 'Nextcloud'-Link from shared files¶
taken from https://help.nextcloud.com/t/how-to-remove-link-to-nextcloud-from-shared-files/50912
occ inside container¶
add missing indices¶
as for update from NC22 to NC23 there are some indices missing.
add missing mimetyped¶
as for update from NC29.0.4 to NC29.0.6 there are some mimetypes missing.
podman exec -it -u www-data nc_example.com-nc /bin/sh
php occ maintenance:repair --include-expensive
exit
add missing BigInt (64bit) identifiers¶
https://docs.nextcloud.com/server/25/admin_manual/configuration_database/bigint_identifiers.html
update database after manual file manipulation¶
podman exec -it -u www-data nc_example.com-nc /bin/sh
php occ maintenance:mode --on
php occ maintenance:mode --off
php occ files:scan --all
php occ files:cleanup
exit
mysql inside container¶
convert table row format to dynamic¶
as for update from NC31 there are warnings about the row-format of several tables.
this is caused by incremental updates from earlier than NC24 on.
run following script to update ROW_FORMAT
DBCONTAINER=nc_example.com-db #based on your compose.yaml
DBNAME=nextcloud #based on your compose.yaml
DBPWD=supersecret007
podman exec -i $DBCONTAINER mariadb -u ncuser -p$DBPWD -N -e "
SELECT CONCAT('ALTER TABLE ', TABLE_NAME, ' ROW_FORMAT=DYNAMIC;')
FROM information_schema.tables
WHERE table_schema = '$DBNAME' AND ROW_FORMAT != 'Dynamic';" \
| podman exec -i $DBCONTAINER mariadb -u ncuser -p$DBPWD $DBNAME
Von Jeremias Keihsler vor etwa 1 Jahr aktualisiert · 19 Revisionen