Webserver-Setup
~# apt install ifupdown procps htop man less iputils-ping net-tools
~# nano /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
~# useradd -rmd /srv/nextcloud nextcloud
~# chsh nextcloud
> /bin/bash
~# apt install wget zip
~# apt install lighttpd php-cgi
~# apt install php-zip php-sqlite3 php-xml php-gd php-mbstring php-curl
~# su - nextcloud
~$ wget https://download.nextcloud.com/server/releases/latest.zip
~$ unzip latest.zip
~$ nano lighttpd.conf
server.document-root = "/srv/nextcloud/nextcloud/"
server.errorlog = "/srv/nextcloud/error.log"
server.port = 1024
server.modules = ( "mod_cgi", "mod_staticfile" )
cgi.assign = ( ".php" => "/usr/bin/php-cgi" )
index-file.names = ( "index.php" )
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
~$ killall lighttpd; /sbin/lighttpd -f ~/lighttpd.conf
- → Webbrowser: http://IP-ADRESSE:1024/
- Debugging:
~$ wget -O- --content-on-error --save-headers http://localhost:1024