Special:Communication & Concept/프리비에스디(FreeBSD 12.0)에 nextcloud 15.0.X 설치

Jump to: navigation, search
#189 [ Ssam ] hit: 116(#8bff8b)

nextcloud설치

  • nextcloud 15.0.2 설치, 설치 위치는 /usr/local/www/nextcloud 에 설치 된다.
# pkg install nextcloud-php73
메세지 출력
New packages to be INSTALLED:
 	nextcloud-php73: 15.0.2
	php73-opcache: 7.3.1_1
	php73-xsl: 7.3.1_1
	libxslt: 1.1.32
	libgcrypt: 1.8.4_1
	libgpg-error: 1.34
	php73-wddx: 7.3.1_1
	php73-ldap: 7.3.1_1
	openldap-client: 2.4.47
	php73-exif: 7.3.1_1
	php73-pdo_mysql: 7.3.1_1
	php73-pdo: 7.3.1_1

Number of packages to be installed: 12

The process will require 159 MiB more space.
30 MiB to be downloaded.

Proceed with this action? [y/N]: y
메세지 출력



[.........]
************************************************************
The OpenLDAP client package has been successfully installed.

Edit
  /usr/local/etc/openldap/ldap.conf
to change the system-wide client defaults.

Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at
  http://www.OpenLDAP.org/faq/index.cgi?file=3
for more information.

************************************************************
Message from nextcloud-php73-15.0.0:

/!\ The FreeBSD package REQUIRES the apps_paths configuration as    /!\
/!\ seen in config/config.sample.php to function                    /!\

***********************************************************************
*                         POST INSTALL CONFIGURATION                  *
***********************************************************************

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/14/admin_manual/configuration_server

The caching options require additional Nextcloud configuration.

***********************************************************************
*                       NEXTCLOUD VERSION UPGRADE                     *
***********************************************************************

After a version migration you should upgrade your nextcloud instance
using command line:

  cd /usr/local/www/nextcloud
  su -m www -c "php ./occ upgrade"


nextcloud 15.0.X 환경 설정

  • 파일 vi /usr/local/etc/apache24/httpd.conf 열어 맨 끝에 추가
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
    AllowOverride All
    Require all granted
</Directory>

  • 아파치 재시작
# service apache24 restart
  • 웹브라우저에서 설치를 진행한다.
http://192.168.0.35/nextcloud/
  • 잘 안 되면 재부팅 해 주세요!!


신뢰하는 도메인 수정

  • 설치 후 신뢰하는 도메인 수정 vi /usr/local/www/nextcloud/config/config.php 파일을 열어 수정 한다.
[..........]
 'trusted_domains' =>
 array (
   0 => '192.168.0.35',
   1 => 'zbm.kr',
 ),
[..........]


넥스트클라우드 버전 업그레이드(NEXTCLOUD VERSION UPGRADE)

  • FreeBSD 포트 컬렉션 업데이트
 # portsnap fetch
 # portsnap update
  • FreeBSD 패키지 업데이트 와 업그레이드
# pkg update
# pkg upgrade
  • 넥스트클라우드(nextcloud) 버전 업그레이드
 # cd /usr/local/www/nextcloud && su -m www -c "php ./occ upgrade" 


보안 및 설치 경고 관련

  • Maintenance mode enabled
# su -m www -c 'php /usr/local/www/nextcloud/occ maintenance:mode --on'
메세지
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Maintenance mode enabled
  • filecache.mtime 업데이트
# su -m www -c 'php /usr/local/www/nextcloud/occ db:convert-filecache-bigint'
메세지
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Nextcloud is in maintenance mode - no apps have been loaded
 
Following columns will be updated:

* filecache.mtime
* filecache.storage_mtime
 
This can take up to hours, depending on the number of files in your instance!
Continue with the conversion (y/n)? [n] <--- y 입력
  • Maintenance mode disabled
# su -m www -c 'php /usr/local/www/nextcloud/occ maintenance:mode --off'
메세지
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Maintenance mode disabled


  • imagick 설치
# pkg install php73-pecl-imagick
메세지

[........]
The following 14 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	php73-pecl-imagick: 3.4.3_3
	ImageMagick6-nox11: 6.9.10.22,1
	ghostscript9-agpl-base: 9.26
	poppler-data: 0.4.9
	jbig2dec: 0.15
	libidn: 1.34_1
	fftw3: 3.3.8_3
	openjpeg: 2.3.0_3
	lcms2: 2.9
	libwmf-nox11: 0.2.8.4_15
	libraw: 0.18.13_2
	liblqr-1: 0.4.2
	pkgconf: 1.6.0,1
	libltdl: 2.4.6

Number of packages to be installed: 14

The process will require 101 MiB more space.
29 MiB to be downloaded.

Proceed with this action? [y/N]: '''y''' 입력
설치 후 메세지
[......]
 NOTICE:

The libwmf-nox11 port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
Message from liblqr-1-0.4.2:

==========================================================================
NOTE: In order to compile examples for liblqr, you will
also need pngwriter port (/usr/ports/graphics/pngwriter).
Examples are located in /usr/local/share/examples/liblqr-1
==========================================================================





Logo