**Fetter Text**
//Kursiver Text//
<sub>tiefgestellt</sub> und <sup>hochgestellt</sup>
__Unterstrichener Text__
''Code Text''
<del>Durchgestrichener Text</del>
====== Level 1 Überschrift ======
===== Level 2 Überschrift =====
==== Level 3 Überschrift ====
=== Level 4 Überschrift ===
== Level 5 Überschrift ==
[[Interner Link]]
[[http://example.com|Externer Link]]
- Nummerierter Listenpunkt
* Listenpunkt
---- - waagerechter Strich
{{bild.png|}} - Bild (nur Kleinschreibung erlaubt!)
{{bild.png?768x600}} - Bild skaliert zu fester Aufl. (nur Kleinschreibung erlaubt!)
{{dokument.pdf|}} - PDF-Datei (nur Kleinschreibung erlaubt!)
{{testprogramm.exe|}} - Demo-Programm für den Download (nur Kleinschreibung erlaubt!)
Bild- und PDF-Dateien müssen direkt in das Verzeichnis /var/lib/dokuwiki/data/media/ bzw. /usr/local/www/dokuwiki/data/media/ mit den Rechten www-data:www-data bzw. www:www abgelegt werden.
Dabei ist unbedingt auf den Dateinamen zu achten! Der Dateiname darf nur aus kleinen Buchstaben, Zahlen und dem Unterstrich in einfacher Form bestehen. Zwei Unterstriche hintereinander stellen auch einen Ungültigen Dateinamensbestandteil dar!
tar cf dokuwiki_sik.tar /var/lib/dokuwiki/ /etc/dokuwiki
tar cf dokuwiki_sik.tar /usr/local/www/dokuwiki/ /usr/local/etc/apache22/Includes/dokuwiki.conf
Installation und Konfiguration durch das Paketmanagement
aptitude install dokuwiki
/wiki
[*] apache2
[*] apache-ssl
lokale Konfigurationsdatei erstellen
cp /etc/dokuwiki/local.php.dist /etc/dokuwiki/local.php
auf deutsch einstellen
vi /etc/dokuwiki/local.php
$conf['lang'] = 'de';
damit es nicht nur lokal geht
vi /etc/dokuwiki/apache.conf
#allow from 127.0.0.1
allow from all
chown www-data:www-data /usr/share/dokuwiki/conf
Konfiguration im Browser
https://192.168.1.1/wiki/install.php
For security reasons this script will only work with a new and
unmodified Dokuwiki installation. You should either re-extract the files
from the downloaded package or consult the complete Dokuwiki
installation instructions
* unrecognised or modified dokuwiki.php
(hash=9100fa9a18424bd097b5ab972d66412d)
* /usr/share/dokuwiki/conf/local.php already exists
* /usr/share/dokuwiki/conf/users.auth.php already exists
* /usr/share/dokuwiki/conf/acl.auth.php already exists
Aufruf im Browser
https://192.168.1.1/wiki/
Erstmal muss der Apache mit mod_ssl installiert werden:
portinstall -prO www/apache22 .... [X] SSL Enable mod_ssl ....
Dann das Wiki:
portinstall -prO www/dokuwiki
Jetzt machen wir dass wiki noch per https klar:
vi /usr/local/etc/apache22/Includes/dokuwiki.conf
Include etc/apache22/extra/httpd-ssl.conf
# http://freebsdrocks.net/index.php/guides-mainmenu-25/15-installing-apache-samba-etc/17-installing-apache-22
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
#
DirectoryIndex index.php index.html
#
# echo 'accf_http_load="YES"' >> /boot/loader.conf
# kldload accf_http
Alias /wiki "/usr/local/www/dokuwiki/"
<Directory "/usr/local/www/dokuwiki">
#Options Indexes FollowSymLinks
#Options Indexes
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Jetzt noch den apache neu starten:
# /usr/local/etc/rc.d/apache22 restart Performing sanity check on apache22 configuration: Syntax OK Stopping apache22. Waiting for PIDS: 1117. Performing sanity check on apache22 configuration: Syntax OK Starting apache22.
So, und jetzt kann das Wiki eingerichtet werden:
https://192.168.1.1/wiki/install.php
Aufruf im Browser
https://192.168.1.1/wiki/
Ferti!