<?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=Kulfadir</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=Kulfadir"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Kulfadir"/>
	<updated>2026-04-27T10:53:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=DokuWiki&amp;diff=19828</id>
		<title>DokuWiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=DokuWiki&amp;diff=19828"/>
		<updated>2021-07-09T13:16:27Z</updated>

		<summary type="html">&lt;p&gt;Kulfadir: I installed lighttpd. The folder dokuwiki was used twice. Once when made the folder was made and once when unpacked the files.  For lighthttpd user/group is lighttpd:lighttpd.&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;
{{cmd|&amp;lt;nowiki&amp;gt;cat /etc/php7/php-fpm.d/www.conf | grep listen.owner&lt;br /&gt;
cat /etc/php7/php-fpm.d/www.conf | grep listen.group&lt;br /&gt;
cat /etc/php7/php-fpm.d/www.conf | grep user&lt;br /&gt;
cat /etc/php7/php-fpm.d/www.conf | grep group&lt;br /&gt;
cat /etc/nginx/nginx.conf | grep user&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;
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;
http://WEB_IP_ADDRESS/dokuwiki/install.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Kulfadir</name></author>
	</entry>
</feed>