CINXE.COM

install:ubuntu [DokuWiki]

<!DOCTYPE html> <html lang="en" dir="ltr" class="no-js"> <head> <meta charset="utf-8" /> <title>install:ubuntu [DokuWiki]</title> <meta name="generator" content="DokuWiki"/> <meta name="theme-color" content="#008800"/> <meta name="robots" content="index,follow"/> <meta name="keywords" content="install,ubuntu"/> <link rel="search" type="application/opensearchdescription+xml" href="/lib/exe/opensearch.php" title="DokuWiki"/> <link rel="start" href="/"/> <link rel="contents" href="/install:ubuntu?do=index" title="Sitemap"/> <link rel="manifest" href="/lib/exe/manifest.php"/> <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/feed.php"/> <link rel="alternate" type="application/rss+xml" title="Current namespace" href="/feed.php?mode=list&amp;ns=install"/> <link rel="edit" title="Edit this page" href="/install:ubuntu?do=edit"/> <link rel="alternate" type="text/html" title="Plain HTML" href="/_export/xhtml/install:ubuntu"/> <link rel="alternate" type="text/plain" title="Wiki Markup" href="/_export/raw/install:ubuntu"/> <link rel="canonical" href="https://www.dokuwiki.org/install:ubuntu"/> <link rel="stylesheet" href="/lib/exe/css.php?t=dokuwiki&amp;tseed=826e08a6afc6f3af33bf3037d5fc6458"/> <link rel="alternate" hreflang="de" href="https://www.dokuwiki.org/de:install:ubuntu"/> <link rel="alternate" hreflang="ru" href="https://www.dokuwiki.org/ru:install:ubuntu"/> <link rel="alternate" hreflang="zh" href="https://www.dokuwiki.org/zh:install:ubuntu"/> <link rel="alternate" hreflang="x-default" href="https://www.dokuwiki.org/install:ubuntu"/> <script >var NS='install';var JSINFO = {"plugins":{"edittable":{"default columnwidth":""}},"id":"install:ubuntu","namespace":"install","ACT":"show","useHeadingNavigation":0,"useHeadingContent":0};(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js" defer="defer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" defer="defer"></script> <script src="/lib/exe/js.php?t=dokuwiki&amp;tseed=826e08a6afc6f3af33bf3037d5fc6458&amp;lang=en" defer="defer"></script> <meta name="viewport" content="width=device-width,initial-scale=1" /> <link rel="shortcut icon" href="/lib/tpl/dokuwiki/images/favicon.ico" /> <link rel="apple-touch-icon" href="/lib/tpl/dokuwiki/images/apple-touch-icon.png" /> <meta name="verify-v1" content="OVxl3gsCv2MhZqh1cBQyl0JytWXSwXMjyvwc+4w3WtA=" /> <meta name="google-site-verification" content="YhTVK69hW94ZXUtc2zSLPxTkZKbZIn0zK67mz5WQB-E" /> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-83791-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-83791-1', { 'anonymize_ip': true }); </script> </head> <body> <div id="dokuwiki__site"><div id="dokuwiki__top" class="site dokuwiki mode_show tpl_dokuwiki showSidebar hasSidebar"> <!-- ********** HEADER ********** --> <header id="dokuwiki__header"><div class="pad group"> <div class="headings group"> <ul class="a11y skip"> <li><a href="#dokuwiki__content">skip to content</a></li> </ul> <h1 class="logo"><a href="/start" accesskey="h" title="Home [h]"><img src="/lib/tpl/dokuwiki/images/logo.png" width="64" height="64" alt="" /><span>DokuWiki</span></a></h1> <p class="claim">It's better when it's simple</p> </div> <div class="tools group"> <!-- USER TOOLS --> <div id="dokuwiki__usertools"> <h3 class="a11y">User Tools</h3> <ul> <li class="action login"><a href="/install:ubuntu?do=login&amp;sectok=" title="Log In" rel="nofollow"><span>Log In</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 17.25V14H3v-4h7V6.75L15.25 12 10 17.25M8 2h9a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-4h2v4h9V4H8v4H6V4a2 2 0 0 1 2-2z"/></svg></a></li> </ul> </div> <!-- SITE TOOLS --> <div id="dokuwiki__sitetools"> <h3 class="a11y">Site Tools</h3> <form action="/start" method="get" role="search" class="search doku_form" id="dw__search" accept-charset="utf-8"><input type="hidden" name="do" value="search" /><input type="hidden" name="id" value="install:ubuntu" /><div class="no"><input name="q" type="text" class="edit" title="[F]" accesskey="f" placeholder="Search" autocomplete="on" id="qsearch__in" value="" /><button value="1" type="submit" title="Search">Search</button><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form> <div class="mobileTools"> <form action="/doku.php" method="get" accept-charset="utf-8"><div class="no"><input type="hidden" name="id" value="install:ubuntu" /><select name="do" class="edit quickselect" title="Tools"><option value="">Tools</option><optgroup label="Page Tools"><option value="edit">Edit this page</option><option value="revisions">Old revisions</option><option value="backlink">Backlinks</option></optgroup><optgroup label="Site Tools"><option value="recent">Recent Changes</option><option value="media">Media Manager</option><option value="index">Sitemap</option></optgroup><optgroup label="User Tools"><option value="login">Log In</option></optgroup></select><button type="submit">&gt;</button></div></form> </div> <ul> <li class="action recent"><a href="/install:ubuntu?do=recent" title="Recent Changes [r]" rel="nofollow" accesskey="r">Recent Changes</a></li><li class="action media"><a href="/install:ubuntu?do=media&amp;ns=install" title="Media Manager" rel="nofollow">Media Manager</a></li><li class="action index"><a href="/install:ubuntu?do=index" title="Sitemap [x]" rel="nofollow" accesskey="x">Sitemap</a></li> </ul> </div> </div> <!-- BREADCRUMBS --> <div class="breadcrumbs"> <div class="trace"><span class="bchead">Trace:</span> <span class="bcsep">•</span> <span class="curid"><bdi><a href="/install:ubuntu" class="breadcrumbs" title="install:ubuntu">ubuntu</a></bdi></span></div> </div> <hr class="a11y" /> </div></header><!-- /header --> <div class="wrapper group"> <!-- ********** ASIDE ********** --> <nav id="dokuwiki__aside" aria-label="Sidebar"><div class="pad aside include group"> <h3 class="toggle">Sidebar</h3> <div class="content"><div class="group"> <div class="plugin_translation is-dropdown"><span class="title">Translations of this page<sup><a href="/localization" class="wikilink1" title="localization" data-wiki-id="localization">?</a></sup>: </span><ul><li class="span"><span class="wikilink1" title="English">English (en)</span></li><li class="a"><a class="wikilink2" title="|العربية" href="/ar:install:ubuntu">|العربية (ar)</a></li><li class="a"><a class="wikilink2" title="Català" href="/ca:install:ubuntu">Català (ca)</a></li><li class="a"><a class="wikilink2" title="Česky" href="/cs:install:ubuntu">Česky (cs)</a></li><li class="a"><a class="wikilink2" title="Dansk" href="/da:install:ubuntu">Dansk (da)</a></li><li class="a"><a class="wikilink1" title="Deutsch" href="/de:install:ubuntu">Deutsch (de)</a></li><li class="a"><a class="wikilink2" title="Ελληνικά" href="/el:install:ubuntu">Ελληνικά (el)</a></li><li class="a"><a class="wikilink2" title="Esperanto" href="/eo:install:ubuntu">Esperanto (eo)</a></li><li class="a"><a class="wikilink2" title="Español" href="/es:install:ubuntu">Español (es)</a></li><li class="a"><a class="wikilink2" title="فارسی" href="/fa:install:ubuntu">فارسی (fa)</a></li><li class="a"><a class="wikilink2" title="Français" href="/fr:install:ubuntu">Français (fr)</a></li><li class="a"><a class="wikilink2" title="עברית" href="/he:install:ubuntu">עברית (he)</a></li><li class="a"><a class="wikilink2" title="Magyar" href="/hu:install:ubuntu">Magyar (hu)</a></li><li class="a"><a class="wikilink2" title="Italiano" href="/it:install:ubuntu">Italiano (it)</a></li><li class="a"><a class="wikilink2" title="日本語" href="/ja:install:ubuntu">日本語 (ja)</a></li><li class="a"><a class="wikilink2" title="한국어" href="/ko:install:ubuntu">한국어 (ko)</a></li><li class="a"><a class="wikilink2" title="Lietuvių Kalba" href="/lt:install:ubuntu">Lietuvių Kalba (lt)</a></li><li class="a"><a class="wikilink2" title="Nederlands" href="/nl:install:ubuntu">Nederlands (nl)</a></li><li class="a"><a class="wikilink2" title="Norsk" href="/no:install:ubuntu">Norsk (no)</a></li><li class="a"><a class="wikilink2" title="Polski" href="/pl:install:ubuntu">Polski (pl)</a></li><li class="a"><a class="wikilink2" title="Português" href="/pt-br:install:ubuntu">Português (pt-br)</a></li><li class="a"><a class="wikilink2" title="Română" href="/ro:install:ubuntu">Română (ro)</a></li><li class="a"><a class="wikilink1" title="Русский" href="/ru:install:ubuntu">Русский (ru)</a></li><li class="a"><a class="wikilink2" title="Српски Језик" href="/sr:install:ubuntu">Српски Језик (sr)</a></li><li class="a"><a class="wikilink2" title="Svenska" href="/sv:install:ubuntu">Svenska (sv)</a></li><li class="a"><a class="wikilink2" title="ไทย" href="/th:install:ubuntu">ไทย (th)</a></li><li class="a"><a class="wikilink2" title="Українська" href="/uk:install:ubuntu">Українська (uk)</a></li><li class="a"><a class="wikilink1" title="中文" href="/zh:install:ubuntu">中文 (zh)</a></li><li class="a"><a class="wikilink2" title="繁體中文" href="/zh-tw:install:ubuntu">繁體中文 (zh-tw)</a></li></ul></div> <p> <strong>Learn about DokuWiki</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/features" class="wikilink1" title="features" data-wiki-id="features">Features</a> &amp; <a href="/blogroll" class="wikilink1" title="blogroll" data-wiki-id="blogroll">reviews</a> </div> </li> <li class="level1"><div class="li"> <a href="/install" class="wikilink1" title="install" data-wiki-id="install">Installation guide</a></div> </li> <li class="level1"><div class="li"> <a href="/manual" class="wikilink1" title="manual" data-wiki-id="manual">User manual</a> &amp; <a href="/wiki:syntax" class="wikilink1" title="wiki:syntax" data-wiki-id="wiki:syntax">syntax</a></div> </li> <li class="level1"><div class="li"> <a href="/changes" class="wikilink1" title="changes" data-wiki-id="changes">Release notes</a></div> </li> <li class="level1"><div class="li"> <a href="/faq" class="wikilink1" title="faq" data-wiki-id="faq">FAQ</a></div> </li> </ul> <p> <strong>Advanced Use</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/extensions" class="wikilink1" title="extensions" data-wiki-id="extensions">Extensions</a></div> </li> <li class="level1"><div class="li"> <a href="/development" class="wikilink1" title="development" data-wiki-id="development">Development manual</a></div> </li> </ul> <p> <strong>Corporate Use</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/faq:support" class="wikilink1" title="faq:support" data-wiki-id="faq:support">Get support</a></div> </li> <li class="level1"><div class="li"> <a href="/donate" class="wikilink1" title="donate" data-wiki-id="donate">Donations</a></div> </li> </ul> <p> <strong>Our Community</strong> </p> <ul> <li class="level1"><div class="li"> <a href="/teams:getting_involved" class="wikilink1" title="teams:getting_involved" data-wiki-id="teams:getting_involved">Get involved</a></div> </li> <li class="level1"><div class="li"> <a href="/dokuinstall" class="wikilink1" title="dokuinstall" data-wiki-id="dokuinstall">Users</a></div> </li> <li class="level1"><div class="li"> <a href="http://forum.dokuwiki.org" class="urlextern" title="http://forum.dokuwiki.org">User forum</a></div> </li> <li class="level1"><div class="li"> <a href="/mailinglist" class="wikilink1" title="mailinglist" data-wiki-id="mailinglist">Development mailinglist</a></div> </li> </ul> <hr /> <p> Follow us on <a href="https://phpc.social/@dokuwiki" class="urlextern" title="https://phpc.social/@dokuwiki">Mastodon</a> and other <a href="/social" class="wikilink1" title="social" data-wiki-id="social">social networks</a>. </p> <p> <a href="/privacy" class="wikilink1" title="privacy" data-wiki-id="privacy">Our Privacy Policy</a> </p> </div></div> </div></nav><!-- /aside --> <!-- ********** CONTENT ********** --> <main id="dokuwiki__content"><div class="pad group"> <div class="pageId"><span>install:ubuntu</span></div> <div class="page group"> <!-- wikipage start --> <!-- TOC START --> <div id="dw__toc" class="dw__toc"> <h3 class="toggle">Table of Contents</h3> <div> <ul class="toc"> <li class="level1"><div class="li"><a href="#installation_dokuwiki_under_ubuntu">Installation DokuWiki under Ubuntu</a></div> <ul class="toc"> <li class="level2"><div class="li"><a href="#ubuntu_1404_and_1604">Ubuntu 14.04, and 16.04?</a></div></li> <li class="level2"><div class="li"><a href="#additional_installation_information">Additional Installation Information</a></div></li> <li class="level2"><div class="li"><a href="#apache_configuration_for_running_dokuwiki_in_public_html">Apache configuration for running DokuWiki in ~/public_html</a></div></li> <li class="level2"><div class="li"><a href="#ubuntu_server_1404_and_lighttpd">Ubuntu Server 14.04 and lighttpd</a></div></li> <li class="level2"><div class="li"><a href="#installation_of_dokuwiki_using_apt-get">Installation of DokuWiki using apt-get</a></div></li> </ul></li> </ul> </div> </div> <!-- TOC END --> <h1 class="sectionedit1" id="installation_dokuwiki_under_ubuntu">Installation DokuWiki under Ubuntu</h1> <div class="level1"> <p> <strong>Please note</strong> The repository of Ubuntu has still the 2018-04-22 version of DokuWiki. This version is not recommended. Please install the newest version of DokuWiki. The instruction below uses a version downloaded directly from dokuwiki.org. </p> <ul> <li class="level1"><div class="li"> <a href="/install:ubuntu:ubuntu_18.04_nginx" class="wikilink1" title="install:ubuntu:ubuntu_18.04_nginx" data-wiki-id="install:ubuntu:ubuntu_18.04_nginx"> Ubuntu 18.04 + Nginx</a> </div> </li> </ul> <hr /> </div> <div class="secedit editbutton_section editbutton_1"><form class="button btn_secedit" method="post" action="/install:ubuntu"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="1705675769" /><input type="hidden" name="summary" value="[Installation DokuWiki under Ubuntu] " /><input type="hidden" name="target" value="section" /><input type="hidden" name="hid" value="installation_dokuwiki_under_ubuntu" /><input type="hidden" name="codeblockOffset" value="0" /><input type="hidden" name="range" value="1-372" /><button type="submit" title="Installation DokuWiki under Ubuntu">Edit</button></div></form></div> <h2 class="sectionedit2" id="ubuntu_1404_and_1604">Ubuntu 14.04, and 16.04?</h2> <div class="level2"> <p> 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 <a href="/farms" class="wikilink1" title="farms" data-wiki-id="farms">Farm Page</a>. </p> <p> Please note that there is a dokuwiki package in the Ubuntu repositories. If you want to use it, please see the <a href="/install:debian" class="wikilink1" title="install:debian" data-wiki-id="install:debian">Debian install page</a> instead. This article describes the installation of DokuWiki from a tarball. (The Ubuntu and Debian packages follow the Debian directory conventions and that is why different steps are needed when using the Ubuntu/Debian package). </p> <p> <img src="/lib/images/smileys/exclaim.svg" class="icon smiley" alt=":!:" /> <strong>For Ubuntu 16.04</strong> you will want to use libapache2-mod-php7.0 and make sure to install php7.0-xml, php7.0 with apt-get </p> <p> Upgrading from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS I had to add the following: </p> <ul> <li class="level1"><div class="li"> apt-get install php7.0</div> </li> <li class="level1"><div class="li"> apt-get install php-mbstring</div> </li> <li class="level1"><div class="li"> apt-get install php7.0-xml</div> </li> </ul> <p> This resolved all the issues restoring DokuWiki back to normal prior to the upgrades. </p> <ol> <li class="level1"><div class="li"> Install Ubuntu Server 14.04 <a href="http://askubuntu.com/questions/340965/how-do-i-install-ubuntu-server-step-by-step" class="urlextern" title="http://askubuntu.com/questions/340965/how-do-i-install-ubuntu-server-step-by-step">Step by step instructions with screenshots</a></div> </li> <li class="level1"><div class="li"> Update &amp; Upgrade Ubuntu.<pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">apt-get update</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">sudo</span> <span class="kw2">apt-get upgrade</span></pre> </div> </li> <li class="level1"><div class="li"> Install Apache2 and PHP.<pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">apt-get install</span> apache2 libapache2-mod-php php-xml</pre> </div> </li> <li class="level1"><div class="li"> Enable Apache Rewrite module.<pre class="code bash"><span class="kw2">sudo</span> a2enmod rewrite</pre> </div> </li> <li class="level1"><div class="li"> Download and uncompress the latest stable release.<pre class="code bash"><span class="kw3">cd</span> <span class="sy0">/</span>var<span class="sy0">/</span>www <span class="kw2">sudo</span> <span class="kw2">wget</span> https:<span class="sy0">//</span>download.dokuwiki.org<span class="sy0">/</span>src<span class="sy0">/</span>dokuwiki<span class="sy0">/</span>dokuwiki-stable.tgz <span class="kw2">sudo</span> <span class="kw2">tar</span> xvf dokuwiki-stable.tgz <span class="kw2">sudo</span> <span class="kw2">mv</span> dokuwiki-<span class="sy0">*/</span> dokuwiki</pre> </div> </li> <li class="level1"><div class="li"> Change permissions.<pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">chown</span> <span class="re5">-R</span> www-data:www-data <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>dokuwiki</pre> </div> </li> <li class="level1 node"><div class="li"> Change document root in Apache to point to /var/www/dokuwiki<pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">nano</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>sites-enabled<span class="sy0">/</span>000<span class="sy0">*</span>.conf</pre> <p> Replace<br/> <code>DocumentRoot /var/www/html</code><br/> with<br/> <code>DocumentRoot /var/www/dokuwiki</code> </p> </div> <ol> <li class="level2"><div class="li"> If you want to host a DokuWiki server on localhost for testing purposes do NOT change the content of <code>/etc/apache2/sites-enabled/000*.conf</code>, instead create a new file in <br/> <code>/etc/apache2/sites-available</code><br/> with <pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">touch</span> apache2-dokuwiki.conf</pre> <p> with the following content: </p> <pre class="code bash"><span class="sy0">&lt;</span>VirtualHost 127.0.0.1<span class="sy0">&gt;</span> DocumentRoot <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>dokuwiki ServerName localhost <span class="sy0">&lt;/</span>VirtualHost<span class="sy0">&gt;</span></pre> </div> </li> <li class="level2"><div class="li"> enable the new project by placing it into /etc/apache2/sites-enabled with <pre class="code bash"><span class="kw2">sudo</span> a2ensite apache2-dokuwiki</pre> </div> </li> <li class="level2"><div class="li"> and then reload apache2 service<pre class="code bash"><span class="kw2">sudo</span> service apache2 reload</pre> </div> </li> </ol> </li> <li class="level1 node"><div class="li"> Change AllowOverrides setting in Apache2 to use .htaccess files for security.<pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">nano</span> <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>apache2.conf</pre> </div> <ol> <li class="level2"><div class="li"> For directory <code>/var/www/</code> replace<br/> <code>AllowOverride None</code><br/> with<br/> <code>AllowOverride All</code></div> </li> </ol> </li> <li class="level1"><div class="li"> Restart Apache2 service.<pre class="code bash"><span class="kw2">sudo</span> service apache2 restart</pre> </div> </li> <li class="level1 node"><div class="li"> Visit <code><a href="http://IP-address-of-your-server/install.php" class="urlextern" title="http://IP-address-of-your-server/install.php">http://IP-address-of-your-server/install.php</a></code> to initially configure your DokuWiki.</div> <ol> <li class="level2"><div class="li"> If you decided to host DokuWiki on localhost for testing purposes from point 7a-c, visit <code>127.0.0.1/install.php</code></div> </li> </ol> </li> <li class="level1"><div class="li"> Delete the install.php file after finished installing.<pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">rm</span> <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>dokuwiki<span class="sy0">/</span>install.php</pre> </div> </li> <li class="level1"><div class="li"> Needed for sending email (e.g. user registration): install sendmail program, e.g. postfix <pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">apt-get install</span> postfix</pre> <p> and configure appropriately </p> </div> </li> <li class="level1"><div class="li"> Enjoy your own DokuWiki server.</div> </li> </ol> </div> <div class="secedit editbutton_section editbutton_2"><form class="button btn_secedit" method="post" action="/install:ubuntu"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="1705675769" /><input type="hidden" name="summary" value="[Ubuntu 14.04, and 16.04?] " /><input type="hidden" name="target" value="section" /><input type="hidden" name="hid" value="ubuntu_1404_and_1604" /><input type="hidden" name="codeblockOffset" value="0" /><input type="hidden" name="range" value="373-3844" /><button type="submit" title="Ubuntu 14.04, and 16.04?">Edit</button></div></form></div> <h2 class="sectionedit3" id="additional_installation_information">Additional Installation Information</h2> <div class="level2"> <p> For more information on installing and configuring DokuWiki on Ubuntu, see <a href="/install:debian_ubuntu_extras" class="wikilink1" title="install:debian_ubuntu_extras" data-wiki-id="install:debian_ubuntu_extras">debian_ubuntu_extras</a>. </p> </div> <div class="secedit editbutton_section editbutton_3"><form class="button btn_secedit" method="post" action="/install:ubuntu"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="1705675769" /><input type="hidden" name="summary" value="[Additional Installation Information] " /><input type="hidden" name="target" value="section" /><input type="hidden" name="hid" value="additional_installation_information" /><input type="hidden" name="codeblockOffset" value="14" /><input type="hidden" name="range" value="3845-3995" /><button type="submit" title="Additional Installation Information">Edit</button></div></form></div> <h2 class="sectionedit4" id="apache_configuration_for_running_dokuwiki_in_public_html">Apache configuration for running DokuWiki in ~/public_html</h2> <div class="level2"> <p> This works with Ubuntu 11.04 natty: </p> <ol> <li class="level1"><div class="li"> Install <em>apache2</em> and the <em>php5</em> module:<pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">apt-get install</span> apache2 libapache2-mod-php5</pre> </div> </li> <li class="level1"><div class="li"> Enable the <em>userdir</em> and <em>rewrite</em> modules:<pre class="code bash"><span class="kw2">sudo</span> a2enmod userdir <span class="kw2">sudo</span> a2enmod rewrite</pre> </div> </li> <li class="level1"><div class="li"> To make your <code>.htaccess</code> work, edit <code>/etc/apache2/mods-enabled/userdir.conf</code> and change the <code>AllowOverride</code> directive to <code>All</code><sup><a href="#fn__1" id="fnt__1" class="fn_top">1)</a></sup></div> </li> <li class="level1"><div class="li"> By default, php is disabled for user directories. To enable it, comment the lines as per instruction in <code>/etc/apache2/mods-enabled/php5.conf</code></div> </li> <li class="level1"><div class="li"> Restart <em>apache</em> with<pre class="code bash"><span class="kw2">sudo</span> service apache2 restart</pre> </div> </li> </ol> </div> <div class="secedit editbutton_section editbutton_4"><form class="button btn_secedit" method="post" action="/install:ubuntu"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="1705675769" /><input type="hidden" name="summary" value="[Apache configuration for running DokuWiki in ~/public_html] " /><input type="hidden" name="target" value="section" /><input type="hidden" name="hid" value="apache_configuration_for_running_dokuwiki_in_public_html" /><input type="hidden" name="codeblockOffset" value="14" /><input type="hidden" name="range" value="3996-4803" /><button type="submit" title="Apache configuration for running DokuWiki in ~/public_html">Edit</button></div></form></div> <h2 class="sectionedit5" id="ubuntu_server_1404_and_lighttpd">Ubuntu Server 14.04 and lighttpd</h2> <div class="level2"> <ol> <li class="level1"><div class="li"> Install lighttpd and php. <pre class="code bash"><span class="kw2">sudo</span> <span class="kw2">apt-get install</span> lighttpd <span class="kw2">sudo</span> <span class="kw2">apt-get install</span> php5-cgi </pre> </div> </li> <li class="level1"><div class="li"> Download dokuwiki, and place in www directory. Change file name appropriately as your downloaded file is placed and named. <pre class="code bash"><span class="kw2">tar</span> xvfz dokuwiki.tgz <span class="kw2">ls</span> <span class="re5">-l</span> <span class="kw2">sudo</span> <span class="kw2">cp</span> <span class="re5">-r</span> dokuwiki<span class="sy0">/</span> <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span> <span class="kw2">sudo</span> <span class="kw2">chown</span> <span class="re5">-R</span> www-data:www-data <span class="sy0">/</span>var<span class="sy0">/</span>www<span class="sy0">/</span>dokuwiki</pre> </div> </li> <li class="level1"><div class="li"> Configure lighttpd for php.<pre class="code bash"><span class="kw2">sudo</span> lighttpd-enable-mod fastcgi-php <span class="kw2">sudo</span> <span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>lighttpd force-reload</pre> </div> </li> <li class="level1"><div class="li"> That&#039;s it. Enjoy your own DokuWiki server. (Test if it works on your http://localhost/dokuwiki)</div> </li> </ol> </div> <div class="secedit editbutton_section editbutton_5"><form class="button btn_secedit" method="post" action="/install:ubuntu"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="1705675769" /><input type="hidden" name="summary" value="[Ubuntu Server 14.04 and lighttpd] " /><input type="hidden" name="target" value="section" /><input type="hidden" name="hid" value="ubuntu_server_1404_and_lighttpd" /><input type="hidden" name="codeblockOffset" value="17" /><input type="hidden" name="range" value="4804-5450" /><button type="submit" title="Ubuntu Server 14.04 and lighttpd">Edit</button></div></form></div> <h2 class="sectionedit6" id="installation_of_dokuwiki_using_apt-get">Installation of DokuWiki using apt-get</h2> <div class="level2"> <pre class="code">apt list dokuwiki</pre> <p> 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. </p> <pre class="file">dokuwiki/eoan,now 0.0.20180422.a-2 all [residual-config]</pre> <p> If you insist on using the above package then the steps below will assist getting your installation operational. </p> <p> Note: </p> <ol> <li class="level1"><div class="li"> As of 2020-01-02 the package is dated <strong>2018-04-22</strong> which is quite out of date.</div> </li> <li class="level1 node"><div class="li"> I am concerned that:</div> <ol> <li class="level2"><div class="li"> more items in /var/lib/dokuwiki/ might be required in /usr/share/dokuwiki</div> </li> <li class="level2"><div class="li"> more items in /etc/dokuwiki/ might be required in /usr/share/dokuwiki</div> </li> </ol> </li> <li class="level1"><div class="li"> 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.</div> </li> </ol> <p> Assuming that you have already installed apache and PHP (see above) and they are operating correctly. </p> <p> The following commands will require <strong>sudo</strong> prefix or require you to be <strong>su</strong> (naughty). </p> <pre class="code">sudo apt install dokuwiki</pre> <p> Folders of interest </p> <ul> <li class="level1"><div class="li"> /etc/dokuwiki/</div> </li> <li class="level1"><div class="li"> /usr/share/dokuwiki/</div> </li> <li class="level1"><div class="li"> /var/lib/dokuwiki/</div> </li> </ul> <p> The apt package has number of problems which you will need to address: </p> <pre class="code">chown www-data:www-data /usr/share/dokuwiki 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 ln -s /var/lib/dokuwiki/data /usr/share/dokuwiki/data ln -s /etc/dokuwiki/license.php /usr/share/dokuwiki/conf/license.php</pre> <p> Create virtual directory for apache </p> <pre class="code">nano /etc/apache2/sites-available/dokuwiki.conf</pre> <pre class="file">Alias /dokuwiki /usr/share/dokuwiki &lt;Directory /usr/share/dokuwiki&gt; Options +FollowSymLinks AllowOverride All DirectoryIndex index.php Order allow,deny Allow from all &lt;/Directory&gt; AliasMatch ^/dokuwiki/sites/[^/]+$ /usr/share/dokuwiki/ AliasMatch ^/dokuwiki/sites/[^/]+/(.*)$ /usr/share/dokuwiki/$1</pre> <p> Tell apache to enable the virtual folder (Note: use a2dissite to disable). </p> <pre class="code">a2ensite dokuwiki systemctl reload apache2</pre> <p> Open your web browser and configure DokuWiki (You will likely get warnings if you have PHP 7.x). </p> <pre class="code">http://mysite.dyndns.org/dokuwiki/install.php</pre> </div> <div class="secedit editbutton_section editbutton_6"><form class="button btn_secedit" method="post" action="/install:ubuntu"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="1705675769" /><input type="hidden" name="summary" value="[Installation of DokuWiki using apt-get] " /><input type="hidden" name="target" value="section" /><input type="hidden" name="hid" value="installation_of_dokuwiki_using_apt-get" /><input type="hidden" name="codeblockOffset" value="20" /><input type="hidden" name="range" value="5451-" /><button type="submit" title="Installation of DokuWiki using apt-get">Edit</button></div></form></div><div class="footnotes"> <div class="fn"><sup><a href="#fnt__1" id="fn__1" class="fn_bot">1)</a></sup> <div class="content"><img src="/lib/images/smileys/fixme.svg" class="icon smiley" alt="FIXME" />: someone with more apache savvy than me can probably suggest a “safer” setting for <code>AllowOverride</code></div></div> </div> <!-- wikipage stop --> </div> <div class="docInfo"><bdi>install/ubuntu.txt</bdi> · Last modified: 2024-01-19 15:49 by <bdi>Aleksandr</bdi></div> <hr class="a11y" /> </div></main><!-- /content --> <!-- PAGE ACTIONS --> <nav id="dokuwiki__pagetools" aria-labelledby="dokuwiki__pagetools__heading"> <h3 class="a11y" id="dokuwiki__pagetools__heading">Page Tools</h3> <div class="tools"> <ul> <li class="edit"><a href="/install:ubuntu?do=edit" title="Edit this page [e]" rel="nofollow" accesskey="e"><span>Edit this page</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg></a></li><li class="revs"><a href="/install:ubuntu?do=revisions" title="Old revisions [o]" rel="nofollow" accesskey="o"><span>Old revisions</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 7v5.11l4.71 2.79.79-1.28-4-2.37V7m0-5C8.97 2 5.91 3.92 4.27 6.77L2 4.5V11h6.5L5.75 8.25C6.96 5.73 9.5 4 12.5 4a7.5 7.5 0 0 1 7.5 7.5 7.5 7.5 0 0 1-7.5 7.5c-3.27 0-6.03-2.09-7.06-5h-2.1c1.1 4.03 4.77 7 9.16 7 5.24 0 9.5-4.25 9.5-9.5A9.5 9.5 0 0 0 12.5 2z"/></svg></a></li><li class="backlink"><a href="/install:ubuntu?do=backlink" title="Backlinks" rel="nofollow"><span>Backlinks</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.59 13.41c.41.39.41 1.03 0 1.42-.39.39-1.03.39-1.42 0a5.003 5.003 0 0 1 0-7.07l3.54-3.54a5.003 5.003 0 0 1 7.07 0 5.003 5.003 0 0 1 0 7.07l-1.49 1.49c.01-.82-.12-1.64-.4-2.42l.47-.48a2.982 2.982 0 0 0 0-4.24 2.982 2.982 0 0 0-4.24 0l-3.53 3.53a2.982 2.982 0 0 0 0 4.24m2.82-4.24c.39-.39 1.03-.39 1.42 0a5.003 5.003 0 0 1 0 7.07l-3.54 3.54a5.003 5.003 0 0 1-7.07 0 5.003 5.003 0 0 1 0-7.07l1.49-1.49c-.01.82.12 1.64.4 2.43l-.47.47a2.982 2.982 0 0 0 0 4.24 2.982 2.982 0 0 0 4.24 0l3.53-3.53a2.982 2.982 0 0 0 0-4.24.973.973 0 0 1 0-1.42z"/></svg></a></li><li class="top"><a href="#dokuwiki__top" title="Back to top [t]" rel="nofollow" accesskey="t"><span>Back to top</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12z"/></svg></a></li> </ul> </div> </nav> </div><!-- /wrapper --> <!-- ********** FOOTER ********** --> <footer id="dokuwiki__footer"><div class="pad"> <div class="license">Except where otherwise noted, content on this wiki is licensed under the following license: <bdi><a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en" rel="license" class="urlextern">CC Attribution-Share Alike 4.0 International</a></bdi></div> <div class="buttons"> <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en" rel="license"><img src="/lib/images/license/button/cc-by-sa.png" alt="CC Attribution-Share Alike 4.0 International" /></a> <a href="https://www.dokuwiki.org/donate" title="Donate" ><img src="/lib/tpl/dokuwiki/images/button-donate.gif" width="80" height="15" alt="Donate" /></a> <a href="https://php.net" title="Powered by PHP" ><img src="/lib/tpl/dokuwiki/images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a> <a href="//validator.w3.org/check/referer" title="Valid HTML5" ><img src="/lib/tpl/dokuwiki/images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a> <a href="//jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" ><img src="/lib/tpl/dokuwiki/images/button-css.png" width="80" height="15" alt="Valid CSS" /></a> <a href="https://dokuwiki.org/" title="Driven by DokuWiki" ><img src="/lib/tpl/dokuwiki/images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a> </div> <div style="margin-top: 2em; font-size:90%" class="dokuwiki"><div style="float:right"><a href="http://www.splitbrain.org/personal#imprint" style="float:right; text-decoration: none; color:#333">Imprint</a></div></div><!-- Include for DokuWiki site wide top bar --> <style type="text/css"> @media screen { body { padding-top: 30px; } #global__header { position: absolute; top: 0; left: 0; text-align: left; vertical-align: middle; line-height: 1.5; background-color: #333; box-shadow: 0 0 8px rgba(0,0,0,0.5); width: 100%; margin: 0; padding: 5px 20px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; white-space: nowrap; overflow: hidden; } #global__header h2 { position: absolute; left: -99999em; top: 0; overflow: hidden; display: inline; } #global__header ul, #global__header li { margin: 0; padding: 0; list-style: none; display: inline; line-height: 1.5; } #global__header a { color: #bbb; text-decoration: none; margin-right: 20px; font-size: 14px; font-weight: normal; } #global__header a:hover, #global__header a:active, #global__header a:focus { color: #fff; text-decoration: underline; } #global__header form { float: right; margin: 0 0 0 20px; } #global__header input { background-color: #333; background-image: none; border: 1px solid #bbb; color: #fff; box-shadow: none; border-radius: 2px; margin: 0; line-height: normal; padding: 1px 0 1px 0; height: auto; } #global__header input.button { border: none; color: #bbb; } #global__header input.button:hover, #global__header input.button:active, #global__header input.button:focus { color: #fff; text-decoration: underline; } } /* /@media */ @media only screen and (min-width: 601px) { /* changes specific for www.dokuwiki.org */ #dokuwiki__header { padding-top: 3em; } #dokuwiki__usertools { top: 3em; } /* changes specific for bugs.dokuwiki.org */ div#container div#showtask { top: 40px; } } /* /@media */ @media only screen and (max-width: 600px) { body { padding-top: 0; } #global__header { position: static; white-space: normal; overflow: auto; } #global__header form { float: none; display: block; margin: 0 0 .4em; } } /* /@media */ @media print { #global__header { display: none; } } /* /@media */ </style> <div id="global__header"> <h2>Global DokuWiki Links</h2> <form method="get" action="https://search.dokuwiki.org/" target="_top"> <input type="text" name="q" title="Search all DokuWiki sites at once" class="input" /> <input type="submit" title="Search all DokuWiki sites at once" value="Search" class="button" /> </form> <ul> <li><a href="https://download.dokuwiki.org" title="Download the latest release" target="_top">Download</a></li> <li><a href="https://www.dokuwiki.org" title="Read the DokuWiki documentation" target="_top">Wiki</a></li> <li><a href="https://forum.dokuwiki.org" title="Ask questions in the DokuWiki forum" target="_top">Forum</a></li> <li><a href="https://irc.dokuwiki.org" title="Check IRC chat logs or join the chat" target="_top">IRC</a></li> <li><a href="https://github.com/splitbrain/dokuwiki/issues" title="Report and track bugs" target="_top">Bugs</a></li> <li><a href="https://translate.dokuwiki.org/" title="Help translating the DokuWiki interface" target="_top">Translate</a></li> <li><a href="https://github.com/splitbrain/dokuwiki" title="Access the most recent git commits" target="_top">Git</a></li> <li><a href="https://xref.dokuwiki.org/reference/dokuwiki/" title="Cross-Reference of the DokuWiki source code" target="_top">XRef</a></li> <li><a href="https://codesearch.dokuwiki.org/" title="Search through the sources of DokuWiki, plugins and templates" target="_top">Code Search</a></li> </ul> </div> <!-- end of DokuWiki top bar include --> </div></footer><!-- /footer --> </div></div><!-- /site --> <div class="no"><img src="/lib/exe/taskrunner.php?id=install%3Aubuntu&amp;1732387302" width="2" height="1" alt="" /></div> <div id="screen__mode" class="no"></div></body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10