• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Control Panels

How to install ownCloud on Debain 9

How VPS by How VPS
November 2, 2018
in Control Panels
0
How to install ownCloud on Debain 9
0
SHARES
27
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Introduction
  2. Before You Start
  3. Step 1 – Installing An OwnCloud Instance
  4. Step 2 – Modifying Apache Document Root
  5. Step 3 – Setting Up Your Database
  6. Step 4 – Setting Up OwnCloud
  7. Conclusion
  8. Check out these top 3 Cloud hosting services:
    1. Was this article helpful?

Introduction

OnwCloud is a reliable, self-hosted PHP web application designed to support file sharing and data synchronization. It’s a secure, open-source collaboration package that enables web users to manage contacts, files, calendars, and more in a unified location.

This tutorial will help you install and set up ownCloud on your Debian 9 system to boost security and give you the control of all content.

Before You Start

For the process to run flawlessly, you require the following:

  • The LAMP (Linux, Apache, MySQL, and PHP) Stack installed on your Debian 9 system.

Step 1 – Installing An OwnCloud Instance

The default Debian repository does not come with an ownCloud package. Fortunately, ownCloud has its dedicated repository which can be added to your system to facilitate the installation. Let’s incorporate the ownCloud repository to Debian 9.

First, run the command below to update the local package index:

$ sudo apt update

Next, execute the command below to install the apt-transport-https packages which enable you to utilize the deb https:// to signify external repositories used over HTTPs.

$ sudo apt install curl apt-transport-https

Now, use the command below to obtain OwnCloud release keys before importing it together with its apt-key utility:

$ curl https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key | sudo apt-key add -

OwnCloud release key features the Pretty Good Privacy (PGP) public key that is used by apt to authenticate the package for onwCloud.

Besides, importing this key, you should generate a file in the apt directory, sources.list.d and name it owncloud.list. This file will feature an address to your ownCloud server repository:

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

Now, source and implement ownCloud using the apt package manager. In addition to installing ownCloud, the command below will add the PHP libraries required to extend ownCloud functionality.

$ sudo apt update
$ sudo apt install php-bz2 php-curl php-gd php-imagick php-intl php-mbstring php-xml php-zip owncloud-files

That’s it! All the things you need are installed.

Step 2 – Modifying Apache Document Root

The newly installed ownCloud package will copy web files in the directory /var/www/owncloud on your Debian 9 server. However, the configuration file for the Virtual Host is currently configured to deliver files from a different location. For this reason, you should modify the Apache document root in the configuration so that it points to your new ownCloud directory.

Now, use the apache2ctl utility to pinpoint the Apache virtual host config files pointing to your IP address or the domain name. The command below will help you achieve this and filter your output using your IP address or the domain name. Remember to replace the value  server_domain_or_IP with your IP address or domain name:

$ sudo apache2ctl -t -D DUMP_VHOSTS | grep server_domain_or_IP

This will give you an output similar to:

*:443                  server_domain_or_IP (/etc/apache2/sites-enabled/server_domain_or_IP-le-ssl.conf:2)
         port 80 namevhost server_domain_or_IP (/etc/apache2/sites-enabled/server_domain_or_IP.conf:1)

The files in parentheses are the files pointing to your IP address or domain name. Now, go ahead and edit these files. Execute the command below to open the first file.

 $ sudo nano /etc/apache2/sites-enabled/server_domain_or_IP.conf

Once the file is opened, look for a directive of the DocumentRoot and modify the line to point to the directory, /var/www/owncloud. That is:

<VirtualHost *:80>
    . . .
    DocumentRoot /var/www/owncloud
    . . .
</VirtualHost>

Save the file and exit the text editor. Repeat this for the other files.

Once you modify all the files, run the command below to confirm that the syntax is ok:

$ sudo apache2ctl configtest

If there are no errors or  detectable typos, you will get the following output:

Syntax OK

If you notice an error, check your files and correct any typing error. Once the syntax test is passed, run the command below to reload your Apache service:

$ sudo systemctl reload apache2

By now, Apache should be able to serve the ownCloud server files.

Step 3 – Setting Up Your Database

Your ownCloud is almost set, but before you perform the final configuration, you need to configure your MySQL database. This is because you will need a database name as well as a username and password for the database to enable ownCloud to securely and successfully connect data within MySQL.

If you have not configured the password authentication for your database, run the command below to log into your MySQL admin account:

$ sudo mysql

Alternatively, if you have implemented password authentication, use the command below to view the database administrative account:

$ mysql -u admin -p

Once you log in, create a database that is specifically dedicated to ownCloud and call it owncloud.

CREATEDATABASE owncloud;

Next, you have to create another MySQL database user account that will be used to control the new database. In this tutorial, we’ll call the user account, owncloud. Be sure to replace this name with your desired value.

GRANT ALL ON owncloud.* to'owncloud'@'localhost'IDENTIFIEDBY'owncloud_database_password';

Note: The value owncloud_database_password in the command above should be replaced with an actual password.

Now, run the command below to allow the current MySQL instance to acknowledge the recent privileges assignments.

FLUSHPRIVILEGES;

Exit your MySQL session:

exit

The database of fully configured and it’s okay if you proceed with the final web configuration

Step 4 – Setting Up OwnCloud

First, you need to get to the web interface for ownCloud via your favorite browser.

https://server_domain_or_IP

Once, you access the ownCloud server configuration page for ownCloud, create a new admin account. Remember to use easy-to-remember, but essentially strong values for the password and username.

How to install ownCloud on Debain 9

Do not change ownCloud data folder settings! Access the configuration part of the database. Here provide your database name and username and the passowrd corresponding to this database. This username and the password should be the credentials set in step 3. For your database host, just leave it as a localhost.

How to install ownCloud on Debain 9

Click Finish setup to enable ownCloud to utilize the details provided to complete the configuration. Once everything is set you will see this login screen:

How to install ownCloud on Debain 9

Type your username and password and press ENTER to log in. Once you login you will see the following screen:

How to install ownCloud on Debain 9

You can now download apps to help you synchronize files on multiple devices, then click X on the top-right section of your page to view the main owvCloud interface. Once you are on this interface create and upload folders to your ownCloud account.

Conclusion

That is it! You have successfully installed and configured ownCloud on your Debian 9 system.  You can now enjoy the power and convenience that come with this application.

Check out these top 3 Cloud hosting services:

0

Was this article helpful?

Submit
Previous Post

How to Find Number of Files in a Directory and Subdirectories

Next Post

Control Network Traffic with iptables

Next Post
Control Network Traffic with iptables

Control Network Traffic with iptables

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet