樹莓派安裝dukowiki

方案1

1. sudo apt-get install dokuwikiphp

  1. 將/var/www/html權限設置爲777     chmod -R 777 /var/www/html
  2. 打開瀏覽器,輸入http://127.0.0.1/dokuwiki/doku.php

原文是ip/index.phphtml

  1. 遇到問題,可訪問https://www.dokuwiki.org/install:debian

查看版本命令爲:shell

root@raspberrypi:/etc/init.d # apache2 -v
Server version: Apache/2.4.38 (Raspbian)
Server built:   2020-08-25T20:08:29
root@raspberrypi:/etc/init.d # php -v
PHP 7.3.19-1~deb10u1 (cli) (built: Jul  5 2020 06:46:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.19, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.19-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies
root@raspberrypi:/var/lib/dokuwiki/data/pages/wiki # find / -name doku.php
/usr/share/dokuwiki/doku.php

引用:dokuwiki在debian下的安裝apache

方案2

sudo apt-get update
安裝apache
sudo apt-get install apache2 -y
安裝PHP
sudo apt install php libapache2-mod-php -y

sudo chmod -R 777 /var/www/html(注意有安全隱患)

wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
    
tar xvf dokuwiki-stable.tgz

mv dokuwiki-stable.tgz /tmp/

mv dokuwiki-2020-07-29 dokuwiki

打開瀏覽器,訪問
http://127.0.0.1/dokuwiki/doku.php瀏覽器

遇到的問題1:
DokuWiki Setup Error

The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?

是權限問題,執行下面解決:安全

chmod -R 777 data/
問題2:
PHP function xml_parser_create is not available. Maybe your hosting provider disabled it for some reason?
解決方法:
php -v
apt search php |grep xml
sudo apt-get install php7.3-xml

如下是詳細log:php7

root@raspberrypi:~ # php -v
PHP 7.3.19-1~deb10u1 (cli) (built: Jul  5 2020 06:46:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.19, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.19-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies
root@raspberrypi:~ # apt search php |grep xml

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libsmokeqtxml4-3/stable 4:4.14.3-1.2 armhf
php-horde-xml-element/stable 2.0.4-5 all
php-horde-xml-wbxml/stable 2.0.3-5 all
  Horde_Xml_Wbxml provides an API for encoding and decoding WBXML documents used in SyncML and other wireless applications
php-sabre-xml/stable 1.4.2-1 all
php-symfony-polyfill-xml/stable 1.9.0-1 all
  Symfony polyfill for xml's utf8_encode and utf8_decode functions
php-xml/stable 2:7.3+69 all
php-xml-dtd/stable 0.5.2+dfsg1-3 all
php-xml-htmlsax3/stable 3.0.0+really3.0.0-3 all
php-xml-parser/stable 1.3.6-1 all
php-xml-rpc/stable 1.5.5-1 all
php-xml-rpc2/stable 1.1.3-0.1 all
php-xml-svg/stable 1.1.0-2 all
php-xmlrpc/stable 2:7.3+69 all
php-zend-xml/stable 1.0.2-1 all
php7.1-xml/stable 7.1.20-1+b2 armhf
php7.1-xmlrpc/stable 7.1.20-1+b2 armhf
php7.2-xml/stable 7.2.9-1+b2 armhf
php7.2-xmlrpc/stable 7.2.9-1+b2 armhf
php7.3-xml/stable 7.3.19-1~deb10u1 armhf
php7.3-xmlrpc/stable 7.3.19-1~deb10u1 armhf
問題3:
{DOCUMENT_ROOT}/dokuwiki/conf/ is not writable by DokuWiki. You need to fix the permission settings of this directory!

權限問題,執行:app

sudo chmod -R 777 /var/www/html

部署的路徑具體爲:less

root@raspberrypi:/etc/init.d # find / -name doku.php
/var/www/html/dokuwiki/doku.php

引用:在樹莓派上安裝DokuWikiide

引用:dokuwiki安裝問題

解決中文文件名亂碼的問題

1.修改文件 conflocal.php
在末尾增長

$conf['fnencode'] = 'utf-8';

相關文章
相關標籤/搜索