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/23 20:35] walkeradmindokuwikipi_-_host_your_own_wiki_site_like_this_one [2023/03/10 16:56] (current) walkeradmin
Line 1: Line 1:
-these are rough notes, this page will be formatted and checked soon...... +====== DokuWiki Install ======
- +
- +
-===== DokuWiki Install =====+
 \\  \\ 
 \\  \\ 
Line 64: Line 61:
 \\  \\ 
 //**/home/pi/dokuwiki**// //**/home/pi/dokuwiki**//
 +\\ 
 \\  \\ 
 \\  \\ 
 ==== Setup Apache Security ==== ==== Setup Apache Security ====
 \\  \\ 
-\\ You can skip this step if you are only using your wiki internally. But if it will be on the internet, this is a must.+You can skip this step if you are only using your wiki internally. But if it will be on the internet, this is a must.
 \\  \\ 
 \\  \\ 
Line 75: 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\\  +
-</Directory>\\ +
 \\  \\ 
-        ENSURE TO CHANGE AllowOverride to All (default) is none +<file> 
-\\ +<Directory /home/pi/dokuwiki> 
-\\ +    Options Indexes FollowSymLinks 
-You should have a section that looks like this:+    AllowOverride All 
 +    Require all granted 
 +</Directory> 
 +</file>
 \\  \\ 
-<Directory />\\  
-       Options FollowSymLinks\\  
-       AllowOverride All\\  
-</Directory>\\  
-<Directory /home/pi/docuwiki>\\  
-        Options Indexes FollowSymLinks MultiViews\\  
-        AllowOverride All\\  
-        Order allow,deny\\  
-        allow from all\\  
-</Directory>\\  
 \\  \\ 
 +        Now edit the following file:
 +        /etc/apache2/sites-enabled/000-default.conf
 \\  \\ 
 +<file>
 +<VirtualHost *:80>
 +        # The ServerName directive sets the request scheme, hostname and port that
 +        # the server uses to identify itself. This is used when creating
 +        # redirection URLs. In the context of virtual hosts, the ServerName
 +        # specifies what hostname must appear in the request's Host: header to
 +        # match this virtual host. For the default virtual host (this file) this
 +        # value is not decisive as it is used as a last resort host regardless.
 +        # However, you must set it for any further virtual host explicitly.
 +        #ServerName www.example.com
  
-edit /etc/apache2/sites-enabled/000-default.conf+        ServerAdmin al@nwalker.co.uk 
 +        ServerName wiki.alanwalker.eu 
 +        DocumentRoot /home/pi/dokuwiki 
 +        DirectoryIndex doku.php 
 +</VirtualHost>
  
-add +        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, 
-DocumentRoot /home/pi/dokuwiki  +        # error, crit, alert, emerg. 
-rem out the original DocumentRoot+        It is also possible to configure the loglevel for particular 
 +        # modules, e.g. 
 +        #LogLevel info ssl:warn
  
-restart apache2 sudo /etc/init.d/apache2 restart+        ErrorLog ${APACHE_LOG_DIR}/error.log 
 +        CustomLog ${APACHE_LOG_DIR}/access.log combined
  
-chmod the following folders:+        # 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
  
-chmod -R 777  +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet 
- +</file> 
-{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! +        Don't forget to restart Apache before testing these changes\\  
-•{DOCUMENT_ROOT}/data/pages is not writable by DokuWiki. You need to fix the permission settings of this directory! +        sudo /etc/init.d/apache2 restart 
-•{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_attic is not writable by DokuWiki. You need to fix the permission settings of this directory! +        To test the Apache settings, navigate to the following page: 
-•{DOCUMENT_ROOT}/data/media_meta is not writable by DokuWiki. You need to fix the permission settings of this directory! +        http://yourserver.com/data/pages/wiki/dokuwiki.txt 
-•{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/locks is not writable by DokuWiki. You need to fix the permission settings of this directory! +If you see the page, then your security is not right, if you get an access error, then the apache security is working. 
-•{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! +\\  
- +Now you can navigate to your IP Address, and you should see an error, with a link that says to run the installer, click this link 
-        what about this? +\\  
- +\\  
-Options Indexes FollowSymLinks +You will see some errors regarding folder access 
-AllowOverride None +\\  
-Require all granted+\\  
 +    {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/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/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_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/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/tmp is not writable by DokuWiki. You need to fix the permission settings of this directory! 
 +\\  
 +\\  
 +You have to chmod each of these folders, it is good practice to work out the exact permissions required, but for testing purposes you can give all rights which is 777 
 +\\  
 +\\  
 +        So for the first error, {DOCUMENT_ROOT}/conf/ is not writable by DokuWiki 
 +        chmod -R 777 /conf 
  
 +        You need to repeat this for each line.
 +\\
 +\\
 +Click the //**Restart installer**// button, and if you see the setup page then you are ready to roll :)
 +\\ 
 +\\ 
 +    DONT FORGET TO RUN THE MYSQL SECURE INSTALLATION
 +    [[http://wiki.alanwalker.eu/doku.php?id=run_security_after_install]]
 +\\ 
 +\\ 
dokuwikipi_-_host_your_own_wiki_site_like_this_one.1469302535.txt.gz · Last modified: 2023/03/09 22:35 (external edit)