Você está na página 1de 12

Manual Installation on Linux Nextcloud 9 Server Administration ...

1 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

2 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

3 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

php -m | grep -i <module_name>

Recommended

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

4 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

SMB/CIFS

optional

optional

Conguring Memory Caching

optional

optional
ctrl-c
mod_webdav
mod_webdav

apt-get install apache2 mariadb-server libapache2-mod-php5


apt-get install php5-gd php5-json php5-mysql php5-curl
apt-get install php5-intl php5-mcrypt php5-imagick

libapache2-mod-php5

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

5 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

bcmath bz2 calendar Core ctype date dba dom ereg exif
fileinfo filter ftp gettext hash iconv libxml mbstring mhash openssl pcre Phar posix
Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm
tokenizer wddx xml xmlreader xmlwriter zip zlib

Download Nextcloud Server > Download > Archive le for server owners

md5sum -c nextcloud-x.y.z.tar.bz2.md5 < nextcloud-x.y.z.tar.bz2


sha256sum -c nextcloud-x.y.z.tar.bz2.sha256 < nextcloud-x.y.z.tar.bz2
md5sum -c nextcloud-x.y.z.zip.md5 < nextcloud-x.y.z.zip
sha256sum -c nextcloud-x.y.z.zip.sha256 < nextcloud-x.y.z.zip

wget https://download.nextcloud.com/server/releases/nextcloud-x.y.z.tar.bz2.asc
wget https://nextcloud.com/nextcloud.asc
gpg --import nextcloud.asc
gpg --verify nextcloud-x.y.z.tar.bz2.asc nextcloud-x.y.z.tar.bz2

tar -xjf nextcloud-x.y.z.tar.bz2


unzip nextcloud-x.y.z.zip

nextcloud

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

6 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

cp -r nextcloud /path/to/webserver/document-root

/path/to/webserver/document-root

cp -r nextcloud /var/www

An unhandled exception has been thrown: exception PDOException with message


'SQLSTATE[HY000]: General error: 1665 Cannot execute statement: impossible to
write to binary log since BINLOG_FORMAT = STATEMENT and at least one table
uses a storage engine limited to row-based logging. InnoDB is limited to
row-logging when transaction isolation level is READ COMMITTED or READ
UNCOMMITTED.'

/etc/apache2/sites-available/nextcloud.conf

Directory
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>

/etc/apache2/sites-enabled

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

7 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf

mod_rewrite
a2enmod rewrite

mod_headers
a2enmod
a2enmod
a2enmod
a2enmod

mod_env

mod_dir

mod_mime

headers
env
dir
mime

mod_fcgi

mod_php

a2enmod setenvif

AuthType Basic

<Directory
Satisfy Any

service apache2 restart

.htaccess
mod_rewrite

'overwrite.cli.url'

mod_env
config.php

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

8 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

a2enmod ssl
a2ensite default-ssl
service apache2 reload

occ

chown -R www-data:www-data /var/www/nextcloud/

occ

Installing Nextcloud From the Command Line


Installation Wizard

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

9 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

SELinux Conguration

php.ini
date.timezone

php.ini - used by the Web server:


/etc/php5/apache2/php.ini
or
/etc/php5/fpm/php.ini
or ...

php.ini - used by the php-cli and so by Nextcloud CRON jobs:


/etc/php5/cli/php.ini

Security: Use at least PHP => 5.5.22 or >= 5.6.6

System environment variables


php-fpm
php-cli

getenv('PATH');

php-fpm

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

10 de 12

/etc/php5/fpm/

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

/etc/php-fpm.d/

www.conf

;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

printenv PATH

$ printenv PATH
/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:
/sbin:/bin:/

php-cli

php-fpm

Maximum upload size


php-fpm
upload_max_filesize

post_max_size

php5-fpm

.htaccess notes for Apache


nextcloud/.htaccess
.htaccess

php-fpm
nextcloud/.user.ini

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

11 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

Nginx Example Congurations

03/09/2016 15:33

Manual Installation on Linux Nextcloud 9 Server Administration ...

12 de 12

https://docs.nextcloud.com/server/9/admin_manual/installation/source...

03/09/2016 15:33

Você também pode gostar