www-Verzeichnis herstellen:
sudo mkdir /var/www/finest-plastics sudo chown kst:www-data /var/www/finest-plastics sudo chmod 775 /var/www/finest-plastics
Apache2 vhost Konfigurationsdatei in /etc/apache2/sites-available/:
<IfModule mod_ssl.c> <VirtualHost *:443> ServerName finest-plastics.cybercowboy.de ServerAdmin tecneeq@tecneeq.de DocumentRoot /var/www/finest-plastics ErrorLog ${APACHE_LOG_DIR}/finest-plastics-error.log CustomLog ${APACHE_LOG_DIR}/finest-plastics-access.log combined SSLEngine on SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 SSLCipherSuite "HIGH+EECDH:HIGH+EDH:!aNULL:!MD5:!3DES:!CAMELLIA:!AES128" #SSLRandomSeed startup file:/dev/urandom 1024 #SSLRandomSeed connect builtin SSLCertificateFile /etc/letsencrypt/live/cybercowboy.de/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/cybercowboy.de/privkey.pem Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" <Directory ~ "/var/www/finest-plastics/(bin/|conf/|data/|inc/)"> <IfModule mod_authz_core.c> AllowOverride All Require all denied </IfModule> <IfModule !mod_authz_core.c> Order allow,deny Deny from all </IfModule> </Directory> <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> </VirtualHost> </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Erhöhen des php-Uploadlimits auf 15MB:
echo 'upload_max_filesize = 15M post_max_size = 15M' > /etc/php/7.4/apache2/conf.d/10-upload_filesize.ini
Aktivieren des vhost und reloaden der Apache Konfiguration:
sudo a2ensite finest-plastics.cybercowboy.de-ssl.conf sudo systemctl reload apache2
Als User kst:
cd /var/www/finest-plastics wget https://raw.githubusercontent.com/splitbrain/dokuwiki-downloader/master/dokuwiki-downloader.php
Den Installer im Browser aufrufen, installieren, dann Dokuwiki konfigurieren:
https://finest-plastics.cybercowboy.de/dokuwiki-downloader.php
Die Datei dokuwiki-downloader.php löscht sich selbst.
Backupscript in $HOME/bin/ ablegen:
#!/bin/bash mkdir -p /var/www/finest-plastics/backups $HOME/backups/finest-plastics-snaps # public backup tar -C /var/www -czf "/var/www/finest-plastics/backups/finest-plastics.tgz" finest-plastics/data/media finest-plastics/data/pages # private backup source="/var/www/finest-plastics/" target="$HOME/backups/finest-plastics-snaps/" today="$(date +%Y.%m.%d-%H:%M:%S)" rsync -avR --delete --exclude="backups/*" --exclude="data/cache/*" --exclude="data/media_attic/*" --exclude="data/attic/*" "${source}" "${target}${today}/" --link-dest="${target}-last/" ln -nsf "${target}${today}" "${target}-last"
Backupscript ausführbar machen:
chmod +x $HOME/bin/finest-plastics-backup.sh
Cronjob als kst anlegen:
14 2 * * * $HOME/bin/finest-plastics-backup.sh
Plugins:
Themes:
Wie TPS-Wiki