<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DokuWiki Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/dokuwiki/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/dokuwiki/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Mon, 25 Jul 2022 15:17:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>DokuWiki Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/dokuwiki/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install DokuWiki with Nginx on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-dokuwiki-with-nginx-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-dokuwiki-with-nginx-on-ubuntu-22-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 25 Jul 2022 15:17:18 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[DokuWiki]]></category>
		<category><![CDATA[Nginx]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=585</guid>

					<description><![CDATA[<p>DokuWiki is a free and open-source wiki software written in PHP that allows users to create and edit pages using a web browser. It is...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-dokuwiki-with-nginx-on-ubuntu-22-04/">How to Install DokuWiki with Nginx on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>DokuWiki is a free and open-source wiki software written in PHP that allows users to create and edit pages using a web browser. It is easy to install and use, and doesn’t require a database since it works on plain text files. Using a very familiar interface, allows you to easily scale and optimize using many advanced features.</p>
<p>The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘<code>sudo</code>‘ to the commands to get root privileges.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update and upgrade your system packages to the latest version with the following command:</p>
<pre><code>$ sudo apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx Web Server</span></h2>
<p>In this tutorial, we will use Nginx. If you prefer Apache or another web server, you can use that instead of Nginx.</p>
<p>You can install Nginx via <code>apt</code> package manager by executing the following command.</p>
<pre><code>$ sudo apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code>$ sudo systemctl start nginx
$ sudo systemctl enable nginx</code></pre>
<p>Verify the status of the <code>Nginx</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code>● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running)
       Docs: man:nginx(8)
   Main PID: 11940 (nginx)
      Tasks: 2 (limit: 2200)
     Memory: 2.6M
        CPU: 63ms
     CGroup: /system.slice/nginx.service
             ├─11940 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─11941 "nginx: worker process
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP </span><span class="has-inline-color has-vivid-purple-color">and required PHP extensions for DokuWiki</span></h2>
<p>By default, the Ubuntu 22.04 repositories provide PHP 8.x. Please note that <a href="https://www.dokuwiki.org/requirements">Dokuwiki is not yet compatible with PHP 8</a>.</p>
<p>To install PHP 7.4 you need to install <a href="https://deb.sury.org/">SURY</a>, third party repositories to APT.</p>
<p>First, install the required packages using the following command:</p>
<pre><code>$ sudo apt-get install ca-certificates apt-transport-https software-properties-common -y</code></pre>
<p>Once all the packages are installed, add a Sury repository to APT using the following command:</p>
<pre><code>$ sudo add-apt-repository ppa:ondrej/php --yes &amp;&gt; /dev/null</code></pre>
<p>Once you are done, update the repository with the following command:</p>
<pre><code>$ sudo apt-get update -y</code></pre>
<p>Now, you can install the PHP 7.4 and additional PHP modules using the following command:</p>
<pre><code>$ sudo apt-get install php7.4 php7.4-fpm php7.4-gd php7.4-xml php7.4-json</code></pre>
<p>Verify the PHP version:</p>
<pre><code>php7.4 -v</code></pre>
<pre><code>Output:
PHP 7.4.30 (cli) (built: Jun 27 2022 08:21:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Download DokuWiki</span></h2>
<p>Download the latest version from <a href="https://download.dokuwiki.org/" target="_blank" rel="noreferrer noopener">DokuWiki download’s page</a> using the following command:</p>
<pre><code>$ sudo wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz</code></pre>
<p>Create a folder to store web root files:</p>
<pre><code>$ sudo mkdir /var/www/html/dokuwiki</code></pre>
<p>Then extract DokuWiki tarball file into the folder <strong>/var/www/html/dokuwiki/</strong> with the following command:</p>
<pre><code>$ sudo tar xzf dokuwiki-stable.tgz -C /var/www/html/dokuwiki/ --strip-components=1</code></pre>
<p>Change ownership of <code>/var/www/html/dokuwiki</code> to <code>www-data</code> user and group:</p>
<pre><code>$ sudo chown -R www-data:www-data /var/www/html/dokuwiki/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Configure Nginx for DokuWiki</span></h2>
<p>Then, create an virtual host configuration file to host DokuWiki:</p>
<pre><code>$ sudo nano /etc/nginx/conf.d/dokuwiki.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>server {
  server_name your-domain.com;
  root /var/www/html/dokuwiki;

  location / {
    index doku.php;
    try_files $uri $uri/ @dokuwiki;
  }

  location ~ ^/lib.*\.(gif|png|ico|jpg)$ {
    expires 30d;
  }

  location ^~ /conf/ { return 403; }
  location ^~ /data/ { return 403; }

  location @dokuwiki {
    rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
    rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
    rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&amp;id=$2 last;
    rewrite ^/(.*) /doku.php?id=$1 last;
  }

  location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_intercept_errors off;
    fastcgi_buffer_size 16k;
    fastcgi_buffers 4 16k;;
  }
}</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>Check Nginx syntax:</p>
<pre><code>$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
</code></pre>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code>$ sudo systemctl restart php7.4-fpm nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Access DokuWiki Web Interface</span></h2>
<p>To complete the setup go to your browser and visit <code>http://your-domain.com/install.php</code>.</p>
<p>Provide all the required information like superuser name, email, password. Ensure you select the correct <strong>ACL policy</strong>. Then, click on the <strong>Save</strong> button.</p>
<p><img fetchpriority="high" decoding="async" class="size-large wp-image-612 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-1024x485.jpg" alt="DokuWiki Installer" width="1024" height="485" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-1024x485.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-300x142.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-768x364.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-1536x728.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-1222x579.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-897x425.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1-684x324.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-Installer-1.jpg 1911w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>Once the installation has been completed successfully, click “<strong>your new DokuWiki” </strong>to get to home page.</p>
<p><img decoding="async" class="size-large wp-image-595 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-1024x290.jpg" alt="DokuWiki installer finished" width="1024" height="290" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-1024x290.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-300x85.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-768x217.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-1536x434.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-1222x346.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-897x254.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished-684x193.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-installer-finished.jpg 1913w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>To login to your dashboard, click <strong>Log in</strong> at the top right corner.</p>
<p><img decoding="async" class="size-large wp-image-625 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-1024x572.jpg" alt="Homepage" width="1024" height="572" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-1024x572.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-300x168.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-768x429.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-1536x858.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-1222x683.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-897x501.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage-684x382.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-HomePage.jpg 1896w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>Enter your username and password your created earlier and click on the <strong>Log</strong> <strong>In</strong> button:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-601 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-1024x333.jpg" alt="Login page" width="1024" height="333" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-1024x333.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-300x97.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-768x250.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-1536x499.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-1222x397.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-897x291.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page-684x222.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki-login-page.jpg 1896w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You should see the dashboard in the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-622 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-1024x414.jpg" alt="Dashboard" width="1024" height="414" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-1024x414.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-300x121.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-768x310.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-1536x621.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-1222x494.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-897x363.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard-684x276.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/07/DokuWiki_dashboard.jpg 1895w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>After a successful configuration, delete the <code>install.php</code> file from the DokuWiki root directory:</p>
<pre><code>sudo rm -f /var/www/html/dokuwiki/install.php</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations! You have successfully installed and configured DokuWiki on Ubuntu 22.04. Thanks for using this tutorial for installing the DokuWiki on Ubuntu 22.04 OS.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-dokuwiki-with-nginx-on-ubuntu-22-04/">How to Install DokuWiki with Nginx on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-dokuwiki-with-nginx-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">585</post-id>	</item>
	</channel>
</rss>
