Today, I will publish Vagrant
configuration to set up DokuWiki
instance. It is just a handy reference, as described in the earlier blog post.
Vagrant
configuration file.
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| # base box config.vm.box = "debian/jessie64" # forward localhost:8080 to guest port 80 config.vm.network "forwarded_port", guest: 80, host_ip: "127.0.0.1", host: 8080 # virtualbox configuration config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine # vb.gui = true # Customize name of the VM: vb.name = "dokuwiki" # Use linked clone instead of full copy vb.linked_clone = true # Customize the amount of memory on the VM: vb.memory = "256" # Customize number of CPUs vb.cpus = 1 # Set execution cap at 50% vb.customize ["modifyvm", :id, "--cpuexecutioncap", "30"] end # configure system config.vm.provision "shell", inline: <<-SHELL export DEBIAN_FRONTEND=noninteractive echo "===> Update packages" sudo apt-get --quiet update echo "===> Install system packages" sudo apt-get --quiet --assume-yes install nginx sudo apt-get --quiet --assume-yes install uwsgi uwsgi-plugin-php sudo apt-get --quiet --assume-yes install ufw echo "===> Configure firewall" sudo ufw allow 80/tcp sudo ufw allow 22/tcp sudo ufw limit 22/tcp sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw --force enable echo "===> Configure additional PHP settings" sudo sed -i -e "/upload_max_filesize/ {s/\\(.*\\) = .*/\\1 = 25M/}" /etc/php5/embed/php.ini sudo sed -i -e "/post_max_size/ {s/\\(.*\\) = .*/\\1 = 30M/}" /etc/php5/embed/php.ini echo "===> Install and configure Dokwukiwi" sudo mkdir -p /srv/dokuwiki sudo curl -s -o /srv/dokuwiki-stable.tgz http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz sudo tar --extract --gzip --file /srv/dokuwiki-stable.tgz --strip-components 1 --directory /srv/dokuwiki cat <<-EOF | sudo tee /srv/dokuwiki/conf/local.php <?php \\$conf['userewrite'] = 1; ?> EOF sudo chown -R www-data:www-data /srv/dokuwiki echo "===> Configure uWSGI" cat <<-EOF | sudo tee /etc/uwsgi/apps-available/php.ini [uwsgi] plugins = php chown-socket = www-data:www-data processes = 4 EOF sudo ln -s /etc/uwsgi/apps-available/php.ini /etc/uwsgi/apps-enabled/ sudo systemctl restart uwsgi echo "===> Configure nginx" sudo unlink /etc/nginx/sites-enabled/default cat <<-EOF | sudo tee /etc/nginx/sites-available/dokuwiki server { listen 80 default_server; server_name dokuwiki.local; client_max_body_size 30M; root /srv/dokuwiki; index doku.php; location / { try_files \\$uri @dokuwiki; } location @dokuwiki { rewrite ^/_media/(.*) /lib/exe/fetch.php?media=\\$1 last; rewrite ^/_detail/(.*) /lib/exe/detail.php?media=\\$1 last; rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_\\$1&id=\\$2 last; rewrite ^/(?!lib/)(.*) /doku.php?id=\\$1&\\$args last; } location ~ /(COPYING|README|VERSION|install.php) { deny all; } location ~ /(conf|bin|inc)/ { deny all; } location ~ /data/ { internal; } location ~ \\.php\\$ { if (!-f \\$request_filename) { return 404; } include uwsgi_params; uwsgi_modifier1 14; uwsgi_pass unix:/run/uwsgi/app/php/socket; } } EOF sudo ln -s /etc/nginx/sites-available/dokuwiki /etc/nginx/sites-enabled/ sudo systemctl reload nginx SHELL end
Setup process.
Bringing machine 'default' up with 'virtualbox' provider... ==> default: Cloning VM... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'debian/jessie64' is up to date... ==> default: Setting the name of the VM: dokuwiki ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 80 (guest) => 8080 (host) (adapter 1) default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: No guest additions were detected on the base box for this VM! Guest default: additions are required for forwarded ports, shared folders, host only default: networking, and more. If SSH fails on this machine, please install default: the guest additions and repackage the box to continue. default: default: This is not an error message; everything may continue to work properly, default: in which case you may ignore this message. ==> default: Configuring and enabling network interfaces... ==> default: Installing rsync to the VM... ==> default: Rsyncing folder: /home/milosz/Projekty/vagrant_learning/ => /vagrant ==> default: Running provisioner: shell... default: Running: inline script ==> default: ===> Update packages ==> default: Ign http://httpredir.debian.org jessie InRelease ==> default: Hit http://httpredir.debian.org jessie Release.gpg ==> default: Hit http://httpredir.debian.org jessie Release ==> default: Hit http://httpredir.debian.org jessie/main Sources ==> default: Hit http://httpredir.debian.org jessie/main amd64 Packages ==> default: Hit http://httpredir.debian.org jessie/main Translation-en ==> default: Hit http://security.debian.org jessie/updates InRelease ==> default: Hit http://security.debian.org jessie/updates/main Sources ==> default: Hit http://security.debian.org jessie/updates/main amd64 Packages ==> default: Hit http://security.debian.org jessie/updates/main Translation-en ==> default: Reading package lists... ==> default: ===> Install system packages ==> default: Reading package lists... ==> default: Building dependency tree... ==> default: Reading state information... ==> default: The following extra packages will be installed: ==> default: libgd3 libvpx1 libxpm4 libxslt1.1 nginx-common nginx-full ==> default: Suggested packages: ==> default: libgd-tools fcgiwrap nginx-doc ssl-cert ==> default: The following NEW packages will be installed: ==> default: libgd3 libvpx1 libxpm4 libxslt1.1 nginx nginx-common nginx-full ==> default: 0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded. ==> default: Need to get 1,615 kB of archives. ==> default: After this operation, 4,360 kB of additional disk space will be used. ==> default: Get:1 http://security.debian.org/ jessie/updates/main nginx-common all 1.6.2-5+deb8u2 [86.7 kB] ==> default: Get:2 http://security.debian.org/ jessie/updates/main nginx-full amd64 1.6.2-5+deb8u2 [430 kB] ==> default: Get:3 http://httpredir.debian.org/debian/ jessie/main libvpx1 amd64 1.3.0-3 [599 kB] ==> default: Get:4 http://security.debian.org/ jessie/updates/main nginx all 1.6.2-5+deb8u2 [72.2 kB] ==> default: Get:5 http://httpredir.debian.org/debian/ jessie/main libxpm4 amd64 1:3.5.11-1+b1 [48.1 kB] ==> default: Get:6 http://httpredir.debian.org/debian/ jessie/main libgd3 amd64 2.1.0-5+deb8u3 [147 kB] ==> default: Get:7 http://httpredir.debian.org/debian/ jessie/main libxslt1.1 amd64 1.1.28-2+b2 [232 kB] ==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory ==> default: Fetched 1,615 kB in 1s (946 kB/s) ==> default: Selecting previously unselected package libvpx1:amd64. ==> default: (Reading database ... ==> default: 29854 files and directories currently installed.) ==> default: Preparing to unpack .../libvpx1_1.3.0-3_amd64.deb ... ==> default: Unpacking libvpx1:amd64 (1.3.0-3) ... ==> default: Selecting previously unselected package libxpm4:amd64. ==> default: Preparing to unpack .../libxpm4_1%3a3.5.11-1+b1_amd64.deb ... ==> default: Unpacking libxpm4:amd64 (1:3.5.11-1+b1) ... ==> default: Selecting previously unselected package libgd3:amd64. ==> default: Preparing to unpack .../libgd3_2.1.0-5+deb8u3_amd64.deb ... ==> default: Unpacking libgd3:amd64 (2.1.0-5+deb8u3) ... ==> default: Selecting previously unselected package libxslt1.1:amd64. ==> default: Preparing to unpack .../libxslt1.1_1.1.28-2+b2_amd64.deb ... ==> default: Unpacking libxslt1.1:amd64 (1.1.28-2+b2) ... ==> default: Selecting previously unselected package nginx-common. ==> default: Preparing to unpack .../nginx-common_1.6.2-5+deb8u2_all.deb ... ==> default: Unpacking nginx-common (1.6.2-5+deb8u2) ... ==> default: Selecting previously unselected package nginx-full. ==> default: Preparing to unpack .../nginx-full_1.6.2-5+deb8u2_amd64.deb ... ==> default: Unpacking nginx-full (1.6.2-5+deb8u2) ... ==> default: Selecting previously unselected package nginx. ==> default: Preparing to unpack .../nginx_1.6.2-5+deb8u2_all.deb ... ==> default: Unpacking nginx (1.6.2-5+deb8u2) ... ==> default: Processing triggers for man-db (2.7.0.2-5) ... ==> default: Processing triggers for systemd (215-17+deb8u4) ... ==> default: Setting up libvpx1:amd64 (1.3.0-3) ... ==> default: Setting up libxpm4:amd64 (1:3.5.11-1+b1) ... ==> default: Setting up libgd3:amd64 (2.1.0-5+deb8u3) ... ==> default: Setting up libxslt1.1:amd64 (1.1.28-2+b2) ... ==> default: Setting up nginx-common (1.6.2-5+deb8u2) ... ==> default: Setting up nginx-full (1.6.2-5+deb8u2) ... ==> default: Setting up nginx (1.6.2-5+deb8u2) ... ==> default: Processing triggers for libc-bin (2.19-18+deb8u4) ... ==> default: Processing triggers for systemd (215-17+deb8u4) ... ==> default: Reading package lists... ==> default: Building dependency tree... ==> default: Reading state information... ==> default: The following extra packages will be installed: ==> default: libjansson4 libmatheval1 libonig2 libpgm-5.1-0 libphp5-embed libqdbm14 ==> default: libsodium13 libyaml-0-2 libzmq3 php5-common uwsgi-core ==> default: Suggested packages: ==> default: php-pear php5-user-cache uwsgi-plugins-all uwsgi-extra ==> default: The following NEW packages will be installed: ==> default: libjansson4 libmatheval1 libonig2 libpgm-5.1-0 libphp5-embed libqdbm14 ==> default: libsodium13 libyaml-0-2 libzmq3 php5-common uwsgi uwsgi-core ==> default: uwsgi-plugin-php ==> default: 0 upgraded, 13 newly installed, 0 to remove and 1 not upgraded. ==> default: Need to get 4,556 kB of archives. ==> default: After this operation, 15.3 MB of additional disk space will be used. ==> default: Get:1 http://httpredir.debian.org/debian/ jessie/main libjansson4 amd64 2.7-1+deb8u1 [34.1 kB] ==> default: Get:2 http://httpredir.debian.org/debian/ jessie/main libmatheval1 amd64 1.1.11+dfsg-2 [22.8 kB] ==> default: Get:3 http://httpredir.debian.org/debian/ jessie/main libonig2 amd64 5.9.5-3.2 [118 kB] ==> default: Get:4 http://httpredir.debian.org/debian/ jessie/main libsodium13 amd64 1.0.0-1 [138 kB] ==> default: Get:5 http://httpredir.debian.org/debian/ jessie/main libyaml-0-2 amd64 0.1.6-3 [50.4 kB] ==> default: Get:6 http://httpredir.debian.org/debian/ jessie/main libpgm-5.1-0 amd64 5.1.118-1~dfsg-1 [157 kB] ==> default: Get:7 http://httpredir.debian.org/debian/ jessie/main libzmq3 amd64 4.0.5+dfsg-2+deb8u1 [436 kB] ==> default: Get:8 http://httpredir.debian.org/debian/ jessie/main libqdbm14 amd64 1.8.78-5+b1 [118 kB] ==> default: Get:9 http://httpredir.debian.org/debian/ jessie/main php5-common amd64 5.6.20+dfsg-0+deb8u1 [721 kB] ==> default: Get:10 http://httpredir.debian.org/debian/ jessie/main libphp5-embed amd64 5.6.20+dfsg-0+deb8u1 [2,209 kB] ==> default: Get:11 http://httpredir.debian.org/debian/ jessie/main uwsgi-core amd64 2.0.7-1 [474 kB] ==> default: Get:12 http://httpredir.debian.org/debian/ jessie/main uwsgi amd64 2.0.7-1 [33.7 kB] ==> default: Get:13 http://httpredir.debian.org/debian/ jessie/main uwsgi-plugin-php amd64 2.0.7-1 [44.2 kB] ==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory ==> default: Fetched 4,556 kB in 4s (1,037 kB/s) ==> default: Selecting previously unselected package libjansson4:amd64. ==> default: (Reading database ... ==> default: 29942 files and directories currently installed.) ==> default: Preparing to unpack .../libjansson4_2.7-1+deb8u1_amd64.deb ... ==> default: Unpacking libjansson4:amd64 (2.7-1+deb8u1) ... ==> default: Selecting previously unselected package libmatheval1:amd64. ==> default: Preparing to unpack .../libmatheval1_1.1.11+dfsg-2_amd64.deb ... ==> default: Unpacking libmatheval1:amd64 (1.1.11+dfsg-2) ... ==> default: Selecting previously unselected package libonig2:amd64. ==> default: Preparing to unpack .../libonig2_5.9.5-3.2_amd64.deb ... ==> default: Unpacking libonig2:amd64 (5.9.5-3.2) ... ==> default: Selecting previously unselected package libsodium13:amd64. ==> default: Preparing to unpack .../libsodium13_1.0.0-1_amd64.deb ... ==> default: Unpacking libsodium13:amd64 (1.0.0-1) ... ==> default: Selecting previously unselected package libyaml-0-2:amd64. ==> default: Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ... ==> default: Unpacking libyaml-0-2:amd64 (0.1.6-3) ... ==> default: Selecting previously unselected package libpgm-5.1-0. ==> default: Preparing to unpack .../libpgm-5.1-0_5.1.118-1~dfsg-1_amd64.deb ... ==> default: Unpacking libpgm-5.1-0 (5.1.118-1~dfsg-1) ... ==> default: Selecting previously unselected package libzmq3:amd64. ==> default: Preparing to unpack .../libzmq3_4.0.5+dfsg-2+deb8u1_amd64.deb ... ==> default: Unpacking libzmq3:amd64 (4.0.5+dfsg-2+deb8u1) ... ==> default: Selecting previously unselected package libqdbm14. ==> default: Preparing to unpack .../libqdbm14_1.8.78-5+b1_amd64.deb ... ==> default: Unpacking libqdbm14 (1.8.78-5+b1) ... ==> default: Selecting previously unselected package php5-common. ==> default: Preparing to unpack .../php5-common_5.6.20+dfsg-0+deb8u1_amd64.deb ... ==> default: Unpacking php5-common (5.6.20+dfsg-0+deb8u1) ... ==> default: Selecting previously unselected package libphp5-embed. ==> default: Preparing to unpack .../libphp5-embed_5.6.20+dfsg-0+deb8u1_amd64.deb ... ==> default: Unpacking libphp5-embed (5.6.20+dfsg-0+deb8u1) ... ==> default: Selecting previously unselected package uwsgi-core. ==> default: Preparing to unpack .../uwsgi-core_2.0.7-1_amd64.deb ... ==> default: Unpacking uwsgi-core (2.0.7-1) ... ==> default: Selecting previously unselected package uwsgi. ==> default: Preparing to unpack .../uwsgi_2.0.7-1_amd64.deb ... ==> default: Unpacking uwsgi (2.0.7-1) ... ==> default: Selecting previously unselected package uwsgi-plugin-php. ==> default: Preparing to unpack .../uwsgi-plugin-php_2.0.7-1_amd64.deb ... ==> default: Unpacking uwsgi-plugin-php (2.0.7-1) ... ==> default: Processing triggers for man-db (2.7.0.2-5) ... ==> default: Processing triggers for systemd (215-17+deb8u4) ... ==> default: Setting up libjansson4:amd64 (2.7-1+deb8u1) ... ==> default: Setting up libmatheval1:amd64 (1.1.11+dfsg-2) ... ==> default: Setting up libonig2:amd64 (5.9.5-3.2) ... ==> default: Setting up libsodium13:amd64 (1.0.0-1) ... ==> default: Setting up libyaml-0-2:amd64 (0.1.6-3) ... ==> default: Setting up libpgm-5.1-0 (5.1.118-1~dfsg-1) ... ==> default: Setting up libzmq3:amd64 (4.0.5+dfsg-2+deb8u1) ... ==> default: Setting up libqdbm14 (1.8.78-5+b1) ... ==> default: Setting up php5-common (5.6.20+dfsg-0+deb8u1) ... ==> default: ==> default: Creating config file /etc/php5/mods-available/pdo.ini with new version ==> default: php5_invoke: Enable module pdo for embed SAPI ==> default: ==> default: Creating config file /etc/php5/mods-available/opcache.ini with new version ==> default: php5_invoke: Enable module opcache for embed SAPI ==> default: Setting up libphp5-embed (5.6.20+dfsg-0+deb8u1) ... ==> default: ==> default: Creating config file /etc/php5/embed/php.ini with new version ==> default: Setting up uwsgi-core (2.0.7-1) ... ==> default: Setting up uwsgi (2.0.7-1) ... ==> default: Setting up uwsgi-plugin-php (2.0.7-1) ... ==> default: Processing triggers for libc-bin (2.19-18+deb8u4) ... ==> default: Processing triggers for systemd (215-17+deb8u4) ... ==> default: Reading package lists... ==> default: Building dependency tree... ==> default: Reading state information... ==> default: The following extra packages will be installed: ==> default: dh-python libmpdec2 libpython3-stdlib libpython3.4-minimal ==> default: libpython3.4-stdlib python3 python3-minimal python3.4 python3.4-minimal ==> default: Suggested packages: ==> default: python3-doc python3-tk python3-venv python3.4-venv python3.4-doc binutils ==> default: binfmt-support ==> default: The following NEW packages will be installed: ==> default: dh-python libmpdec2 libpython3-stdlib libpython3.4-minimal ==> default: libpython3.4-stdlib python3 python3-minimal python3.4 python3.4-minimal ufw ==> default: 0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded. ==> default: Need to get 4,793 kB of archives. ==> default: After this operation, 19.5 MB of additional disk space will be used. ==> default: Get:1 http://httpredir.debian.org/debian/ jessie/main libmpdec2 amd64 2.4.1-1 [85.7 kB] ==> default: Get:2 http://httpredir.debian.org/debian/ jessie/main libpython3.4-minimal amd64 3.4.2-1 [492 kB] ==> default: Get:3 http://httpredir.debian.org/debian/ jessie/main libpython3.4-stdlib amd64 3.4.2-1 [2,088 kB] ==> default: Get:4 http://httpredir.debian.org/debian/ jessie/main python3.4-minimal amd64 3.4.2-1 [1,646 kB] ==> default: Get:5 http://httpredir.debian.org/debian/ jessie/main python3.4 amd64 3.4.2-1 [204 kB] ==> default: Get:6 http://httpredir.debian.org/debian/ jessie/main python3-minimal amd64 3.4.2-2 [34.7 kB] ==> default: Get:7 http://httpredir.debian.org/debian/ jessie/main libpython3-stdlib amd64 3.4.2-2 [18.1 kB] ==> default: Get:8 http://httpredir.debian.org/debian/ jessie/main python3 amd64 3.4.2-2 [21.2 kB] ==> default: Get:9 http://httpredir.debian.org/debian/ jessie/main dh-python all 1.20141111-2 [66.4 kB] ==> default: Get:10 http://httpredir.debian.org/debian/ jessie/main ufw all 0.33-2 [138 kB] ==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory ==> default: Fetched 4,793 kB in 5s (927 kB/s) ==> default: Selecting previously unselected package libmpdec2:amd64. ==> default: (Reading database ... ==> default: 30256 files and directories currently installed.) ==> default: Preparing to unpack .../libmpdec2_2.4.1-1_amd64.deb ... ==> default: Unpacking libmpdec2:amd64 (2.4.1-1) ... ==> default: Selecting previously unselected package libpython3.4-minimal:amd64. ==> default: Preparing to unpack .../libpython3.4-minimal_3.4.2-1_amd64.deb ... ==> default: Unpacking libpython3.4-minimal:amd64 (3.4.2-1) ... ==> default: Selecting previously unselected package libpython3.4-stdlib:amd64. ==> default: Preparing to unpack .../libpython3.4-stdlib_3.4.2-1_amd64.deb ... ==> default: Unpacking libpython3.4-stdlib:amd64 (3.4.2-1) ... ==> default: Selecting previously unselected package python3.4-minimal. ==> default: Preparing to unpack .../python3.4-minimal_3.4.2-1_amd64.deb ... ==> default: Unpacking python3.4-minimal (3.4.2-1) ... ==> default: Selecting previously unselected package python3.4. ==> default: Preparing to unpack .../python3.4_3.4.2-1_amd64.deb ... ==> default: Unpacking python3.4 (3.4.2-1) ... ==> default: Selecting previously unselected package python3-minimal. ==> default: Preparing to unpack .../python3-minimal_3.4.2-2_amd64.deb ... ==> default: Unpacking python3-minimal (3.4.2-2) ... ==> default: Selecting previously unselected package libpython3-stdlib:amd64. ==> default: Preparing to unpack .../libpython3-stdlib_3.4.2-2_amd64.deb ... ==> default: Unpacking libpython3-stdlib:amd64 (3.4.2-2) ... ==> default: Selecting previously unselected package python3. ==> default: Preparing to unpack .../python3_3.4.2-2_amd64.deb ... ==> default: Unpacking python3 (3.4.2-2) ... ==> default: Selecting previously unselected package dh-python. ==> default: Preparing to unpack .../dh-python_1.20141111-2_all.deb ... ==> default: Unpacking dh-python (1.20141111-2) ... ==> default: Selecting previously unselected package ufw. ==> default: Preparing to unpack .../archives/ufw_0.33-2_all.deb ... ==> default: Unpacking ufw (0.33-2) ... ==> default: Processing triggers for man-db (2.7.0.2-5) ... ==> default: Processing triggers for mime-support (3.58) ... ==> default: Processing triggers for systemd (215-17+deb8u4) ... ==> default: Setting up libmpdec2:amd64 (2.4.1-1) ... ==> default: Setting up libpython3.4-minimal:amd64 (3.4.2-1) ... ==> default: Setting up libpython3.4-stdlib:amd64 (3.4.2-1) ... ==> default: Setting up python3.4-minimal (3.4.2-1) ... ==> default: Setting up python3.4 (3.4.2-1) ... ==> default: Setting up python3-minimal (3.4.2-2) ... ==> default: Setting up libpython3-stdlib:amd64 (3.4.2-2) ... ==> default: Setting up dh-python (1.20141111-2) ... ==> default: Setting up python3 (3.4.2-2) ... ==> default: running python rtupdate hooks for python3.4... ==> default: running python post-rtupdate hooks for python3.4... ==> default: Setting up ufw (0.33-2) ... ==> default: ==> default: Creating config file /etc/ufw/before.rules with new version ==> default: ==> default: Creating config file /etc/ufw/before6.rules with new version ==> default: ==> default: Creating config file /etc/ufw/after.rules with new version ==> default: ==> default: Creating config file /etc/ufw/after6.rules with new version ==> default: update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults ==> default: Processing triggers for libc-bin (2.19-18+deb8u4) ... ==> default: Processing triggers for systemd (215-17+deb8u4) ... ==> default: ===> Configure firewall ==> default: Rules updated ==> default: Rules updated (v6) ==> default: Rules updated ==> default: Rules updated (v6) ==> default: Rules updated ==> default: Rules updated (v6) ==> default: Default incoming policy changed to 'deny' ==> default: (be sure to update your rules accordingly) ==> default: Default outgoing policy changed to 'allow' ==> default: (be sure to update your rules accordingly) ==> default: Firewall is active and enabled on system startup ==> default: ===> Configure additional PHP settings ==> default: ===> Install and configure Dokwukiwi ==> default: <?php ==> default: $conf['userewrite'] = 1; ==> default: ?> ==> default: ===> Configure uWSGI ==> default: [uwsgi] ==> default: plugins = php ==> default: chown-socket = www-data:www-data ==> default: processes = 4 ==> default: ===> Configure nginx ==> default: server { ==> default: listen 80 default_server; ==> default: ==> default: server_name dokuwiki.local; ==> default: ==> default: client_max_body_size 30M; ==> default: ==> default: root /srv/dokuwiki; ==> default: index doku.php; ==> default: ==> default: location / { ==> default: try_files $uri @dokuwiki; ==> default: } ==> default: ==> default: location @dokuwiki { ==> default: rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last; ==> default: rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last; ==> default: rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last; ==> default: rewrite ^/(?!lib/)(.*) /doku.php?id=$1&$args last; ==> default: } ==> default: ==> default: location ~ /(COPYING|README|VERSION|install.php) { ==> default: deny all; ==> default: } ==> default: ==> default: location ~ /(conf|bin|inc)/ { ==> default: deny all; ==> default: } ==> default: ==> default: location ~ /data/ { ==> default: internal; ==> default: } ==> default: ==> default: location ~ \.php$ { ==> default: if (!-f $request_filename) { return 404; } ==> default: ==> default: include uwsgi_params; ==> default: uwsgi_modifier1 14; ==> default: uwsgi_pass unix:/run/uwsgi/app/php/socket; ==> default: } ==> default: }