Install your ownCloud on your server
Run your own cloud server with ownCloud
In this tutorial, we would like to show you how to install ownCloud on Ubuntu 16.04. OwnCloud is a file management software that allows you to centrally save and store files such as Pictures, videos, or other files. OwnCloud is an open-source software and therefore a good alternative to SaaS vendors such as Dropbox or Google Drive. You can determine where your data is to be stored and so on. Choose a cloud server provider that meets your privacy requirements.
As a basis for this tutorial you will need the following:
1. A server with root access.
You need an Ubuntu 16.04 server with full root access. Create a cloud at my.gridscale.io in just a few steps.
Since ownCloud is based on PHP and MySQL, you should install a LAMP stack on your server. You can find the installation tutorial here: LAMP on Ubuntu 16.04..
Step 1: Prepare the installation
If you have followed the above tutorial and have installed your LAMP stack, you may still have some PHP modules, as well as CURL. So we’ll install it now:
apt-get install php-bz2 php-curl php-gd php-imagick php-intl php-mbstring php-xml php-zip curl
Step 2: Installation
Since ownCloud is not part of any of the standard Ubuntu repositories, we must first integrate the repository managed by ownCloud. We will execute the following commands one after the other:
sudo curl https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/Release.key | sudo apt-key add - echo 'deb https://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/ /' | sudo tee /etc/apt/sources.list.d/owncloud.list
After we have added the repository, we will update the sources with:
Now you can start the actual installation with the command “apt-get install”.
apt-get install owncloud
If you are asked if you want to continue with the installation, “Do you want to continue?” – “[Y / N]”, press Y for Yes then press ENTER
Enabling conf owncloud. To activate the new configuration, you need to run: service apache2 reload apache2_invoke: Enable module rewrite apache2_invoke owncloud: already enabled Setting up owncloud (9.1.2-1.1) ... Processing triggers for libc-bin (2.23-0ubuntu4) ... Processing triggers for libapache2-mod-php7.0 (7.0.8-0ubuntu0.16.04.3) ...
As you can see from the output, you should restart the web server.
service apache2 restart
After we have completed the basic installation, we now have to set up the MySQL server accordingly. Log in as an administrator on the MySQL server in the first step:
mysql -u root -p
OwnCloud needs its own database, e.g. Metadata, and other configuration settings. We call this database “owncloud”:
CREATE DATABASE owncloud;
In order for ownCloud to access the database without having to use the MySQL root user, create a MYSQL user who has the appropriate access rights. In the following code, it is recommended to replace the password #owncloud_pw# with a secure password. You will need this again in a later installation step:
GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY '#owncloud_pw#';
The MySQL user is successfully created. In order for the changes to take effect immediately, reload the settings and exit the MySQL client:
FLUSH PRIVILEGES; exit;
The installation is almost completed. The steps that are still necessary will follow in the next chapter.
Step 2: Configuration
In this step we configure ownCloud. To do this, open the browser and enter the following address. #IP_ODER_DOMAIN# is replaced by the IP or domain of your server.
Note: It is recommended to protect your server with an SSL certificate. We explain how to do this in another tutorial free SSL certificate.
You should now see the following:
In this step, you are asked to create an admin account. Please choose both a secure password and a secure user name. Your user should not be “Administrator” or similar.
Before you click “Finish installation”, click on “Storage & Database” to open the advanced settings. Here you can specify the location of your files. It is much more important, however, that you enter the MySQL credentials, database name, database user, and the password we have defined above. As server/host, select “localhost”.
Once this is done, click “Finish installation”. You will receive a success message as follows:
The installation is complete with the message “A secure space for all your data”. In this step, the corresponding apps can be downloaded directly to synchronize the data with your PC or Mac.
For more information on using ownCloud, please visit https://doc.owncloud.org/.Zurück zur Tutorial Übersicht Back to Tutorial Overview
Run your own cloud server with ownCloud In this tutorial, we would like to show you how to install ownCloud on Ubuntu 16.04. OwnCloud is a file management software that allows you to centrally save and store files such as Pictures, videos, or other files. OwnCloud is an open-source software and therefore a good alternative to […]
Thank you for your feedback!
We will get back to you as soon as the article is finished.