Difference between revisions of "OwnCloud"

From Wikislax
Jump to: navigation, search
(Creating the owncloud database)
Line 3: Line 3:
 
== What is OwnCloud ? ==
 
== What is OwnCloud ? ==
  
[http://owncloud.com/ OwnCloud] is a file synchronization server. It affords keeping a hierarchy of files synchronized on different clients and operating systems.
+
[http://owncloud.com/ OwnCloud] is a file synchronization server. It affords keeping a hierarchy of files synchronized on different clients and operating systems. The installation procedure is described on the [https://doc.owncloud.com/server/10.15/admin_manual/installation/quick_guides/ubuntu_20_04.html/ owncloud install documentation].
  
 
== Installing OwnCloud ==
 
== Installing OwnCloud ==
Line 31: Line 31:
 
This creation can be effected in phpmyadmin creating the owncloud@local user and database.
 
This creation can be effected in phpmyadmin creating the owncloud@local user and database.
  
Alternatively the owncloud documentation also provides this script (wich did not work for us) :
+
Alternatively the owncloud documentation also provides this script :
  
 
  mysql -u root -e \
 
  mysql -u root -e \
Line 38: Line 38:
 
   GRANT ALL PRIVILEGES ON *.* TO 'owncloud'@'localhost' WITH GRANT OPTION; \
 
   GRANT ALL PRIVILEGES ON *.* TO 'owncloud'@'localhost' WITH GRANT OPTION; \
 
   FLUSH PRIVILEGES;"
 
   FLUSH PRIVILEGES;"
 +
 +
== setting up the owncloud database ==
 +
 +
occ maintenance:install \
 +
    --database "mysql" \
 +
    --database-name "owncloud" \
 +
    --database-user "owncloud" \
 +
    --database-pass "password" \
 +
    --data-dir "/var/www/owncloud/data" \
 +
    --admin-user "admin" \
 +
    --admin-pass "admin"
  
 
<br clear=all>
 
<br clear=all>
  
 
{{pFoot|[[Asterisk]]|[[Main Page]]|[[Desktop software]]}}
 
{{pFoot|[[Asterisk]]|[[Main Page]]|[[Desktop software]]}}

Revision as of 12:42, 19 January 2025

What is OwnCloud ?

OwnCloud is a file synchronization server. It affords keeping a hierarchy of files synchronized on different clients and operating systems. The installation procedure is described on the owncloud install documentation.

Installing OwnCloud

OwnCloud is available as a PHP application relying on various databases. See the OwnCloud documentation for details. We will be using MySQL. download tarball then untar and install.

# tar -C /usr/local -xvf owncloud-complete-20240724.tar.bz2
# chown -R apache:apache owncloud
# cd /var/www/htdocs
# ln -s /usr/local/owncloud owncloud
# chown -R apache:apache owncloud

Creating the occ helper script

This is the owncloud administration command.

# FILE="/usr/local/bin/occ"
# cat <<EOM >$FILE
> #! /bin/bash
> cd /usr/local/owncloud
> sudo -E -u apache /usr/bin/php /usr/local/owncloud/occ "\$@"
> EOM
# chmod u+x $FILE

Creating the owncloud database

This creation can be effected in phpmyadmin creating the owncloud@local user and database.

Alternatively the owncloud documentation also provides this script :

mysql -u root -e \
  "CREATE DATABASE IF NOT EXISTS owncloud; \
  CREATE USER IF NOT EXISTS 'owncloud'@'localhost' IDENTIFIED BY 'password'; \
  GRANT ALL PRIVILEGES ON *.* TO 'owncloud'@'localhost' WITH GRANT OPTION; \
  FLUSH PRIVILEGES;"

setting up the owncloud database

occ maintenance:install \
    --database "mysql" \
    --database-name "owncloud" \
    --database-user "owncloud" \
    --database-pass "password" \
    --data-dir "/var/www/owncloud/data" \
    --admin-user "admin" \
    --admin-pass "admin"


Asterisk Main Page Desktop software