owncloud | LinuxHostSupport Linux Tutorials and Guides Sun, 02 Aug 2020 16:51:28 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 How to install OwnCloud 10 on Debian 9 https://linuxhostsupport.com/blog/how-to-install-owncloud-10-on-debian-9/ https://linuxhostsupport.com/blog/how-to-install-owncloud-10-on-debian-9/#comments Fri, 27 Apr 2018 07:19:54 +0000 https://linuxhostsupport.com/blog/?p=530 ownCloud is a flexible, self-hosted open source PHP web application used for data synchronization and file sharing. ownCloud allows you to easily manage your files, calendars, contacts, to-do lists, and more, making it a great alternative to the popular Google Drive, Box, Dropbox, iCloud and other cloud platforms. Installing ownCloud on Debian, is fairly easy […]

The post How to install OwnCloud 10 on Debian 9 appeared first on LinuxHostSupport.

]]>
ownCloud is a flexible, self-hosted open source PHP web application used for data synchronization and file sharing. ownCloud allows you to easily manage your files, calendars, contacts, to-do lists, and more, making it a great alternative to the popular Google Drive, Box, Dropbox, iCloud and other cloud platforms. Installing ownCloud on Debian, is fairly easy task and should not take more than 15 minutes. This guide should work on other Debian based systems as well but was tested and written for Debian 9 VPS. Let’s get started with installing ownCloud on your Debian 9 server.

1. Install MySQL Server

ownCloud can use MySQL/MariaDB, PostgreSQL, or SQLite as a backend data storage. In this guide we will use MariaDB as database engine.  To install the MariaDB server  run the following command:

sudo apt install mariadb-server

When the installation is complete, run the following commands to start and enable the MariaDB service :

sudo systemctl start mariadb
sudo systemctl enable mariadb

To secure your installation and to setup the root password issue:

sudo mysql_secure_installation

2. Create MySQL Database and Usser

To create a database and mysql user for our ownCloud installation run the following commands:

mysql -u root -p
MariaDB [(none)]> CREATE DATABASE owncloud CHARACTER SET utf8;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'owncloud_passwd';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Install Redis

Redis is an in-memory database which will be used by the ownCLoud installation as memory cache. To install the latest Redis version from the default Debian repositories run the following command:

sudo apt install redis-server

3. Install Apache and PHP

Installing Apache, PHP and PHP modules is pretty straightforward process, just issue the following command:

sudo apt install apache2 mariadb-server libapache2-mod-php7.0 \
    openssl php-imagick php7.0-common php7.0-curl php7.0-gd \
    php7.0-imap php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring \
    php7.0-mcrypt php7.0-mysql php7.0-pgsql php-smbclient php-ssh2 \
    php7.0-sqlite3 php7.0-xml php7.0-zip php-redis php-apcu

When the installation is complete, run the following commands to start and enable the Apache service :

sudo systemctl start apache2
sudo systemctl enable apache2

4. Install ownCloud

The ownCLoud 10 package is not available in default Debian 9 repositories so we will install the package from the official ownCLoud repositories. First add the ownCloud GPG key to the apt sources keyring:

wget -qO- https://download.owncloud.org/download/repositories/stable/Debian_9.0/Release.key | sudo apt-key add -

once the key is added run the following command to enable the ownCLoud repository:

echo 'deb https://download.owncloud.org/download/repositories/stable/Debian_9.0/ /' | sudo tee /etc/apt/sources.list.d/owncloud.list

Before installing the ownCLoud package we need to enable HTTPS transport for the debian apt tool by installing the following package:

sudo apt install apt-transport-https

Update the apt cache list and install the ownCLoud package with the following command:

sudo apt update 
sudo apt install owncloud-files

The command above will install the ownCLoud files in the /var/www/owncloud directory.

5. Configure Apache

To configure the Apache web server to serve the ownCLoud directory create a new configuration file with the following content:

sudo nano /etc/apache2/sites-available/owncloud.conf
Alias /owncloud "/var/www/owncloud/"

<Directory /var/www/owncloud/>
Options +FollowSymlinks
AllowOverride All

<IfModule mod_dav.c>
Dav off
</IfModule>

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

</Directory>

Enable the Apache ownCloud configuration:

sudo a2ensite owncloud

and restart the Apache web server:

 sudo systemctl restart apache2

Finally set the correct permissions, so the ownCLoud can upload files:

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

6. Finish the ownCLoud installation

In the last step of this guide we need to access to ownCLoud Web Interface and finish the installation.

To finish the installation open your browser and navigate to http://your_server_ip_address/owncloud/.

How to install OwnCloud 10 on Debian 9

To create your first admin user enter the Username and Password under the “Create an admin account” label, next click on the “Storage & Database” link which will give you an option to select your database backed. Leave the default “Data Folder” value “/var/www/owncloud/data” and under the “Configure the database” label and select “MySQL/MariaDB”. In the database fields enter the database user, the database user password and the database name you previously created. Finally clock on the blue “Finish setup” button and the ownCLoud installer will populate the database and redirect you to the ownCloud login screen.


That’s it. You have successfully installed ownCloud 10 server on your Debian 9 VPS. For more information about how to manage your ownCloud installation, please refer to the official ownCloud User Manual.


Of course you don’t have to Install ownCloud on your Debian 9 server, if you use one of our Linux Support Services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post, on How To Install ownCloud 10 on Debian 9, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

The post How to install OwnCloud 10 on Debian 9 appeared first on LinuxHostSupport.

]]>
https://linuxhostsupport.com/blog/how-to-install-owncloud-10-on-debian-9/feed/ 17
How to Install ownCloud 10 on CentOS 7 https://linuxhostsupport.com/blog/how-to-install-owncloud-10-on-centos-7/ https://linuxhostsupport.com/blog/how-to-install-owncloud-10-on-centos-7/#respond Wed, 04 Apr 2018 07:46:46 +0000 https://linuxhostsupport.com/blog/?p=505 Today we have a tutorial on how to install ownCloud 10 on CentOS 7.  ownCloud is a popular open source web application used for data synchronization, file sharing, collaboration . It is a cross-platform and super easy to use application that that offers a great security and total control of your files.You can use our […]

The post How to Install ownCloud 10 on CentOS 7 appeared first on LinuxHostSupport.

]]>
Today we have a tutorial on how to install ownCloud 10 on CentOS 7.  ownCloud is a popular open source web application used for data synchronization, file sharing, collaboration . It is a cross-platform and super easy to use application that that offers a great security and total control of your files.You can use our Server Support Services, and we will install ownCloud on your private server with easy, and we will do all the configuration and hardening required. We are always available via the Live Chat option in the bottom right corner of our website, where you can ask for more info, about time-frame, pricing, etc.. Let’s get started with installing ownCloud 10.

install owncloud 10 on centos 7

At the time of writing this tutorial, the latest stable version of ownCloud is 10.0.7, and it requires the following:

  • PHP >= 5.6 (PHP 7.0 or above is recommended), with the following PHP extensions enabled: XML (Expat), curl, PDO, Phar, GD Graphics Library version 2.0.x+, DOM, ctype, JSON, iconv, intl, mcrypt, openssl, bz2, Zlib and Zip.
  • Apache Web Server >= 2.0 compiled with mod_rewrite module
  • MySQL >= 5.x (MySQL 5.5 or later is recommended), MariaDB 5.5+, PostgreSQL, or SQLite installed on your Linux virtual server.

Let’s start with the ownCloud installation procedure.

1. Update the OS packages

Make sure the CentOS 7 server packages are fully up-to-date:

yum clean all
yum -y update

2. Install PHP 7.1 and the required PHP extensions

The default PHP version on CentOS 7 is PHP 5.4. In this tutorial, we will install PHP version 7.

Install EPEL and Remi repository packages:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm

Enable the Remi PHP 7.1 repository:

yum-config-manager --enable remi-php71

and install PHP 7.1 and several PHP extensions required by ownCloud by running the following command:

yum install php php-mysqlnd php-pecl-zip php-xml php-mbstring php-gd php-mcrypt php-pear php-pspell php-pdo php-xml php-intl php-zip php-zlib

Open the PHP configuration file and increase the upload file size. You can find the location of the PHP configuration file by executing the following command:

php -i | grep -i php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

Increase the default post_max_size and upload_max_filesize values in the PHP configuration, e.g.:

sed -i "s/post_max_size = 8M/post_max_size = 256M/" /etc/php.ini
sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 256M/" /etc/php.ini

You can set the post_max_size and upload_max_filesize values according to your needs.
Do not forget to restart the Apache service for the changes to take effect:

systemctl restart httpd.service

3. Download and extract ownCloud

Download ownCloud 10.0.7 available at http://download.owncloud.org/ in some directory on the server and extract the downloaded ownCloud archive using the following commands:

cd /opt
wget https://download.owncloud.org/community/owncloud-10.0.7.zip
yum -y install unzip 
unzip -d /var/www/html/ owncloud-10.0.7.zip

Change the permissions on the owncloud directory:

chown apache:apache -R /var/www/html/owncloud/

4. Create a new MySQL database

Create a new MySQL database for ownCloud on your server:

mysql -u root -p
mysql> CREATE DATABASE ownclouddb;
mysql> GRANT ALL PRIVILEGES ON ownclouddb.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'Y0ur-pa55w0rD' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> quit

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘owncloud.conf’ on your virtual server:

touch /etc/httpd/conf.d/owncloud.conf
vi /etc/httpd/conf.d/owncloud.conf

Then, add the following lines:

<VirtualHost YOUR_SERVER_IP:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "/var/www/html/owncloud/"
ServerName yourdomain.com
ServerAlias www.yourdomain.com

ErrorLog "/var/log/httpd/yourdomain.com-error_log"
CustomLog "/var/log/httpd/yourdomain.com-access_log" combined

<Directory "/var/www/html/owncloud/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Create a new ownCloud data directory outside of the document root directory:

mkdir -p /opt/data
chown apache:apache -R /opt/data/

Restart the Apache web server for the changes to take effect:

systemctl restart httpd

5. Install a new SSL certificate

Install a new SSL certificate from Let’sEncrypt, or obtain a new SSL certificate from some Certificate Authority.

yum -y install mod_ssl python-certbot-apache
certbot --apache -d yourdomain.com

Replace ‘yourdomain.com’ with the actual domain name you want to use to access the ownCloud installation.

6. Continue the ownCloud installation using a web browser

Open https://yourdomain.com in your favorite web browser, create a new administrator account (set an admin username and password), click on ‘Storage & database’, change the ‘data’ directory to ‘/opt/data’ (do not leave the default setting ‘/var/www/html/owncloud/data’). Click on ‘Configure the database’, select MySQL/MariaDB, enter the database information (MariaDB username, password, database name and localhost:3306 as MariaDB hostname/port) and finally click on the ‘Finish setup’ button.

installing owncloud 10 on centos 7

That is it, the OwnCloud 10 installation on your CentOs 7 server is now complete.

 


Of course, you don’t have to install and configure OwnCloud 10 on a CentOS 7 VPS, if you use one of our Hosting Support Services, in which case our expert Linux admins will to install and configure OwnCloud 10 on CentOS 7 for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post on how to install and configure OwnCloud 10 on a CentOS 7 VPS, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

The post How to Install ownCloud 10 on CentOS 7 appeared first on LinuxHostSupport.

]]>
https://linuxhostsupport.com/blog/how-to-install-owncloud-10-on-centos-7/feed/ 0
How to install ownCloud 9 on Ubuntu https://linuxhostsupport.com/blog/how-to-install-owncloud-9-on-ubuntu/ https://linuxhostsupport.com/blog/how-to-install-owncloud-9-on-ubuntu/#respond Wed, 26 Apr 2017 14:13:20 +0000 https://linuxhostsupport.com/blog/?p=69 In today’s tutorial, we will explain how to install ownCloud 9.0 on a fresh Ubuntu 16.04 LTS installation. ownCloud is a self-hosted, open source, file sync and share app platform written in PHP. With ownCloud you can sync and access your files through a web interface, create contacts, calendars and bookmarks, easily share your data […]

The post How to install ownCloud 9 on Ubuntu appeared first on LinuxHostSupport.

]]>
In today’s tutorial, we will explain how to install ownCloud 9.0 on a fresh Ubuntu 16.04 LTS installation. ownCloud is a self-hosted, open source, file sync and share app platform written in PHP. With ownCloud you can sync and access your files through a web interface, create contacts, calendars and bookmarks, easily share your data across devices, preview and edit your text files, documents and images and much more. It’s a great alternative to Dropbox, Google Drive and similar file-sharing services.

Log in to your server as root

ssh user@vps_IP

and make sure that all packages are up to date:

sudo apt update && sudo apt -y upgrade

Add ownCloud Repository

We will install the owncloud package from the official ownCloud repository. owncloud is a meta package which will install multiple packages including apache2, PHP 7.0 and all necessary PHP modules, basically you will get a complete installation with all dependencies.

Run the following commands to add the ownCloud repository PGP key to your system:

sudo wget -nv https://download.owncloud.org/download/repositories/9.1/Ubuntu_16.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo rm -f Release.key

Add the ownCloud repository to your system using the following command:

echo 'deb http://download.owncloud.org/download/repositories/9.1/Ubuntu_16.04/ /' | sudo tee --append /etc/apt/sources.list.d/owncloud.list > /dev/null

Install ownCloud

The ownCloud installation is pretty straightforward, once the repository is added update the apt package index, install the owncloud package:

sudo apt update
sudo apt install owncloud

You can choose between SQLite, MYSQL/MariaDB and PostgreSQL. SQLite is the default database but it is not recommended for production, MariaDB which we will be using in this tutorial is the ownCloud recommended database.

Install the MariaDB package using the following command:

sudo apt-get install mariadb-server

When the installation is complete, run the following command to secure your installation:

mysql_secure_installation

Next, we need to create a database for our ownCloud installation.

mysql -uroot -p
MariaDB [(none)]> CREATE DATABASE owncloud;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'my_strong_password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

To access the graphical ownCloud 9 installation wizard open the following URL in your browser http://your_ip_address/owncloud, enter the admin account username and password, select ‘MySQL/MariaDB’ and enter the database name, database user and password. Finally, click on the “Finish setup” button located on the bottom of the page.

That’s it. You have successfully installed ownCloud version 9 on your Ubuntu VPS.
For more information about how to manage your ownCloud installation, please refer to the ownCloud documentation.


Of course, you don’t have to do any of this if you use one of our Software Installation Services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

The post How to install ownCloud 9 on Ubuntu appeared first on LinuxHostSupport.

]]>
https://linuxhostsupport.com/blog/how-to-install-owncloud-9-on-ubuntu/feed/ 0