[pmwiki-users] utf-8 issue
t20250408pmwiki at logand.com
t20250408pmwiki at logand.com
Wed Apr 9 12:35:43 PDT 2025
Hi Petko,
On Wed 09 Apr 2025 at 00:01, t20250408pmwiki at logand.com wrote:
> On Tue 08 Apr 2025 at 23:58, Petko Yotov <5ko at 5ko.fr> wrote:
>> You should have a file config.php in the pmwiki/local directory, and
>> enable UTF-8 in that file.
this worked, thank you very much!
A few more questions:
1) What would break if I used html5 in a custom template instead of
xhtml? Is it better to stick with xhtml?
2) I use NixOS and keep all immutable stuff in read only /nix/store.
Unfortunatelly, because of the way pmwiki is structured,
I have to symlink so much stuff into the mutable dataDir:
system.activationScripts.ensure-pmwiki = ''
if ! test -d ${dataDir}; then
mkdir ${dataDir}
fi
chown ${app}:${app} ${dataDir}
chmod 755 ${dataDir}
ln -sf ${pmwiki}/share/pmwiki.php ${dataDir}
ln -sf ${pmwiki}/share/pub ${dataDir}
ln -sf ${pmwiki}/share/scripts ${dataDir}
ln -sf ${pmwiki}/share/wikilib.d ${dataDir}
ln -sf ${indexPhp} ${dataDir}/index.php
ln -sf ${local}/local ${dataDir}
ln -sf ${robotsTxt} ${dataDir}/robots.txt
if ! test -d ${dataDir}/wiki.d; then
mkdir ${dataDir}/wiki.d
fi
chown -R ${app}:${app} ${dataDir}/wiki.d
if ! test -d ${dataDir}/uploads; then
mkdir ${dataDir}/uploads
fi
chown -R ${app}:${app} ${dataDir}/uploads
systemctl restart phpfpm-pmwiki
'';
Is there a way to minimize this symlinking somehow?
Ideally, there would be read-only directory for immutable stuff
and read-write directory for mutable stuff (wiki.d and uploads)
and these two would not need to be mixed.
One idea would be to have web server root in the read-only /nix/store
and somehow configure the location of the wiki.d and uploads
directories in config.php. Is this possible?
The way wikilib.d and wiki.d work is kind of overlay, where
rw files in wiki.d can overlay ro files in wikilib.d.
Would it be possibe to do something like this for skins,
so that can overlay custom skin dir and I do not have to "patch"
the upstream pmwiki-2.4.3 package? Maybe an overlay for the whole
pub/ directory?
Cheers,
Tomas
More information about the pmwiki-users
mailing list