Nextcloud 20.0 설치 - 안했다!
cd /usr/ports/www/nextcloud
make config
make all install clean
설치한 다음에 나오는 중요한 정보
/!\ The FreeBSD package REQUIRES the apps_paths configuration as /!\
/!\ seen in config/config.sample.php to function /!\
Please note that everything has been installed in /usr/local/www/nextcloud.
You will probably want to add an alias to your httpd.conf file,
something like this:
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
</Directory>
And restart Apache. Nextcloud will start the bundled installer on first
access. Once the bundled installer finishes, further configuration can
be done via 'Settings', 'Administration'. Additional configuration
options are available in
/usr/local/www/nextcloud/config/config.php
You can find annotated configuration options in config.documented.php
in the same directory. Nextcloud's configuration documentation is at
https://docs.nextcloud.com/server/18/admin_manual/configuration_server
The caching options require additional Nextcloud configuration.
이 패키지를 설치하고 나서 제일 처음 만난 오류는 ERR_TOO_MANY_REDIRECTS. 이 문제는 구글 검색으로 https://help.nextcloud.com/t/err-too-many-redirects-20-0-3-to-20-0-4/101930/21 같은 정보를 봐도 잘 못풀겠고, 지금은 어서 찾았는지도 모르지만, 다음 설정을 아파치 설정 문서에 넣으줘서 문제를 해결했다.
Header edit Set-Cookie ^(.*)$ "$1; HttpOnly; Secure; SameSite=None"
하지만, 이 이후에도 접속이 안되어서 아래 명령어로 관리자 비밀번호까지 바꾸어주었는데도 계속해서 인식하지 못하는 사용자라고 해서 결국 설치 포기.
$ sudo -u www php /var/www/nextcloud/occ user:resetpassword admin
Enter a new password:
Confirm the new password:
Successfully reset password for admin