aboutsummaryrefslogtreecommitdiff
path: root/network/nextcloud-server/README
blob: 573bb204ba29a10b068a0a3ca0e9934da2582763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Nextcloud is a safe home for all your data - community-driven, free and
open source. Nextcloud gives you access to all your files wherever you
are.


Optional dependency: postgresql can be used as the server's database.


SlackBuild defaults

This SlackBuild uses the following defaults:
* DOCROOT=/srv/httpd/htdocs
* PHPUSER=apache
* PHPGROUP=apache

You can change the defaults at build time:
# DOCROOT=/your/preferred/directory \
  PHPUSER=youruser \
  PHPGROUP=yourgroup \
  ./nextcloud-server.SlackBuild


Configuration

(1) Add the following in /etc/httpd/httpd.conf

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

(2) In /etc/httpd/httpd.conf, enable mod_rewrite and PHP by uncommenting
"LoadModule rewrite_module ..." and "Include /etc/httpd/mod_php.conf",
then restart httpd.

(3) You need to complete setup by visiting this page:

  http://localhost/nextcloud/