<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kosot</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kosot"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Kosot"/>
	<updated>2026-05-06T18:52:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=DokuWiki&amp;diff=26615</id>
		<title>DokuWiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=DokuWiki&amp;diff=26615"/>
		<updated>2024-03-26T13:06:42Z</updated>

		<summary type="html">&lt;p&gt;Kosot: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.dokuwiki.org/dokuwiki DokuWiki] is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. This page covers installation with either lighttpd or nginx.&lt;br /&gt;
&lt;br /&gt;
= Install lighttpd and PHP =&lt;br /&gt;
{{:Setting Up Lighttpd With FastCGI}}&lt;br /&gt;
&lt;br /&gt;
= Install nginx and PHP =&lt;br /&gt;
&lt;br /&gt;
Continue with [https://wiki.alpinelinux.org/wiki/Nginx_with_PHP#PHP7_Installation this tutorial], however please note that only these packages are required:&lt;br /&gt;
{{cmd|apk add nginx php7 php7-gd php7-fpm php7-xml php7-session php7-json}}&lt;br /&gt;
&lt;br /&gt;
Make sure that the PHP user and group match those for nginx (the outputs should be the same):&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;grep listen.owner /etc/php7/php-fpm.d/www.conf&lt;br /&gt;
grep listen.group /etc/php7/php-fpm.d/www.conf&lt;br /&gt;
grep user /etc/php7/php-fpm.d/www.conf&lt;br /&gt;
grep group /etc/php7/php-fpm.d/www.conf&lt;br /&gt;
grep user /etc/nginx/nginx.conf&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Afterwards, [https://www.dokuwiki.org/install:nginx configure nginx] and, optionally, [https://www.dokuwiki.org/rewrite enable URL rewrites]&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can call PHP from nginx via unix socket:&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;sed -i &amp;quot;s|listen\s*=\s*127.0.0.1:9000|listen = /var/run/php.sock|g&amp;quot; /etc/php7/php-fpm.d/www.conf&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
To define unix socket in nginx configuration, add following section to server:&lt;br /&gt;
    location ~ \.php$ {&lt;br /&gt;
        try_files $uri $uri/ /doku.php;&lt;br /&gt;
        include fastcgi_params;&lt;br /&gt;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
        fastcgi_param REDIRECT_STATUS 200;&lt;br /&gt;
        fastcgi_pass unix:/var/run/php.sock;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
== Installing DokuWiki ==&lt;br /&gt;
&lt;br /&gt;
Install required php modules&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add {{pkg|php82-session}} {{pkg|php82-xml}} }}&lt;br /&gt;
&lt;br /&gt;
Create webroot&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mkdir -p /var/www/localhost/htdocs/}}&lt;br /&gt;
&lt;br /&gt;
Download the source code archive &lt;br /&gt;
&lt;br /&gt;
{{Cmd|cd /var/www/localhost/htdocs/&lt;br /&gt;
wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz}}&lt;br /&gt;
&lt;br /&gt;
Unpack and delete tar file&lt;br /&gt;
&lt;br /&gt;
{{Cmd|tar zxvf dokuwiki-stable.tgz&lt;br /&gt;
rm dokuwiki-stable.tgz}}&lt;br /&gt;
&lt;br /&gt;
Rename the dokuwiki folder&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mv dokuwiki-2018-04-22c dokuwiki}}&lt;br /&gt;
&lt;br /&gt;
Change the folder permissions (change the www user/group to the one that is used by both web server and PHP)&lt;br /&gt;
&lt;br /&gt;
{{Cmd|chown -R www:www dokuwiki&lt;br /&gt;
chmod -R 700 dokuwiki/}}&lt;br /&gt;
&lt;br /&gt;
for lighttpd use&lt;br /&gt;
&lt;br /&gt;
{{Cmd|chown -R lighttpd:lighttpd dokuwiki&lt;br /&gt;
chmod -R 700 dokuwiki/}}&lt;br /&gt;
&lt;br /&gt;
Browse to &lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://WEB_IP_ADDRESS/dokuwiki/install.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Kosot</name></author>
	</entry>
</feed>