[Risolto]Cartella dati owncloud

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Avatar utente
..db..
Prode Principiante
Messaggi: 62
Iscrizione: martedì 10 maggio 2011, 12:57

[Risolto]Cartella dati owncloud

Messaggio da ..db.. »

Volendo cambiare la destinazione dei download, in quanto non voglio approfittare della partizione di root, ho editato il file /var/lib/owncloud/config/config.php inserendo la nuova directory... purtroppo ora ricevo questo errore :
Can't create data directory (/home/db/Desktop/ownCloud)
You can usually fix this by giving the webserver write access to the ownCloud directory '/usr/share/owncloud'
Impossibile creare la directory dei dati (/ home db/Desktop/ownCloud)
In genere è possibile risolvere il problema dando il webserver accesso in scrittura alla directory ownCloud '/usr /share/owncloud'
ho provato questi passaggi ma niente...
Stop your webserver
Check if your config.php already contains a datadirectory entry. If it does, remember that location (let's assume it's '/var/www/owncloud/data' for now).
Change or create the "datadirectory" entry in config.php file, so that it points to wherever you want to have your data from now on. Assuming the directory you want to move the data folder to is '/media/usbdisk/ocdata', your config.php should look like this after the change:
CODE: SELECT ALL
<?php
$CONFIG = array (
'datadirectory' => '/media/usbdisk/ocdata/',
'dbtype' => ...
Move all the existing files of the original data (/var/www/owncloud/data in our example) to that new location (if there are any), e.g. under linux:
CODE: SELECT ALL
mv /var/www/owncloud/data/* /media/usbdisk/ocdata/
Make sure the permission/ownership of the new folder is set up correctly, and that all files contained in it have the user running php as owner (see e.g. here for Linux how to find out which user that is). Let's assume your apache runs as "www-data" (as it e.g. would under Ubuntu). Then you should change all files to be owned by that user, like so:
CODE: SELECT ALL
chown -R www-data:www-data /media/usbdisk/ocdata

Under Windows: Give the user IIUSR all permissions on the new data folder
Start your webserver
Possibly (if your files don't show up) you might have to rescan your files (see e.g. here or here on how to do that)
qualcuno mi puo' aiutare... è molto semplice ma non so come fare... grazie :ciao:
Ultima modifica di ..db.. il sabato 5 ottobre 2013, 16:02, modificato 1 volta in totale.
Avatar utente
..db..
Prode Principiante
Messaggi: 62
Iscrizione: martedì 10 maggio 2011, 12:57

Re: Cartella dati owncloud

Messaggio da ..db.. »

alla fine ho risolto seguendo questa guida per l'installazione => http://doc.ubuntu-fr.org/owncloud

questa per creare un symlink della cartella data di owncloud ed i giusti permessi da dare! => http://feedelli.spcrunner.pagekite.me/b ... files.html

questo per capire come inserire il vostro utente nel gruppo www-data => http://www.ranfar.com/linux/232-aggiung ... -un-gruppo

ed ora sto provando quanto scritto qua => http://www.ranjith.info/p/owncloud.html
tuttolomo
Prode Principiante
Messaggi: 1
Iscrizione: mercoledì 15 aprile 2015, 16:23
Distribuzione: xubuntu 14.4, 32bit aspireone a150l
Sesso: Maschile

Re: [Risolto]Cartella dati owncloud

Messaggio da tuttolomo »

Ciao,

sto provando a fare la stessa cosa che volevi fare tu ma non ci sono riuscito erchè il link sui permessi non funziona più. riusciresti a scrivere l'iter che hai fatto?

Grazie,
alex
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: Google [Bot] e 2 ospiti