Owncloud : installation sur Debian 6 : Différence entre versions
De wikiGite
| Ligne 30 : | Ligne 30 : | ||
Apache : | Apache : | ||
| + | fichier de configuration du site : | ||
| + | <source lang=apache> | ||
| + | NameVirtualHost *:443 | ||
| + | <VirtualHost *:443> | ||
| + | |||
| + | ServerName owncloud.systea.fr | ||
| + | ServerAlias www.owncloud.systea.fr | ||
| + | |||
| + | DocumentRoot /var/owncloud | ||
| + | <Directory /> | ||
| + | Options FollowSymLinks | ||
| + | AllowOverride None | ||
| + | Order allow,deny | ||
| + | Allow from all | ||
| + | <LimitExcept GET POST OPTIONS> | ||
| + | Allow from all | ||
| + | </LimitExcept> | ||
| + | </Directory> | ||
| + | |||
| + | ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ | ||
| + | <Directory "/usr/lib/cgi-bin"> | ||
| + | AllowOverride None | ||
| + | Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | ||
| + | Order allow,deny | ||
| + | Allow from all | ||
| + | </Directory> | ||
| + | |||
| + | SSLEngine on | ||
| + | SSLCertificateFile /etc/ssl/mycert.crt | ||
| + | SSLCertificateKeyFile /etc/ssl/mykey.key | ||
| + | SSLVerifyClient none | ||
| + | </VirtualHost> | ||
| + | </source> | ||
php: | php: | ||
Version actuelle datée du 17 décembre 2012 à 10:21
dépendances :
apt-get install apache2 php5 php5-gd 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 `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]
- git :
Installation de owncloud :
cd /var/ git clone git://gitorious.org/owncloud/owncloud.git chown -R www-data:www-data owncloud
Mettre à jour OwnCloud
cd /var/owncloud git pull
- versions stable :
http://owncloud.org/releases/
Apache :
fichier de configuration du site :
NameVirtualHost *:443
<VirtualHost *:443>
ServerName owncloud.systea.fr
ServerAlias www.owncloud.systea.fr
DocumentRoot /var/owncloud
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<LimitExcept GET POST OPTIONS>
Allow from all
</LimitExcept>
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/mycert.crt
SSLCertificateKeyFile /etc/ssl/mykey.key
SSLVerifyClient none
</VirtualHost>
php: Par défaut, PHP n'autorise pas l'upload de fichier de plus de 2 Mo. Il faut donc changer cette configuration en éditant le fichier /etc/php5/apache2/php.ini pour augmenter cette limite à 1000 Mo (ou plus, c'est à adapter à vos besoins).
post_max_size = 1000M upload_max_filesize = 1000M
En fonction des extensions activées dans owncloud il peut y avoir des dépendances optionnelles :
aptitude install php5-mcrypt php5-imap php5-recode
