linux:dokuwiki

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:dokuwiki [2021/06/09 12:17] ともやんlinux:dokuwiki [2024/03/27 10:47] (現在) – [forum.css の修正] ともやん
行 1: 行 1:
 ====== DokuWiki ====== ====== DokuWiki ======
 +本家: [[https://www.dokuwiki.org/dokuwiki|dokuwiki [DokuWiki]]]\\
 +ソースコード: [[https://github.com/splitbrain/dokuwiki|splitbrain/dokuwiki: The DokuWiki Open Source Wiki Engine]]\\
 +
 +===== 更新前に必ず確認‼️ =====
 +[[https://www.dokuwiki.org/changes|]] ([[https://www-dokuwiki-org.translate.goog/changes?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc|翻訳]])\\
 +
 +===== 技術資料 =====
 +[[https://www.dokuwiki.org/development#the_development_manual|The Development Manual - development [DokuWiki]]] - 開発マニュアル\\
 +[[https://www.dokuwiki.org/devel:dirlayout|Directory Layout - devel:dirlayout [DokuWiki]]] - ディレクトリ レイアウト\\
 +
 +===== PHP 8 へ移行 =====
 +
 +==== PHP 8 対応の新しい DokuWiki に更新 ====
 +[[https://www.dokuwiki.org/changes#release_2022-07-31_igor|Release 2022-07-31 "Igor"]]\\
 +
 +とにかく、DokuWiki を更新前に丸ごとバックアップする🤤\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ cp dokuwiki/conf/mime.conf dokuwiki/conf/mime.conf.bak
 +$ tar jcvf dokuwiki_20220804_1.tar.bz2 dokuwiki/
 +</pre></html></WRAP>
 +</WRAP>
 +
 +**[[http://www.dokuwiki.org/plugin:upgrade|DokuWiki Upgrade Plugin]]** で DokuWiki を PHP 8 対応版へアップグレードする。\\
 +
 +==== DokuWiki 更新後の動作確認 ====
 +アップグレード後の動作確認🤔\\
 +svg は標準対応されている😊\\
 +<WRAP mincode><code autoconf conf/mime.conf>
 +svg     image/svg+xml
 +</code></WRAP>
 +[[:hardware:sd_memory_card|SD メモリーカード]] など svg を大量に使用しているページで動作チェックする😉\\
 +
 +mime.conf.bak を元に アップグレードで上書きされた mime.conf を修正する😊\\
 +DokuWiki は mime.conf でアップロードするファイルの種類を許可しているので、個別に許可している場合はその情報を書き足す必要があるため😉\\
 +
 +==== システムの PHP バージョンをアップデートする ====
 +現時点の PHP バージョンを調べる🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>php</b> <b class=HIK>-v</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +PHP 7.4.29 (cli) (built: Apr 12 2022 10:55:38) ( NTS )
 +Copyright (c) The PHP Group
 +Zend Engine v3.4.0, Copyright (c) Zend Technologies
 +    with Zend OPcache v7.4.29, Copyright (c), by Zend Technologies
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>rpm</b> <b class=HIK>-qa</b> | <b class=HIY>sort</b> | <b class=HIY>grep</b> php
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +<b class=RED>php</b>-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-cli-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-common-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-fedora-autoloader-1.0.1-8.fc36.noarch
 +<b class=RED>php</b>-fpm-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-gd-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-json-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-mbstring-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-mysqlnd-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-opcache-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-pdo-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-pear-1.10.13-2.fc36.noarch
 +<b class=RED>php</b>-pecl-apcu-5.1.21-1.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-pecl-mcrypt-1.0.4-5.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-pecl-zip-1.20.1-1.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-process-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-sodium-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-xml-7.4.29-1.fc36.remi.x86_64
 +</pre></html></WRAP>
 +</WRAP>
 +
 +**リポジトリ設定** (Remi リポジトリを利用する設定が必要)\\
 +[[linux:fedora:rpmfusion|Fedora で RPM Fusion, Remi リポジトリを利用する]]\\
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>sudo</b> dnf install dnf-plugins-core
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +メタデータの期限切れの最終確認: 0:07:58 時間前の 2022年08月04日 03時51分10秒 に実施しました。
 +パッケージ dnf-plugins-core-4.2.1-1.fc36.noarch は既にインストールされています。
 +依存関係が解決しました。
 +行うべきことはありません。
 +完了しました!
 +</pre></html></WRAP>
 +
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>sudo</b> dnf config-manager <b class=HIK>--set-enabled</b> remi
 +</pre></html></WRAP>
 +
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>sudo</b> dnf module reset php <b class=HIK>-y</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +Remi's RPM repository - Fedora 36 - x86_64                                              636  B/s | 833  B     00:01
 +依存関係が解決しました。
 +行うべきことはありません。
 +完了しました!
 +</pre></html></WRAP>
 +
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>sudo</b> dnf module install php:remi-8.1 <b class=HIK>-y</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +メタデータの期限切れの最終確認: 0:00:33 時間前の 2022年08月04日 03時59分35秒 に実施しました。
 +エラー:
 + 問題: 競合するリクエスト
 +  - php-common-8.1.8-1.fc36.remi.x86_64 と php-common-7.4.29-1.fc36.remi.x86_64 どちらもインストールできません
 +  - php-common-8.1.9-1.fc36.remi.x86_64 と php-common-7.4.29-1.fc36.remi.x86_64 どちらもインストールできません
 +  - パッケージ php-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64 には php(api) = 20190902-64 が必要ですが、どのプロバイダー からもインストールできません
 +  - パッケージ php-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64 には php(zend-abi) = 20190902-64 が必要ですが、どのプロバイダーからもインストールできません
 +  - インストール済パッケージの問題 php-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64
 +  - パッケージ php-common-7.4.29-1.fc36.remi.x86_64 はモジュラーフィルタリングに一致しません
 +  - パッケージ php-common-7.4.30-1.fc36.remi.x86_64 はモジュラーフィルタリングに一致しません
 +(競合するパッケージを置き換えるには、コマンドラインに '--allowerasing' を追加してみてください または、'--skip-broken' を追加して、インストール不可のパッケージをスキップしてください)
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>sudo</b> dnf module install php:remi-8.1 <b class=HIK>-y --allowerasing</b>
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +メタデータの期限切れの最終確認: 0:00:54 時間前の 2022年08月04日 03時59分35秒 に実施しました。
 +依存関係が解決しました。
 +========================================================================================================================
 + パッケージ                    アーキテクチャー    バージョン                          リポジトリー               サイズ
 +========================================================================================================================
 +アップグレード:
 + <b class=GRN>php</b>                           x86_64              8.1.9-1.fc36.remi                   remi-modular               1.7 M
 + <b class=GRN>php-cli</b>                       x86_64              8.1.9-1.fc36.remi                   remi-modular               5.3 M
 + <b class=GRN>php-common</b>                    x86_64              8.1.9-1.fc36.remi                   remi-modular               829 k
 +     置き換え  <b class=RED>php-json</b>.x86_64 7.4.29-1.fc36.remi
 + <b class=GRN>php-fpm</b>                       x86_64              8.1.9-1.fc36.remi                   remi-modular               1.8 M
 + <b class=GRN>php-gd</b>                        x86_64              8.1.9-1.fc36.remi                   remi-modular                62 k
 + <b class=GRN>php-mbstring</b>                  x86_64              8.1.9-1.fc36.remi                   remi-modular               517 k
 + <b class=GRN>php-mysqlnd</b>                   x86_64              8.1.9-1.fc36.remi                   remi-modular               216 k
 + <b class=GRN>php-opcache</b>                   x86_64              8.1.9-1.fc36.remi                   remi-modular               613 k
 + <b class=GRN>php-pdo</b>                       x86_64              8.1.9-1.fc36.remi                   remi-modular               115 k
 + <b class=GRN>php-pecl-apcu</b>                 x86_64              5.1.21-1.fc36.remi.8.1              remi-modular                75 k
 + <b class=GRN>php-pecl-mcrypt</b>               x86_64              1.0.5-1.fc36.remi.8.1               remi-modular                35 k
 + <b class=GRN>php-pecl-zip</b>                  x86_64              1.21.0-3.fc36.remi.8.1              remi-modular                70 k
 + <b class=GRN>php-process</b>                   x86_64              8.1.9-1.fc36.remi                   remi-modular                65 k
 + <b class=GRN>php-sodium</b>                    x86_64              8.1.9-1.fc36.remi                   remi-modular                58 k
 + <b class=GRN>php-xml</b>                       x86_64              8.1.9-1.fc36.remi                   remi-modular               210 k
 +依存関係パッケージの削除:
 + <b class=RED>php-pecl-apcu-bc</b>              x86_64              1.0.5-5.fc36.remi.7.4               @remi-modular               49 k
 +モジュールプロファイルのインストール中:
 + php/common
 +モジュールストリームの有効化中:
 + php                                               remi-8.1
 +
 +トランザクションの概要
 +========================================================================================================================
 +アップグレード  15 パッケージ
 +削除             1 パッケージ
 +
 +ダウンロードサイズの合計: 12 M
 +パッケージのダウンロード:
 +(1/15): php-common-8.1.9-1.fc36.remi.x86_64.rpm                                         728 kB/s | 829 kB     00:01
 +(2/15): php-8.1.9-1.fc36.remi.x86_64.rpm                                                1.2 MB/s | 1.7 MB     00:01
 +(3/15): php-fpm-8.1.9-1.fc36.remi.x86_64.rpm                                            2.5 MB/s | 1.8 MB     00:00
 +(4/15): php-gd-8.1.9-1.fc36.remi.x86_64.rpm                                             170 kB/s |  62 kB     00:00
 +(5/15): php-cli-8.1.9-1.fc36.remi.x86_64.rpm                                            2.8 MB/s | 5.3 MB     00:01
 +(6/15): php-mbstring-8.1.9-1.fc36.remi.x86_64.rpm                                       3.2 MB/s | 517 kB     00:00
 +(7/15): php-mysqlnd-8.1.9-1.fc36.remi.x86_64.rpm                                        592 kB/s | 216 kB     00:00
 +(8/15): php-opcache-8.1.9-1.fc36.remi.x86_64.rpm                                        1.6 MB/s | 613 kB     00:00
 +(9/15): php-pdo-8.1.9-1.fc36.remi.x86_64.rpm                                            465 kB/s | 115 kB     00:00
 +(10/15): php-pecl-apcu-5.1.21-1.fc36.remi.8.1.x86_64.rpm                                650 kB/s |  75 kB     00:00
 +(11/15): php-pecl-mcrypt-1.0.5-1.fc36.remi.8.1.x86_64.rpm                               308 kB/s |  35 kB     00:00
 +(12/15): php-pecl-zip-1.21.0-3.fc36.remi.8.1.x86_64.rpm                                 597 kB/s |  70 kB     00:00
 +(13/15): php-process-8.1.9-1.fc36.remi.x86_64.rpm                                       568 kB/s |  65 kB     00:00
 +(14/15): php-sodium-8.1.9-1.fc36.remi.x86_64.rpm                                        506 kB/s |  58 kB     00:00
 +(15/15): php-xml-8.1.9-1.fc36.remi.x86_64.rpm                                           1.6 MB/s | 210 kB     00:00
 +------------------------------------------------------------------------------------------------------------------------
 +合計                                                                                    3.8 MB/s |  12 MB     00:03
 +トランザクションの確認を実行中
 +トランザクションの確認に成功しました。
 +トランザクションのテストを実行中
 +トランザクションのテストに成功しました。
 +トランザクションを実行中
 +  準備             :                                                                                                1/1
 +  scriptletの実行中: php-common-8.1.9-1.fc36.remi.x86_64                                                            1/1
 +  scriptletの実行中: php-common-8.1.9-1.fc36.remi.x86_64                                                           1/32
 +  アップグレード中 : php-common-8.1.9-1.fc36.remi.x86_64                                                           1/32
 +警告: /etc/php.ini は /etc/php.ini.rpmnew として作成されました
 +
 +  アップグレード中 : php-pdo-8.1.9-1.fc36.remi.x86_64                                                              2/32
 +  アップグレード中 : php-cli-8.1.9-1.fc36.remi.x86_64                                                              3/32
 +  アップグレード中 : php-fpm-8.1.9-1.fc36.remi.x86_64                                                              4/32
 +  scriptletの実行中: php-fpm-8.1.9-1.fc36.remi.x86_64                                                              4/32
 +  アップグレード中 : php-mbstring-8.1.9-1.fc36.remi.x86_64                                                         5/32
 +  アップグレード中 : php-opcache-8.1.9-1.fc36.remi.x86_64                                                          6/32
 +  アップグレード中 : php-sodium-8.1.9-1.fc36.remi.x86_64                                                           7/32
 +  アップグレード中 : php-xml-8.1.9-1.fc36.remi.x86_64                                                              8/32
 +  アップグレード中 : php-8.1.9-1.fc36.remi.x86_64                                                                  9/32
 +  アップグレード中 : php-mysqlnd-8.1.9-1.fc36.remi.x86_64                                                         10/32
 +  アップグレード中 : php-gd-8.1.9-1.fc36.remi.x86_64                                                              11/32
 +  アップグレード中 : php-pecl-apcu-5.1.21-1.fc36.remi.8.1.x86_64                                                  12/32
 +  アップグレード中 : php-pecl-mcrypt-1.0.5-1.fc36.remi.8.1.x86_64                                                 13/32
 +  アップグレード中 : php-pecl-zip-1.21.0-3.fc36.remi.8.1.x86_64                                                   14/32
 +  アップグレード中 : php-process-8.1.9-1.fc36.remi.x86_64                                                         15/32
 +  整理             : php-7.4.29-1.fc36.remi.x86_64                                                                16/32
 +  削除             : php-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64                                                17/32
 +  整理             : php-pecl-apcu-5.1.21-1.fc36.remi.7.4.x86_64                                                  18/32
 +  整理             : php-pecl-zip-1.20.1-1.fc36.remi.7.4.x86_64                                                   19/32
 +  整理             : php-pecl-mcrypt-1.0.4-5.fc36.remi.7.4.x86_64                                                 20/32
 +  整理             : php-cli-7.4.29-1.fc36.remi.x86_64                                                            21/32
 +  scriptletの実行中: php-fpm-7.4.29-1.fc36.remi.x86_64                                                            22/32
 +  整理             : php-fpm-7.4.29-1.fc36.remi.x86_64                                                            22/32
 +  整理             : php-mbstring-7.4.29-1.fc36.remi.x86_64                                                       23/32
 +  整理             : php-opcache-7.4.29-1.fc36.remi.x86_64                                                        24/32
 +  整理             : php-sodium-7.4.29-1.fc36.remi.x86_64                                                         25/32
 +  整理             : php-xml-7.4.29-1.fc36.remi.x86_64                                                            26/32
 +  整理             : php-process-7.4.29-1.fc36.remi.x86_64                                                        27/32
 +  整理             : php-mysqlnd-7.4.29-1.fc36.remi.x86_64                                                        28/32
 +  整理             : php-pdo-7.4.29-1.fc36.remi.x86_64                                                            29/32
 +  整理             : php-gd-7.4.29-1.fc36.remi.x86_64                                                             30/32
 +  整理             : php-common-7.4.29-1.fc36.remi.x86_64                                                         31/32
 +  廃止             : php-json-7.4.29-1.fc36.remi.x86_64                                                           32/32
 +  scriptletの実行中: php-json-7.4.29-1.fc36.remi.x86_64                                                           32/32
 +  検証             : php-8.1.9-1.fc36.remi.x86_64                                                                  1/32
 +  検証             : php-7.4.29-1.fc36.remi.x86_64                                                                 2/32
 +  検証             : php-cli-8.1.9-1.fc36.remi.x86_64                                                              3/32
 +  検証             : php-cli-7.4.29-1.fc36.remi.x86_64                                                             4/32
 +  検証             : php-common-8.1.9-1.fc36.remi.x86_64                                                           5/32
 +  検証             : php-common-7.4.29-1.fc36.remi.x86_64                                                          6/32
 +  検証             : php-json-7.4.29-1.fc36.remi.x86_64                                                            7/32
 +  検証             : php-fpm-8.1.9-1.fc36.remi.x86_64                                                              8/32
 +  検証             : php-fpm-7.4.29-1.fc36.remi.x86_64                                                             9/32
 +  検証             : php-gd-8.1.9-1.fc36.remi.x86_64                                                              10/32
 +  検証             : php-gd-7.4.29-1.fc36.remi.x86_64                                                             11/32
 +  検証             : php-mbstring-8.1.9-1.fc36.remi.x86_64                                                        12/32
 +  検証             : php-mbstring-7.4.29-1.fc36.remi.x86_64                                                       13/32
 +  検証             : php-mysqlnd-8.1.9-1.fc36.remi.x86_64                                                         14/32
 +  検証             : php-mysqlnd-7.4.29-1.fc36.remi.x86_64                                                        15/32
 +  検証             : php-opcache-8.1.9-1.fc36.remi.x86_64                                                         16/32
 +  検証             : php-opcache-7.4.29-1.fc36.remi.x86_64                                                        17/32
 +  検証             : php-pdo-8.1.9-1.fc36.remi.x86_64                                                             18/32
 +  検証             : php-pdo-7.4.29-1.fc36.remi.x86_64                                                            19/32
 +  検証             : php-pecl-apcu-5.1.21-1.fc36.remi.8.1.x86_64                                                  20/32
 +  検証             : php-pecl-apcu-5.1.21-1.fc36.remi.7.4.x86_64                                                  21/32
 +  検証             : php-pecl-mcrypt-1.0.5-1.fc36.remi.8.1.x86_64                                                 22/32
 +  検証             : php-pecl-mcrypt-1.0.4-5.fc36.remi.7.4.x86_64                                                 23/32
 +  検証             : php-pecl-zip-1.21.0-3.fc36.remi.8.1.x86_64                                                   24/32
 +  検証             : php-pecl-zip-1.20.1-1.fc36.remi.7.4.x86_64                                                   25/32
 +  検証             : php-process-8.1.9-1.fc36.remi.x86_64                                                         26/32
 +  検証             : php-process-7.4.29-1.fc36.remi.x86_64                                                        27/32
 +  検証             : php-sodium-8.1.9-1.fc36.remi.x86_64                                                          28/32
 +  検証             : php-sodium-7.4.29-1.fc36.remi.x86_64                                                         29/32
 +  検証             : php-xml-8.1.9-1.fc36.remi.x86_64                                                             30/32
 +  検証             : php-xml-7.4.29-1.fc36.remi.x86_64                                                            31/32
 +  検証             : php-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64                                                32/32
 +
 +アップグレード済み:
 +  php-8.1.9-1.fc36.remi.x86_64                                php-cli-8.1.9-1.fc36.remi.x86_64
 +  php-common-8.1.9-1.fc36.remi.x86_64                         php-fpm-8.1.9-1.fc36.remi.x86_64
 +  php-gd-8.1.9-1.fc36.remi.x86_64                             php-mbstring-8.1.9-1.fc36.remi.x86_64
 +  php-mysqlnd-8.1.9-1.fc36.remi.x86_64                        php-opcache-8.1.9-1.fc36.remi.x86_64
 +  php-pdo-8.1.9-1.fc36.remi.x86_64                            php-pecl-apcu-5.1.21-1.fc36.remi.8.1.x86_64
 +  php-pecl-mcrypt-1.0.5-1.fc36.remi.8.1.x86_64                php-pecl-zip-1.21.0-3.fc36.remi.8.1.x86_64
 +  php-process-8.1.9-1.fc36.remi.x86_64                        php-sodium-8.1.9-1.fc36.remi.x86_64
 +  php-xml-8.1.9-1.fc36.remi.x86_64
 +削除しました:
 +  php-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64
 +
 +完了しました!
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>php</b> <b class=HIK>-v</b>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +PHP 8.1.9 (cli) (built: Aug  2 2022 13:02:24) (NTS gcc x86_64)
 +Copyright (c) The PHP Group
 +Zend Engine v4.1.9, Copyright (c) Zend Technologies
 +    with Zend OPcache v8.1.9, Copyright (c), by Zend Technologies
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP group>
 +
 +<WRAP left column>
 +**PHP 8.1 (新)**\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>rpm</b> <b class=HIK>-qa</b> | <b class=HIY>sort</b> | <b class=HIY>grep</b> php
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +<b class=RED>php</b>-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-cli-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-common-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-fedora-autoloader-1.0.1-8.fc36.noarch
 +<b class=RED>php</b>-fpm-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-gd-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-mbstring-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-mysqlnd-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-opcache-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-pdo-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-pear-1.10.13-2.fc36.noarch
 +<b class=RED>php</b>-pecl-apcu-5.1.21-1.fc36.remi.8.1.x86_64
 +<b class=RED>php</b>-pecl-mcrypt-1.0.5-1.fc36.remi.8.1.x86_64
 +<b class=RED>php</b>-pecl-zip-1.21.0-3.fc36.remi.8.1.x86_64
 +<b class=RED>php</b>-process-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-sodium-8.1.9-1.fc36.remi.x86_64
 +<b class=RED>php</b>-xml-8.1.9-1.fc36.remi.x86_64
 +</pre></html></WRAP>
 +</WRAP>
 +</WRAP>
 +
 +<WRAP left column>
 +**PHP 7.4 (旧)**\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>rpm</b> <b class=HIK>-qa</b> | <b class=HIY>sort</b> | <b class=HIY>grep</b> php
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +<b class=RED>php</b>-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-cli-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-common-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-fedora-autoloader-1.0.1-8.fc36.noarch
 +<b class=RED>php</b>-fpm-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-gd-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-json-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-mbstring-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-mysqlnd-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-opcache-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-pdo-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-pear-1.10.13-2.fc36.noarch
 +<b class=RED>php</b>-pecl-apcu-5.1.21-1.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-pecl-apcu-bc-1.0.5-5.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-pecl-mcrypt-1.0.4-5.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-pecl-zip-1.20.1-1.fc36.remi.7.4.x86_64
 +<b class=RED>php</b>-process-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-sodium-7.4.29-1.fc36.remi.x86_64
 +<b class=RED>php</b>-xml-7.4.29-1.fc36.remi.x86_64
 +</pre></html></WRAP>
 +</WRAP>
 +</WRAP>
 +
 +</WRAP>
 +<wrap em>php-json</wrap> は PHP 8 より標準で含まれて有効になっている🤔\\
 +<wrap em>php-pecl-apcu-bc</wrap> はパッケージ削除🤔\\
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>sudo</b> reboot
 +</pre></html></WRAP>
 +</WRAP>
 +
 +参考: [[https://computingforgeeks.com/how-to-install-php-on-fedora/|How To Install PHP 8.0 on Fedora 36/35/34/33/32 | ComputingForGeeks]]\\
 +  [[https://rpms.remirepo.net/fedora/36/|Remi's RPM repository - Fedora 36]]\\
 +
 +==== PHP 8.1 -> PHP 8.2 ====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ sudo dnf module reset php -y
 +$ sudo dnf module install php:remi-8.2
 +$ sudo systemctl restart php-fpm
 +$ sudo systemctl restart httpd
 +</pre></html></WRAP>
 +</WRAP>
  
 ===== PHP 8 対応状況 ===== ===== PHP 8 対応状況 =====
-[[git>splitbrain/dokuwiki/issues?q=is%3Aissue+is%3Aopen+label%3A%22PHP+8%22|ラベル: PHP 8 で開いている Issues · splitbrain/dokuwiki]]\\+[[git>splitbrain/dokuwiki/issues?q=is:issue is:open label:"PHP 8"|ラベル: PHP 8 で開いている Issues · splitbrain/dokuwiki]]\\
  
-===== REST API =====+===== DokuWiki プラグイン (Plugin) ===== 
 +[[:linux:dokuwiki:mathjax_plugin|MathJax Plugin]]\\ 
 +[[:linux:dokuwiki:mathpublish_plugin|mathpublish Plugin]]\\ 
 +[[:linux:dokuwiki:codeMirror_plugin|CodeMirror Plugin]]\\
  
-==== API Plugin ==== +==== DokuFreaks ==== 
-[[https://www.dokuwiki.org/plugin:api|plugin:api [DokuWiki]]]\\ +[[https://github.com/dokufreaks|{{https://avatars.githubusercontent.com/u/86480?&.png?100x100&recache|DokuFreaks }}]] 
-GitHub: [[https://github.com/gerardnico/dokuwiki-plugin-api/|gerardnico/dokuwiki-plugin-apiA rest api interface for Dokuwiki]]\\+[[git>dokufreaks|DokuFreaks]] GitHub 組織は、元の作成者によってほとんど放棄されたプラグインが **最小限** 維持される場所です。これは、言語の更新が適用され、簡単なプル リクエストが適用され、プラグインが通常、最近の DokuWiki リリースで動作する状態になる必要があることを意味します。 
 + 
 +一方、これは、そこにリストされているプラ​​グインが**積極的に開発されていない**ことを意味します。機能リクエストはほとんど無視され、マージに大きな労力が必要なプル リクエストはおそらく永久に無視されるでしょう。 
 +[[https://www.dokuwiki.org/dokufreaks|dokufreaks [DokuWiki]] より🤔\\ 
 +===== DokuWiki プラグイン開発 (Devel) ===== 
 +[[https://mizunashi-mana.github.io/blog/posts/2019/07/dokuwiki-syntax-plugin/|続くといいな日記 – DokuWiki の構文拡張プラグインの作り方]]\\ 
 +DokuWiki ソースコード閲覧\\ 
 +[[https://xref.dokuwiki.org/reference/dokuwiki/nav.html|PHPXref: DokuWiki]]\\ 
 +[[https://www.dokuwiki.org/devel:plugin_file_structure|devel:plugin_file_structure [DokuWiki]]]  ([[https://www-dokuwiki-org.translate.goog/devel:plugin_file_structure?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc|翻訳]])\\ 
 +[[https://www.dokuwiki.org/devel:syntax_plugins|devel:syntax_plugins [DokuWiki]]] ([[https://www-dokuwiki-org.translate.goog/devel:syntax_plugins?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc|翻訳]])\\
  
-==== Call DokuWiki REST API ==== +====DokuWiki テーマ カスタマイズ ===== 
-URL[[https://www.tomoyan.net/lib/exe/ajax.php?call=api|]]\\ + 
-Return:\\ +==== テンプレートのキャッシュ戦略 ==== 
-<WRAP prewrap 100% #result+以降のカスタマイズではテーマの **main.php** にスタイルを直書きしていますが、検証のためであり本来は個別の **CSS** ファイルに分けるのが望ましい。直書きしたスタイルはページロードの都度 HTML ファイルに埋め込まれていて **CSS Minify (コード圧縮)** されないため、スタイル定義が増えるごとにダウンロードサイズも増加する。更に一般的にスタイルの変更は少ないので、ページ内容の変更とは切り分けてブラウザーにキャッシュさせた方が、よりページロード時間を高速化できて良い。\\ 
-<code javascript+ 
-{"api":"api","version":"2019-06-21"}+ブラウザーの開発者ツールで **CSS** ファイルに分けた場合は (from disk cache) ローカルディスクから読み込まれるので、キャッシュ期限で指定された時間が経過するまではインターネットを介してダウンロードされなくなる。更に DokuWiki のエンジンが自動的に style.ini で参照しているスタイルを **CSS Minify (コード圧縮)** して一つにまとめるので、スタイル定義を複数のファイルに分割している場合でも一度のリクエストで取得できるので、Web サーバーの負荷を減らすと伴にクライアントのページロード時間を高速化できる利点がある。\\ 
 +{{:linux:dokuwiki_template_cache_001.png?470|DokuWiki テンプレート ブラウザーキャッシュ}}\\ 
 + 
 +安定したスタイル定義を **CSS** ファイルに分けるには、テンプレートディレクトリの style.ini に スタイルを含めるように指示して css ディレクトリにファイルを別途作成する。\\ 
 +<WRAP prewrap 100% mincode
 +<code ini temprate_dir/style.ini
 +[stylesheets] 
 +css/custom.less           = screen
 </code> </code>
 </WRAP> </WRAP>
  
-^  機能 (fn)  ^  引数  ^  説明  ^ +<WRAP prewrap 100% mincode> 
-| version  |   | DokuWiki のバージョンを取得する。  | +<code css temprate_dir/css/custom.less> 
-| wiki  |     | +@font-face { 
-URL[[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=version|]]\\ +  font-family"HackGenNerd"; 
-URL[[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=wiki|]]\\ +  font-displayswap; 
-URL: [[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=pages&limit=10|]]\\ +  srcurl("/fonts/hackgen_v2.6.3/HackGenNerd-Regular.woff2") format("woff2"), 
-URL: [[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=page&id=linux|]]\\ +       url("/fonts/hackgen_v2.6.3/HackGenNerd-Regular.woff") format("woff") 
- +} 
-=== Vue.js + axios で DokuWiki REST API をコールする === +@font-face { 
-[[javascript:vuejs:dokuwiki_rest_api_sample|DokuWiki REST API Vue.js サンプルアプリ]]\\ +  font-family"HackGenNerd Console"; 
-<WRAP prewrap 100% #mincode_long> +  font-displayswap; 
-<code javascript> +  src: url("/fonts/hackgen_v2.6.3/HackGenNerdConsole-Regular.woff2") format("woff2") 
-<html> +       url("/fonts/hackgen_v2.6.3/HackGenNerdConsole-Regular.woff") format("woff") 
-  <script src="/_media/javascript/requirejs/require-2.3.6.min.js?cache=recache"></script> +
-  <script> +pre, code, samp, kbd 
-    self.DEBUG = true; +  font-family: "HackGenNerd Console", "Sawarabi Gothic", "Helvetica Neue", Helvetica, /*"Open Sans", "M PLUS 1p"*/"ヒラギノ角ゴ Pro W3""Hiragino Kaku Gothic Pro""メイリオ"Meiryo, Osaka, "MS Pゴシック", "MS PGothic", Arial, sans-serif; 
-  </script> +  font-size12px; 
-  <script src="/_media/javascript/requirejs/settings.js?cache=nocache"></script> +
-</html> +@media (min-width: 980px) { 
-====== DokuWiki REST API Vue.js サンプルアプリ ====== +  pre, code, samp, kbd 
-<html> +    font-size: 10px
-  <div id="doku-vuejs-app"+  
-    <p>Vue.js version: {{ vue_ver }}</p> +
-    <p>Response Data(status: {{ response.status }}):</p> +body { 
-    <pre>{{ response.data }}</pre> +  font-family: "Sawarabi Gothic", "Helvetica Neue", Helvetica, /*"Open Sans", "M PLUS 1p", */"ヒラギノ角ゴ Pro W3""Hiragino Kaku Gothic Pro", "メイオ", Meiryo, Osaka, "MS Pゴック", "MS PGothic", Arial, sans-serif; 
-    <p>axios response:</p> +}
-    <pre>{{ response }}</pre> +
-  </div> +
-  <script> +
-    "use strict"+
-     +
-    let doku_vuejs_app; +
-     +
-    require(['Vue','axios'](Vueaxios) => { +
-      doku_vuejs_app = new Vue({ +
-        el: '#doku-vuejs-app', +
-        data: { +
-          vue_ver: Vue.version+
-          response'', +
-        }, +
-        created: function() { +
-          axios.get('/lib/exe/ajax.php?call=api'+
-            .then(response => +
-              this.response = response+
-            }); +
-        +
-      }); +
-    }); +
-  </script> +
-</html> +
-※Vue.jsREST API バージョンを表示するだけの簡単なサンプルアプケーョン。\\+
 </code> </code>
 </WRAP> </WRAP>
  
-===== XML-RPC ===== +==== サイト専用テンプレートの作成 ==== 
-[[https://www.dokuwiki.org/devel:xmlrpc|devel:xmlrpc [DokuWiki]]]\\+拡張機能管理でインストールした既存のテンプレートをコピーして、サイト専用テンプレートを作成する😃\\ 
 +サイト専用テンプレートを作成すると、既存のテンプレートの更新で影響受けることが無くなる🤤\\
  
-^ XML-RPC 機能 ^ +既存の bootstrap3 テンプレートをコピーする🤤\\ 
-^  関数名  ^ +<WRAP color_term> 
-| dokuwiki.getPagelist  | +<WRAP color_command><html><pre> 
-dokuwiki.getVersion  | +$ cd dokuwiki/lib/tpl/ 
-| dokuwiki.getTime +$ cp -r bootstrap3 bs3tomoyannet 
-| dokuwiki.getXMLRPCAPIVersion +</pre></html></WRAP> 
-| dokuwiki.login +</WRAP>
-| dokuwiki.search +
-| dokuwiki.getTitle +
-| dokuwiki.appendPage +
-| dokuwiki.setLocks +
-| dokuwiki.deleteUsers +
-| wiki.getRPCVersionSupported +
-| wiki.aclCheck +
-| wiki.getPage +
-| wiki.getPageVersion +
-| wiki.getPageVersions +
-| wiki.getPageInfo +
-| wiki.getPageInfoVersion +
-| wiki.getPageHTML +
-| wiki.getPageHTMLVersion +
-| wiki.putPage +
-| wiki.listLinks +
-| wiki.getAllPages +
-| wiki.getBackLinks +
-| wiki.getRecentChanges +
-| wiki.getRecentMediaChanges +
-| wiki.getAttachments +
-| wiki.getAttachment +
-| wiki.getAttachmentInfo +
-| wiki.putAttachment +
-| wiki.deleteAttachment  | +
-| plugin.acl.addAcl  | +
-| plugin.acl.delAcl  |+
  
-==== Call DokuWiki XML-RPC ===+コピーしたテンプレート情報 (template.info.txt) を修正する🤤 (特に <wrap em>base, name</wrap>)\\ 
-URL: [[https://www.tomoyan.net/lib/exe/xmlrpc.php|]]\\+<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +$ cd bs3tomoyannet 
 +$ nano template.info.txt 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +<WRAP group> 
 +<WRAP left column> 
 +コピー\\ 
 +<WRAP mincode><html><dl class=code> 
 +<dt><a class="mediafile mf_txt" style="text-decoration: unset">template.info.txt</a></dt> 
 +<dd><pre> 
 +<b class=RED>base     bs3tomoyannet 
 +author   Tomoyan596 
 +email    tomoyan@tomoyan.net 
 +date     2022-08-04 
 +name     Bootstrap3 Tomoyan.NET Template 
 +desc     Bootstrap-based template for Dokuwiki Tomoyan.NET</b> 
 +url      https://www.dokuwiki.org/template:bootstrap3 
 +build    stable/20220727 
 +</pre></dd> 
 +</dl></html></WRAP> 
 +</WRAP> 
 + 
 +<WRAP left column> 
 +オリジナル\\ 
 +<WRAP mincode><code text template.info.txt> 
 +base     bootstrap3 
 +author   Giuseppe Di Terlizzi 
 +email    giuseppe.diterlizzi@gmail.com 
 +date     2022-07-27 
 +name     Bootstrap3 Template 
 +desc     Bootstrap-based template for Dokuwiki 
 +url      https://www.dokuwiki.org/template:bootstrap3 
 +build    stable/20220727 
 +</code></WRAP> 
 +</WRAP> 
 +</WRAP>
  
-===== Open Graph プロコル ===== +いつもの **custom.less** をコピーする🤤\\ 
-[[https://www.dokuwiki.org/ja:plugin:semantic|Semantic Plugin]]\\ +<WRAP color_term> 
-[[https://cards-dev.twitter.com/validator|Twitter Card Validator]]\\ +<WRAP color_command><html><pre> 
-[[https://search.google.com/structured-data/testing-tool/u/0/|]]\\+$cp template_dir/css/custom.less bs3tomoyannet/css/custom.less 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +**style.ini** に **custom.less** を登録する🤤\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +$ nano style.ini 
 +</pre></html></WRAP> 
 +</WRAP> 
 +<WRAP mincode><code ini style.ini> 
 +[stylesheets] 
 +; DokuWiki core styles 
 +... 
 +; Template styles 
 +... 
 +; Tomoyan.NET Custom (追記登録) 
 +css/custom.less                all 
 +</code></WRAP> 
 + 
 +**main.php** に必要な変更を行うのを忘れずに😉\\ 
 +**Google AdSense Plugin** のための変更\\ 
 +<WRAP mincode><code php main.php> 
 +<head> 
 +... 
 +    <?php if (file_exists(DOKU_PLUGIN.'googleads/code.php')) include_once(DOKU_PLUGIN.'googleads/code.php'); 
 +          if (function_exists('gads_code')) gads_code(); 
 +    ?> 
 +... 
 +</head> 
 +</code></WRAP> 
 + 
 +**Google Fonts (Web フォン)** のための変更\\ 
 +<WRAP mincode><code php main.php> 
 +<head> 
 +... 
 +    <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> 
 +    <link href="https://fonts.googleapis.com/css?family=Sawarabi+Gothic&display=swap" rel="stylesheet"> 
 +... 
 +</head> 
 +</code></WRAP> 
 + 
 +**その他の CSS** のための変更\\ 
 +<WRAP mincode><code php main.php> 
 +<head> 
 +... 
 +    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> 
 +... 
 +</head> 
 +</code></WRAP>
  
-===== dokuwiki テーマの Dark モード対応 =====+==== DokuWiki テーマの Dark モード対応 ====
 OS が Dark モードで実行されている場合の対応を追加する。\\ OS が Dark モードで実行されている場合の対応を追加する。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
行 158: 行 583:
 ※これらで対応が足りているか検証中である。\\ ※これらで対応が足りているか検証中である。\\
  
-===== dokuwiki テーマに Web フォントを定義 =====+==== DokuWiki テーマに Web フォントを定義 ====
 Google Fonts の Sawarabi Gothic を定義する。\\ Google Fonts の Sawarabi Gothic を定義する。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
行 183: 行 608:
 ※ Google Fonts の CSS の URL の末尾に **&display=swap** を記述すると CSS の **font-display: swap;** が適用されて、フォントがダウンロード中で利用可能になるまでの間、代替フォント(font-family 指定順で次に有効なフォント) が適用される。\\ ※ Google Fonts の CSS の URL の末尾に **&display=swap** を記述すると CSS の **font-display: swap;** が適用されて、フォントがダウンロード中で利用可能になるまでの間、代替フォント(font-family 指定順で次に有効なフォント) が適用される。\\
  
-==== font-display: swap; ====+=== font-display: swap; ===
 CSS では **font-display: swap;** は次のように **@font-face** 内に定義する。\\ CSS では **font-display: swap;** は次のように **@font-face** 内に定義する。\\
 <code css> <code css>
行 200: 行 625:
  
 ==== <code> ブロックに HackGen (白源) フォントを適用 ==== ==== <code> ブロックに HackGen (白源) フォントを適用 ====
-[[windows:fonts#hackgen|HackGen (白源)]]\\+[[open_source:fonts#hackgen|HackGen (白源)]]\\
 [[web:web_font#woffconverter|WOFFConverter]]\\ [[web:web_font#woffconverter|WOFFConverter]]\\
 **<code>** ブロックは HTML の **pre** タグであるため、**pre** タグのフォントを変更する。\\ **<code>** ブロックは HTML の **pre** タグであるため、**pre** タグのフォントを変更する。\\
行 234: 行 659:
 </WRAP> </WRAP>
  
 +==== Apache MIME タイプの設定 ====
 <WRAP prewrap 100%> <WRAP prewrap 100%>
-Apache の MIME タイプ定義を追加する。\\+Apache に Web フォントの MIME タイプ定義を追加する。\\
 <code> <code>
 $ sudo vi /etc/httpd/conf/httpd.conf $ sudo vi /etc/httpd/conf/httpd.conf
行 278: 行 704:
  
 </WRAP> </WRAP>
 +
 +===== Open Graph プロトコル =====
 +[[https://www.dokuwiki.org/plugins?plugintag=opengraph#extension__table|plugins (opengraph) [DokuWiki]]]\\
 +[[https://dokuwiki.org/plugin:socialcards|SocialCards Plugin]]\\
 +[[https://www.dokuwiki.org/ja:plugin:semantic|Semantic Plugin]]\\
 +\\
 +[[https://cards-dev.twitter.com/validator|Twitter Card Validator]]\\
 +[[https://developers.facebook.com/tools/debug/|シェアデバッガー - Facebook for Developers]]\\
 +[[https://validator.schema.org|スキーマ マークアップ検証ツール]]\\
 +[[https://developers.google.com/search/docs/advanced/structured-data|構造化データマークアップをテストする | Google検索セントラル  |  Google Developers]]\\
 +
 +===== REST API =====
 +
 +==== API Plugin ====
 +[[https://www.dokuwiki.org/plugin:api|plugin:api [DokuWiki]]]\\
 +GitHub: [[https://github.com/gerardnico/dokuwiki-plugin-api/|gerardnico/dokuwiki-plugin-api: A rest api interface for Dokuwiki]]\\
 +
 +==== Call DokuWiki REST API ====
 +URL: [[https://www.tomoyan.net/lib/exe/ajax.php?call=api|]]\\
 +Return:\\
 +<WRAP prewrap 100% result>
 +<code javascript>
 +{"api":"api","version":"2019-06-21"}
 +</code>
 +</WRAP>
 +
 +^  機能 (fn)  ^  引数  ^  説明  ^
 +| version  |  -  | DokuWiki のバージョンを取得する。  |
 +| wiki  |  -  |   |
 +URL: [[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=version|]]\\
 +URL: [[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=wiki|]]\\
 +URL: [[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=pages&limit=10|]]\\
 +URL: [[https://www.tomoyan.net/lib/exe/ajax.php?call=api&fn=page&id=linux|]]\\
 +
 +=== Vue.js + axios で DokuWiki REST API をコールする ===
 +[[javascript:vuejs:dokuwiki_rest_api_sample|DokuWiki REST API Vue.js サンプルアプリ]]\\
 +<WRAP prewrap 100% mincode_long>
 +<code javascript>
 +<html>
 +  <script src="/_media/javascript/requirejs/require-2.3.6.min.js?cache=recache"></script>
 +  <script>
 +    self.DEBUG = true;
 +  </script>
 +  <script src="/_media/javascript/requirejs/settings.js?cache=nocache"></script>
 +</html>
 +
 +===== DokuWiki REST API Vue.js サンプルアプリ =====
 +<html>
 +  <div id="doku-vuejs-app">
 +    <p>Vue.js version: {{ vue_ver }}</p>
 +    <p>Response Data(status: {{ response.status }}):</p>
 +    <pre>{{ response.data }}</pre>
 +    <p>axios response:</p>
 +    <pre>{{ response }}</pre>
 +  </div>
 +  <script>
 +    "use strict";
 +    
 +    let doku_vuejs_app;
 +    
 +    require(['Vue','axios'], (Vue, axios) => {
 +      doku_vuejs_app = new Vue({
 +        el: '#doku-vuejs-app',
 +        data: {
 +          vue_ver: Vue.version,
 +          response: '',
 +        },
 +        created: function() {
 +          axios.get('/lib/exe/ajax.php?call=api')
 +            .then(response => {
 +              this.response = response;
 +            });
 +        }
 +      });
 +    });
 +  </script>
 +</html>
 +※Vue.js, REST API バージョンを表示するだけの簡単なサンプルアプリケーション。\\
 +</code>
 +</WRAP>
 +
 +===== XML-RPC =====
 +[[https://www.dokuwiki.org/devel:xmlrpc|devel:xmlrpc [DokuWiki]]]\\
 +
 +^ XML-RPC の機能 ^
 +^  関数名  ^
 +| dokuwiki.getPagelist  |
 +| dokuwiki.getVersion  |
 +| dokuwiki.getTime  |
 +| dokuwiki.getXMLRPCAPIVersion  |
 +| dokuwiki.login  |
 +| dokuwiki.search  |
 +| dokuwiki.getTitle  |
 +| dokuwiki.appendPage  |
 +| dokuwiki.setLocks  |
 +| dokuwiki.deleteUsers  |
 +| wiki.getRPCVersionSupported  |
 +| wiki.aclCheck  |
 +| wiki.getPage  |
 +| wiki.getPageVersion  |
 +| wiki.getPageVersions  |
 +| wiki.getPageInfo  |
 +| wiki.getPageInfoVersion  |
 +| wiki.getPageHTML  |
 +| wiki.getPageHTMLVersion  |
 +| wiki.putPage  |
 +| wiki.listLinks  |
 +| wiki.getAllPages  |
 +| wiki.getBackLinks  |
 +| wiki.getRecentChanges  |
 +| wiki.getRecentMediaChanges  |
 +| wiki.getAttachments  |
 +| wiki.getAttachment  |
 +| wiki.getAttachmentInfo  |
 +| wiki.putAttachment  |
 +| wiki.deleteAttachment  |
 +| plugin.acl.addAcl  |
 +| plugin.acl.delAcl  |
 +
 +==== Call DokuWiki XML-RPC ====
 +URL: [[https://www.tomoyan.net/lib/exe/xmlrpc.php|]]\\
  
 ===== 以前のリビジョン ===== ===== 以前のリビジョン =====
行 293: 行 840:
 1546495335      127.0.0.1             linux:dokuwiki  tomoyan [geeklogのDokuWiki Plugi(注意: 以下>は古い情報です)]            1 1546495335      127.0.0.1             linux:dokuwiki  tomoyan [geeklogのDokuWiki Plugi(注意: 以下>は古い情報です)]            1
 </code> </code>
 +</WRAP>
 +
 +==== サーバーキャッシュのパージ ====
 +公式: [[https://www.dokuwiki.org/caching|caching [DokuWiki]]] [[gtr>https://www.dokuwiki.org/caching|翻訳]]\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">touch</span><span style="color:#999999"> </span><span style="color:#999999"><u style="text-decoration-style:single">dokuwiki/conf/local.php</u></span>
 +</pre></html></WRAP>
 </WRAP> </WRAP>
  
行 301: 行 856:
 DokuWiki 高速化に関する議論\\ DokuWiki 高速化に関する議論\\
 [[https://forum.dokuwiki.org/d/7766-optimizing-dokuwiki-load-time/5|]]\\ [[https://forum.dokuwiki.org/d/7766-optimizing-dokuwiki-load-time/5|]]\\
 +
 +テンプレート カスタマイズ\\
 +[[https://itlogs.net/dokuwiki-css/|DokuWikiのCSS(スタイルシート)カスタマイズ方法を解説 | 俺の開発研究所]]\\
  
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
行 440: 行 998:
 COM_siteFooter関数内1,514行目(*1)付近(フッターに出力しているscriptを止める)\\ COM_siteFooter関数内1,514行目(*1)付近(フッターに出力しているscriptを止める)\\
 *1 - 1.8.0 の行番号, 2.0.0 では 1,570行目付近。 *1 - 1.8.0 の行番号, 2.0.0 では 1,570行目付近。
-<sxh php highlight:[2]>+<code php highlight:[2]>
     // Retrieve any JavaScript libraries, variables and functions     // Retrieve any JavaScript libraries, variables and functions
     //$footercode = $_SCRIPTS->getFooter();     //$footercode = $_SCRIPTS->getFooter();
-</sxh>+</code>
  
 COM_siteHeader関数内1,286行目(*2)付近(ヘッダーの新たなテーマ変数plg_extrascriptにscriptを出力する)\\ COM_siteHeader関数内1,286行目(*2)付近(ヘッダーの新たなテーマ変数plg_extrascriptにscriptを出力する)\\
 *2 - 1.8.0 の行番号, 2.0.0 では 1,337行目付近。 *2 - 1.8.0 の行番号, 2.0.0 では 1,337行目付近。
-<sxh php highlight:[3,4]>+<code php highlight:[3,4]>
     $headercode = $_SCRIPTS->getHeader() . $headercode;     $headercode = $_SCRIPTS->getHeader() . $headercode;
     $header->set_var( 'plg_headercode', $headercode );     $header->set_var( 'plg_headercode', $headercode );
     // Retrieve any JavaScript libraries, variables and functions     // Retrieve any JavaScript libraries, variables and functions
     $header->set_var('plg_extrascript', $_SCRIPTS->getFooter());     $header->set_var('plg_extrascript', $_SCRIPTS->getFooter());
-</sxh>+</code>
  
 使っているテーマの header.thtml に追記する。 使っているテーマの header.thtml に追記する。
-<sxh html highlight:[13]>+<code html highlight:[13]>
 {doctype} {doctype}
 <html{html_attribute}{xmlns}> <html{html_attribute}{xmlns}>
行 470: 行 1028:
 {plg_extrascript} {plg_extrascript}
 </head> </head>
-</sxh>+</code>
  
 ==== forum.css の修正 ==== ==== forum.css の修正 ====
 Geeklog Forum Plugin の forum.css が Dokuwiki の syntaxhighlighter3 に悪影響するので修正\\ Geeklog Forum Plugin の forum.css が Dokuwiki の syntaxhighlighter3 に悪影響するので修正\\
 **%%/path/to/public_html/forum/forum/layout/forum.css%%** **%%/path/to/public_html/forum/forum/layout/forum.css%%**
-<sxh css>+<code css>
 /* CSS Declarations for Code block feature - default will use the .php one */ /* CSS Declarations for Code block feature - default will use the .php one */
 .pluginSolidOutline div .php { max-height:400px; overflow:auto; height:auto; width:auto; min-height:100px; } .pluginSolidOutline div .php { max-height:400px; overflow:auto; height:auto; width:auto; min-height:100px; }
 .pluginSolidOutline div .html { height:300px; overflow:auto; width:auto; min-height:100px; } .pluginSolidOutline div .html { height:300px; overflow:auto; width:auto; min-height:100px; }
 .pluginSolidOutline div .css { height:300px; overflow:auto; width:auto; min-height:100px; } .pluginSolidOutline div .css { height:300px; overflow:auto; width:auto; min-height:100px; }
-</sxh>+</code>
  
-===== Plugin ===== +===== ☢️古い資料です (Obsolete)☢️ =====
-[[http://www.dokuwiki.org/plugin:math2|Maths Publisher Plugin]]\\+
  
-===== geeklogのDokuWiki Plugin(注意: 以下は古い情報です) =====+==== geeklogのDokuWiki Plugin ====
  
-==== 管理者用のサイト設定 ====+=== 管理者用のサイト設定 ===
 使用言語: ja で日本語化されない場合は、/dokuwiki/conf/local.protected.phpにて追加設定を行う。\\ 使用言語: ja で日本語化されない場合は、/dokuwiki/conf/local.protected.phpにて追加設定を行う。\\
 **local.protected.php** に __**$conf['lang'] = 'ja';**__ を追加\\ **local.protected.php** に __**$conf['lang'] = 'ja';**__ を追加\\
行 511: 行 1068:
 ?> ?>
 </code> </code>
 +
 +===== 参考文献 =====
 +[[https://dokuwiki.oreda.net/plugin/list.html|DokuWikiおすすめプラグイン一覧。まとめ [DokuWikiで情報発信]]]\\
 +[[qita>ruddy95/items/e12498ab7c0eb56611a2|WEBページをコンテントセキュリティポリシー(CSP)対応させる - Qiita]]\\
 +[[qita>tearoom6/items/30e3aacaa432860d4b36|HTTP CSP について - Qiita]]\\
 +[[https://you84815.blogspot.com/2017/01/dokuwikicontent-security-policy.html|tobijibu-ashiato: DokuWikiのContent-Security-Policy対応方法]]\\
 +[[https://laboradian.com/show-text-immediately-using-font-display/|Webフォントを使う場合に font-display 記述子を使ってすぐにテキストを表示させる – ラボラジアン]]\\
 +[[https://www.achiachi.net/blog/index.html|トップページ [あちあち情報局]]]\\
 +
 +==== 付録 ====
 +[[tw>tomoyan596/status/1462064104101888002|これはDokuWikiの編集画面ですけど、CSSも埋められますけど、LESSでスタイル定義できたり...🤤PHP?🤔テーマファイルはcustom.lessとかコンパイルされますけど、編集しながら試したいのでlessphp呼び出してしまえばねぇ可能な訳でつい😅💦 / Twitter]]\\
 +[[tw>tomoyan596/status/1490051770806005760|😱😱😱CodeMirror Pluginががががが😥
 +多分テンプレートのモバイルCSSと相性宜しくない😅]]\\
 +[[tw>tomoyan596/status/1492593642459914240|またもや、CodeMirrorプラグインがテーマのドラフトステータスによりヤラレテル😱😱😱これはテーマ側での対処は速いけど、どのテーマとも相性出るならCodeMirrorプラグイン側に対処を入れるべきか❓🤔自分のサイト専用カスタムのcustom.lessで対処入れられるか❓🤔編集側にしか影響は無いけど…😅]]\\
 +[[tw>tomoyan596sp/status/1514366405139103747|AVIFもWebPのように、このような対応が良いですね🥰]]\\
 +[[tw>tomoyan596sp/status/1554871221518422016|サーバーをPHP 8へ移行してる🤤Wikiを移行してるだけだけど😅先ずはフルバックアップしてPHP 8対応版の Release 2022-07-31 "Igor" へアップグレード完了した🤔PHP 7.4 から PHP 8系へシステムのパッケージを入れ替える😃移行ははじめてですけど...🤔]]\\
 +[[tw>tomoyan596sp/status/1569795203896320000|Bootstrapテーマの目次の折り畳みがおかしいのは、TocTweakプラグインとテーマが喧嘩⚔️してるから😅テーマやプラグインは確かに便利で楽だけど、組み合わせはユーザーが自由にやるので、作者さんも全てのパターンに対処しきれません🤔 !important 重要☝😅]]\\
 +
  • linux/dokuwiki.1623208645.txt.gz
  • 最終更新: 2021/06/09 12:17
  • by ともやん