User Tools

Site Tools


dokuwiki

This is an old revision of the document!


Dopo un aggiornamento del port in FreeBSD, è necessario cambiare l'owner e il group di alcune directory:

ks3367031# pwd
/usr/local/www/dokuwiki/data
ks3367031# ll
total 142
-r--r--r--   1 root  wheel     31 May  5 22:53 .htaccess
-r--r--r--   1 root  wheel     32 May  5 22:53 _dummy
drwxr-xr-x   3 www   www    56320 May 13 11:44 attic
drwxr-xr-x  18 www   www      512 May 13 11:44 cache
-rw-r--r--   1 www   www     7180 Aug 18  2012 deleted.files
drwxr-xr-x   2 www   www     1536 May 13 12:01 index
drwxr-xr-x   2 www   www      512 May 13 12:02 locks
drwxr-xr-x   3 www   www     3584 May  5 22:53 media
drwxr-xr-x   2 www   www      512 May 13 11:44 media_attic
drwxr-xr-x   2 www   www     4608 May 13 11:44 media_meta
drwxr-xr-x   4 www   www    25088 May 13 11:44 meta
drwxr-xr-x   4 www   www     7680 May  9 11:24 pages
-r--r--r--   1 root  wheel   7917 May  5 22:53 security.png
-r--r--r--   1 root  wheel  12093 May  5 22:53 security.xcf
drwxr-xr-x   2 www   www      512 May  5 22:53 tmp

Con il comando:

chown www:www attic/ cache/ index/ locks/ media/ media_attic/ media_meta/ meta/ pages/ tmp/

Si entra con *admin* e poi con la password di root.

Dove sono registrati i dati?

root@serverHP:/var/lib/dokuwiki/data/pages# ls -alh
total 64K
drwx------  4 www-data www-data 4,0K  7 juil. 22:30 .
drwx------ 10 www-data www-data 4,0K  3 juil. 23:42 ..
-rw-r--r--  1 www-data www-data   53  7 juil. 20:52 apache.txt
-rw-r--r--  1 www-data www-data 1,2K  7 juil. 22:55 back_up.txt
-rw-r--r--  1 www-data www-data   51  7 juil. 22:25 dokuwiki.txt
-rw-r--r--  1 www-data www-data   53  7 juil. 21:02 hardware.txt
-rw-r--r--  1 www-data www-data    8  7 juil. 20:52 mail.txt
-rw-r--r--  1 www-data www-data  444  7 juil. 20:52 mio_rapporto_col_programma_in_date.txt
-rw-r--r--  1 www-data www-data 5,3K  7 juil. 23:11 mutt.txt
-rw-r--r--  1 www-data www-data  205  7 juil. 21:00 nginx.txt
drwxr-xr-x  2 www-data www-data 4,0K  3 juil. 23:42 playground
-rw-r--r--  1 www-data www-data   48  7 juil. 22:26 server.txt
-rw-r--r--  1 www-data www-data   52  7 juil. 20:40 start.txt
-rw-r--r--  1 www-data www-data    7  7 juil. 21:01 text_editors.txt
drwxr-xr-x  2 www-data www-data 4,0K  3 juil. 23:42 wiki

io in realtà faccio il back up più su, ma forse è inutile? Prendo tutta la directory dokuwiki, compreso un sacco di cache che forse è ridondante.

Adesso [25 maggio 2013] che ho risolto il problema dell'invio di mail dal server inviare_mail_dal_server posso anche invitare altre persone a collaborare alla mia wiki; per esempio Florence per i film.

Sul km2 sotto FreeBSD la wiki funziona bene, ma da quando ho sostituito *sendmail* con *opensmtp* non riesco più ad inviare mail di conferma a chi si iscrive. Ho cambiato i parametri in

/use/local/etc/php.ini

ma continua a non funzionare.

Non è grave perché in ogni caso ho potuto creare l'account per Florence anche direttamente, entrando come admin.


Per modificare il file di configurazione, cioè dokuwiki.php in

ks3367031# pwd
/usr/local/www/dokuwiki/conf

cambiare provvisoriamente i permessi - di default a 0444 - con il comando:

ks3367031# chmod 0644 dokuwiki.php

e poi rimetterli a posto con il comando:

ks3367031# chmod 0444 dokuwiki.php
dokuwiki.1401722453.txt.gz · Last modified: 2014/06/02 17:20 by francesco