Compare commits

..

No commits in common. "30bf5f9fa76568c35765bedbc3fcafbf4ea86181" and "a76c827f181fedf05aa3ba03967fa4f271ad34c8" have entirely different histories.

View File

@ -17,7 +17,9 @@ apt install mlocate apache2 libapache2-mod-php mariadb-client mariadb-server wge
[/shroot] [/shroot]
Enter the MariaDB CLI as the root user Not found: `php-http-request python-certbot-apache`
No password set
[shroot] [shroot]
@ -261,47 +263,6 @@ mariadb -h [SERVER] -u [USERNAME] -p[PASSWORD] [DB NAME] < nextcloud-sqlbkp.bak
> [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/restore.html) > [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/restore.html)
## Migration
### Tips
- Allow login to the original host as root user
### Steps
- (New host) Install dependencies
- (Original host) Enable maintenance mode
- (Original host) Create database backup
- (New host) Restore database backup
- (New host) Recreate Nextcloud database user
- (New host) Copy full Nextcloud folder
- Preserve the permissions as much as possible (see rsync command below)
- `sudo rsync -a --progress root@172.18.50.101:/var/www/nextcloud /var/www/`
- (New host) Copy apache2 configuration file
- (New host) Enable apache2 Nextcloud site and disable default site
- (New host) Redo php limits configuration
- (New host) Upgrade Nextcloud (required for php 8.2 compatibility)
### Notes on configuration files
#### PHP
##### Apache2: `/etc/php/8.2/apache2/php.ini`
Change `memory_limit` to `1G`
Disable `post_max_size` by setting `0`
Previously used `20G` in the old Nextcloud installation
Change `upload_max_filesize` to `20G`
##### CLI: `/etc/php/8.2/cli/php.ini`
Disable `post_max_size` by setting `0`
Previously used `20G` in the old Nextcloud installation
Change `upload_max_filesize` to `20G`
## Collabora Online Container ## Collabora Online Container
! This chapter is unfinished ! This chapter is unfinished