DokuWiki

It's better when it's simple

User Tools

Site Tools


install:ubuntu

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
Next revisionBoth sides next revision
install:ubuntu [2017-10-27 10:49] – Link to the debian page for install from DEB package 134.100.101.1install:ubuntu [2020-01-02 04:33] neoporcupine
Line 1: Line 1:
-===== Installation =====+====== Installation DokuWiki under Ubuntu ======
  
 These are instructions on how to install a single DokuWiki under Ubuntu 14.04. Other version installations are discussed below. If you want to install a DokuWiki Farm, follow these instructions and then visit the [[:farms|Farm Page]]. These are instructions on how to install a single DokuWiki under Ubuntu 14.04. Other version installations are discussed below. If you want to install a DokuWiki Farm, follow these instructions and then visit the [[:farms|Farm Page]].
Line 13: Line 13:
   * apt-get install php7.0-xml   * apt-get install php7.0-xml
  
-This resolved all the issues restoring Dokuwiki back to normal prior to the upgrades.+This resolved all the issues restoring DokuWiki back to normal prior to the upgrades.
  
   - Install Ubuntu Server 14.04 [[http://askubuntu.com/questions/340965/how-do-i-install-ubuntu-server-step-by-step|Step by step instructions with screenshots]]   - Install Ubuntu Server 14.04 [[http://askubuntu.com/questions/340965/how-do-i-install-ubuntu-server-step-by-step|Step by step instructions with screenshots]]
Line 45: Line 45:
  
 ===== Additional Installation Information ===== ===== Additional Installation Information =====
-For more information on installing and configuring Dokuwiki on Ubuntu, see [[debian_ubuntu_extras]]. 
  
-====== Apache configuration for running DokuWiki in ~/public_html ======+For more information on installing and configuring DokuWiki on Ubuntu, see [[debian_ubuntu_extras]]. 
 + 
 +===== Apache configuration for running DokuWiki in ~/public_html =====
  
 This works with Ubuntu 11.04 natty: This works with Ubuntu 11.04 natty:
Line 59: Line 60:
   - Restart //apache// with<code bash>sudo service apache2 restart</code>   - Restart //apache// with<code bash>sudo service apache2 restart</code>
  
- +===== Ubuntu Server 14.04 and lighttpd =====
-======Ubuntu Server 14.04 and lighttpd ======+
  
   - Install lighttpd and php. <code bash>   - Install lighttpd and php. <code bash>
Line 76: Line 76:
 sudo /etc/init.d/lighttpd force-reload sudo /etc/init.d/lighttpd force-reload
 </code> </code>
-  - That's it. Enjoy your own DokuWiki server. (Test if it works on your http://localhost/dokuwiki)+  - That's it. Enjoy your own DokuWiki server. (Test if it works on your %%http://localhost/dokuwiki%%) 
 + 
 +===== Installation of DokuWiki using apt-get ===== 
 + 
 +<code>apt list dokuwiki</code> 
 +Check the date, if the date is over a couple months then I would highly recommend stopping here and trying the above methods for installation. 
 +<file>dokuwiki/eoan,now 0.0.20180422.a-2 all [residual-config]</file> 
 +If you insist on using the above package then the steps below will assist getting your installation operational. 
 + 
 +Note: 
 +  - As of 2020-01-02 the package is dated **2018-04-22** which is quite out of date. 
 +  - I am concerned that: 
 +    - more items in /var/lib/dokuwiki/ might be required in /usr/share/dokuwiki 
 +    - more items in /etc/dokuwiki/ might be required in /usr/share/dokuwiki 
 +  - Initially there are a number of PHP warnings that appear to pop up occasionally when first exploring the wiki, however they seem to go away and not return (often). These issues are documented on the DokuWiki web site, and claim to be fixed, likely the issues will go away after the DokuWiki install package gets updated. 
 + 
 +Assuming that you have already installed apache and PHP (see above) and they are operating correctly. 
 + 
 +The following commands will require **sudo** prefix or require you to be **su** (naughty).  
 +<code>sudo apt install dokuwiki</code> 
 + 
 +Folders of interest 
 +  * /etc/dokuwiki/ 
 +  * /usr/share/dokuwiki/ 
 +  * /var/lib/dokuwiki/ 
 + 
 +The apt package has number of problems which you will need to address: 
 +<code>chown www-data:www-data /usr/share/dokuwiki 
 +chown www-data:www-data /usr/share/dokuwiki/* -R 
 +chown www-data:www-data /usr/share/dokuwiki/.* -R 
 +chown www-data:www-data /var/lib/dokuwiki 
 +chown www-data:www-data /var/lib/dokuwiki/* -R 
 +chown www-data:www-data /var/lib/dokuwiki/.* -R 
 +ln -s /var/lib/dokuwiki/data /usr/share/dokuwiki/data 
 +ln -s /etc/dokuwiki/license.php /usr/share/dokuwiki/conf/license.php</code> 
 + 
 +Create virtual directory for apache 
 +<code>nano /etc/apache2/sites-available/dokuwiki.conf</code> 
 +<file>Alias /dokuwiki /usr/share/dokuwiki 
 +<Directory /usr/share/dokuwiki> 
 +        Options +FollowSymLinks 
 +        AllowOverride All 
 +        DirectoryIndex index.php 
 +        Order allow,deny 
 +        Allow from all 
 +</Directory> 
 +AliasMatch ^/dokuwiki/sites/[^/]+$      /usr/share/dokuwiki/ 
 +AliasMatch ^/dokuwiki/sites/[^/]+/(.*)$ /usr/share/dokuwiki/$1</file> 
 + 
 +Tell apache to enable the virtual folder (Note: use a2dissite to disable).  
 +<code>a2ensite dokuwiki 
 +systemctl reload apache2</code>
  
 +Open your web browser and configure DokuWiki (You will likely get warnings if you have PHP 7.x).
 +<code>http://mysite.dyndns.org/dokuwiki/install.php</code>
install/ubuntu.txt · Last modified: 2024-01-19 15:49 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki