rapidou

sudo apt-get install -y apache2 mariadb-server libapache2-mod-php7.0 \
> php7.0-gd php7.0-json php7.0-mysql php7.0-curl \
> php7.0-intl php7.0-mcrypt php-imagick \
> php7.0-zip php7.0-xml php7.0-mbstring

cd /tmp
wget https://download.owncloud.org/community/owncloud-10.0.2.tar.bz2

sudo tar -xvf own..

sudo chown -R www-data:www-data owncloud

5.24
owncloud.conf
Alias /owncloud « /var/www/html/owncloud/ »

Options +FollowSymlinks
AllowOverride All

Dav off

SetEnv HOME /var/www/html/owncloud
SetEnv HTTP_HOME /var/www/html/owncloud

sudo ln -s /etc/apache2/sites_available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf

pi@ownglou:/tmp $ sudo chown -R www-data:www-data owncloud
pi@ownglou:/tmp $ sudo mv owncloud /var/www/html/
pi@ownglou:/tmp $ sudi vi /etc/apache2/sites-available/owncloud.conf
-bash: sudi : commande introuvable
pi@ownglou:/tmp $ sudo vi /etc/apache2/sites-available/owncloud.conf
pi@ownglou:/tmp $ sudo ln -s /etc/apache2/sites_available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
pi@ownglou:/tmp $ sudo ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
ln: impossible de créer le lien symbolique ‘/etc/apache2/sites-enabled/owncloud.conf’: Le fichier existe
pi@ownglou:/tmp $ sudo rm /etc/apache2/sites-enabled/owncloud.conf pi@ownglou:/tmp $ sudo ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
pi@ownglou:/tmp $ a2enmod headers
Enabling module headers.
Could not create /etc/apache2/mods-enabled/headers.load: Permission denied
pi@ownglou:/tmp $ sudo a2enmod headers
Enabling module headers.
To activate the new configuration, you need to run:
systemctl restart apache2
pi@ownglou:/tmp $ sudo systemctl restart apache2
pi@ownglou:/tmp $ a2enmod env
Module env already enabled
pi@ownglou:/tmp $ sudo a2enmod dir
Module dir already enabled
pi@ownglou:/tmp $ sudo a2enmod mime
Module mime already enabled
pi@ownglou:/tmp $ sudo mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]> create database owncloud;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> create user owncloud@localhost identified by ‘12345’
-> ;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> grant all privileges on owncloud.* to owncloud@localhost identified by ‘12345’;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit;
Bye

Partage cet article !

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *