Compare commits
2 Commits
a76c827f18
...
30bf5f9fa7
Author | SHA1 | Date | |
---|---|---|---|
30bf5f9fa7 | |||
a6db5a2a23 |
@ -17,9 +17,7 @@ apt install mlocate apache2 libapache2-mod-php mariadb-client mariadb-server wge
|
|||||||
|
|
||||||
[/shroot]
|
[/shroot]
|
||||||
|
|
||||||
Not found: `php-http-request python-certbot-apache`
|
Enter the MariaDB CLI as the root user
|
||||||
|
|
||||||
No password set
|
|
||||||
|
|
||||||
[shroot]
|
[shroot]
|
||||||
|
|
||||||
@ -263,6 +261,47 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user