Outils personnels

Owncloud : installation sur Debian 6 : Différence entre versions

De wikiGite

Ligne 6 : Ligne 6 :
 
  mysql -u root -p  
 
  mysql -u root -p  
 
<source lang="sql">
 
<source lang="sql">
CREATE USER 'owncloud'@'localhost' IDENTIFIED BY '***';
+
CREATE DATABASE  `owncloud` ;
GRANT USAGE ON * . * TO 'owncloud'@'localhost' IDENTIFIED BY '***' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
+
CREATE USER 'owncloud'@'localhost' IDENTIFIED BY '***';
CREATE DATABASE IF NOT EXISTS `owncloud` ;
+
GRANT ALL PRIVILEGES ON * . * TO 'owncloud'@'localhost' IDENTIFIED BY '***' ;
GRANT ALL PRIVILEGES ON `owncloud` . * TO 'owncloud'@'localhost';
+
GRANT ALL PRIVILEGES ON `owncloud` . * TO 'owncloud'@'localhost';
 
</source>
 
</source>
 +
Bien créer la base puis associer un utilisateur à cette base afin d'eviter cette erreur :
 +
[Error message: unable to establish a connection] [Native code: 0] MDB2 Error: connect failed: _doConnect: [Error message: unable to establish a connection][Native code: 0]
  
 
Installation de owncloud :
 
Installation de owncloud :

Version du 8 avril 2012 à 11:40

dépendances :

apt-get install apache2 php5 php5-mysql php5-json mp3info curl libcurl3 libcurl3-dev php5-curl zip git mysql-server

Installation de la base mysql:

mysql -u root -p 
CREATE DATABASE  `owncloud` ;
CREATE USER 'owncloud'@'localhost' IDENTIFIED BY  '***';
GRANT ALL PRIVILEGES ON * . * TO  'owncloud'@'localhost' IDENTIFIED BY  '***' ;
GRANT ALL PRIVILEGES ON  `owncloud` . * TO  'owncloud'@'localhost';

Bien créer la base puis associer un utilisateur à cette base afin d'eviter cette erreur :

[Error message: unable to establish a connection] [Native code: 0] MDB2 Error: connect failed: _doConnect: [Error message: unable to establish a connection][Native code: 0]

Installation de owncloud :

cd /var/
git clone git://gitorious.org/owncloud/owncloud.git
chown -R www-data:www-data owncloud

Apache :