Foswiki installation on the Strato VPS server
Todo
Foswiki - store: van rcs naar plain file
Van belang om te kunnen printen ook, want ook op wiki.bousard.be krijg ik hetzelfde lege scherm als op wiki.boossy.be als ik wil printen van een topic met een revisie hoger dan 1.
Printen mislukt ook weer / nog steeds
URL Auto Redirector rules moeten aangepast worden, want volgorde van de url-parameters is anders:
Nog wat skincorrecties
Weggehaald uit
WebPreferences: Set PATTERNSKIN_NAVIGATION_TOPIC = System/PatternSkinThemeFatWillyNavigation
Manage Bookmarks redirects to my user topic
see:
Question2226: Manage Bookmarks redirects to my user topic - Support - Foswiki
cause: mixed skin setup
Solution: set the skin globally (Set SKIN = nat in Main.SitePreferences), but then the login redirect goes wrong (see next issue below).
A workaround is copying the templates/bookmarks.pattern.tmpl to both bookmarks.tmpl and bookmarks.nat.tmpl.
Then you can manage your bookmarks!
Login always redirects to WebHome
see:
Question2224: Login always redirects to WebHome - Support - Foswiki
When I reset the {HomePagePlugin} value, redirect is correct.
However, afterwards I no longer get the 'fancy' login page.
Therefore I have to enable NatSkin globally (Set SKIN = nat in Main.SitePreferences)... and guess what, afterwards the redirect is back to WebHome...
So not solved yet.
What things can be checked/done:
- compare Apache config explio wiki => al gedaan
- remove SKIN settings in the Boossy web, since they're now set globally => ook eens geprobeerd
or
- set SKIN in webPreferences in the Main instead of in the SitePreferences (and then keep the SKIN settings in the Boossy web)
- subdomein wiki.bousard.be aangemaakt in strato (24/07/2025)
Know that in eXplio I get the new, fancy login (older NatSkin version), and on
HostingSquad as well (older NatSkin version as well).
My links (ListyPlugin) is missing
see:
Question2213: My links (ListyPlugin) is missing - Support - Foswiki
So they're no longer in the (left) sidebar, but top right, between + New and your profile icon.
Mail
Zie D:\HybDrive\Shares_full_access\sbo-Public\wiki\180322-0419-TWiki2FOSWIKI
Foswiki - short url's
Adapted the apache .conf file accordingly.
- /wiki/ en /+wiki/ overal vervangen door / aan de 'bron'-kant
- de doelkant moet wel /wiki/ behouden
Foswiki - cache van 30GB
- In wiki/tools !purgeCache uitgevoerd.
- En een .htaccess toegevoegd (?)
Foswiki - 'Remember me' bij login - 250608
Ik 'denk' dat het de volgende instelling is:
- in de configuration (/bin/configure)
- Security and Authentication section
- Sessions tab
- zet Show expert options aan
- Cookie Expiry: 2600000 (idem als Session Expiry)
En dan 'Onthou mij op deze computer' veranderen in 'Onthouden op deze computer'
Foswiki - 250423
Register users
StijnBousard
admin
Niet meer zoals in het twiki-tijdperk (
FwManagingWebs)
/srv/htdocs/wiki.bousard.be$ sudo -u www-data tools/configure -save -set {Password}='123abcDefGhij'
Wordt op die manier geëncrypteerd opgeslagen in \lib\LocalSite.cfg.
Verdere registraties niet toelaten
In /bin/configure:
- Security and Authentication
- Registration tab
- Enable User Registration: vinkje weghalen
- Verify User Registration: aanvinken (klaagt dan wel dat email niet ingeschakeld is, maar dat is een probleem voor later)
Foswiki - februari 2025
Niet meteen gedocumenteerd, dus hier wat notities zoals ik het me herinner en op basis van de bash_history:
de gebruikelijke PERL-modules
sudo cpanm CGI::Session
sudo cpanm Crypt::PasswdMD5
sudo cpanm File::Copy::Recursive
sudo cpanm JSON
perl rewriteshebang.pl
Verder weet ik het zo niet meer.
Misschien waren er wat zaken nodig om met APACHE te werken ipv met NGINX.
sudo a2enmod actions fcgid alias proxy_fcgi
sudo systemctl restart apache2
sudo a2dismod mpm_prefork
sudo a2enconf php8.3-fpm
sudo systemctl reload apache2
sudo systemctl restart apache2
sudo cpanm Date::Manip
cd foswiki
cd ..
sudo chown -R www-data:www-data foswiki
cd foswiki
sudo sh tools/fix_file_permissions.sh
cd tools
sudo perl rewriteshebang.pl
export
PERL5LIB ="/home/admin/perl5/lib/perl5"
export PERL_LOCAL_LIB_ROOT="/home/admin/perl5"
export PERL_MB_OPT="--install_base "/home/admin/perl5""
export PERL_MM_OPT="INSTALL_BASE=/home/admin/perl5"
sudo a2enmod mod_perl
perl -e 'use CGI; print $CGI::VERSION."\n"'
which perl
sudo cpanm Locale::Language
sudo a2query -s
sudo systemctl start apache2
apache2ctl -V
a2query -s
sudo systemctl status apache2
sudo systemctl status mysql
php -v
sudo phpenmod mbstring