User Tools

Site Tools


dokuwikipi_-_host_your_own_wiki_site_like_this_one

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dokuwikipi_-_host_your_own_wiki_site_like_this_one [2016/07/25 16:01] walkeradmindokuwikipi_-_host_your_own_wiki_site_like_this_one [2023/03/10 16:56] (current) walkeradmin
Line 73: Line 73:
         sudo nano /etc/apache2/apache2.conf         sudo nano /etc/apache2/apache2.conf
 \\ \\
-Add this section\\  
 \\  \\ 
-<Directory /home/pi/> +Put this at the end, and comment out any other similar entries.
-\\  +
-Options Indexes FollowSymLinks +
-\\  +
-AllowOverride All +
-\\  +
-Require all granted+
 \\  \\ 
 +<file>
 +<Directory /home/pi/dokuwiki>
 +    Options Indexes FollowSymLinks
 +    AllowOverride All
 +    Require all granted
 </Directory> </Directory>
 +</file>
 \\  \\ 
 \\  \\ 
-        ENSURE TO CHANGE AllowOverride to All (default) is none +        Now edit the following file: 
-\\ +        /etc/apache2/sites-enabled/000-default.conf
-You should have a section that looks like this:+
 \\  \\ 
-    <Directory /+<file> 
-        Options FollowSymLinks +<VirtualHost *:80
-        AllowOverride All +        # The ServerName directive sets the request scheme, hostname and port that 
-    </Directory> +        # the server uses to identify itself. This is used when creating 
-    <Directory /home/pi/docuwiki> +        # redirection URLs. In the context of virtual hosts, the ServerName 
-        Options Indexes FollowSymLinks MultiViews +        # specifies what hostname must appear in the request's Host: header to 
-        AllowOverride All +        # match this virtual host. For the default virtual host (this file) this 
-        Order allow,deny +        # value is not decisive as it is used as a last resort host regardless. 
-        allow from al  +        # Howeveryou must set it for any further virtual host explicitly. 
-    </Directory+        #ServerName www.example.com 
-\\  + 
-        For some reason I also had to duplicate this in the following file+        ServerAdmin al@nwalker.co.uk 
-        /etc/apache2/sites-enabled/000-default.conf +        ServerName wiki.alanwalker.eu 
-        Change the DocumentRoot line to /home/pi/dokuwiki+        DocumentRoot /home/pi/dokuwiki 
 +        DirectoryIndex doku.php 
 +</VirtualHost
 + 
 +        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, 
 +        # error, crit, alert, emerg. 
 +        # It is also possible to configure the loglevel for particular 
 +        # modules, e.g. 
 +        #LogLevel info ssl:warn 
 + 
 +        ErrorLog ${APACHE_LOG_DIR}/error.log 
 +        CustomLog ${APACHE_LOG_DIR}/access.log combined 
 + 
 +        # For most configuration files from conf-available/, which are 
 +        # enabled or disabled at a global level, it is possible to 
 +        # include a line for only one particular virtual host. For example the 
 +        # following line enables the CGI configuration for this host only 
 +        # after it has been globally disabled with "a2disconf"
 +        #Include conf-available/serve-cgi-bin.conf 
 + 
 +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet 
 +</file>
 \\  \\ 
         Don't forget to restart Apache before testing these changes\\          Don't forget to restart Apache before testing these changes\\ 
Line 122: Line 141:
 \\  \\ 
 \\  \\ 
-{DOCUMENT_ROOT}/conf/ is not writable by DokuWiki. You need to fix the permission settings of this directory! +    {DOCUMENT_ROOT}/conf/ is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/pages is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/pages is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/attic is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/attic is not writable by DokuWiki. You need to fix the permission settings of this     directory! 
-•{DOCUMENT_ROOT}/data/media is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/media is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/media_attic is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/media_attic is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/media_meta is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/media_meta is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/meta is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/meta is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/cache is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/cache is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/locks is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/locks is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/index is not writable by DokuWiki. You need to fix the permission settings of this directory! +    •{DOCUMENT_ROOT}/data/index is not writable by DokuWiki. You need to fix the permission settings of this directory! 
-•{DOCUMENT_ROOT}/data/tmp is not writable by DokuWiki. You need to fix the permission settings of this directory!+    •{DOCUMENT_ROOT}/data/tmp is not writable by DokuWiki. You need to fix the permission settings of this directory!
 \\  \\ 
 \\  \\ 
dokuwikipi_-_host_your_own_wiki_site_like_this_one.1469458878.txt.gz · Last modified: 2023/03/09 22:35 (external edit)