How to put in ownCloud on Ubuntu 18.04

How to put in ownCloud on Ubuntu 18.04


Impression: ownCloud

Of late, nextCloud has been offered the the greater part of the highlight for on-premises cloud servers. Having said that, I want to acquire a instant to walk you by means of the set up of the server that started it all. ownCloud is an equally capable cloud server that can satisfy and exceed your enterprise desires. But putting in this system on the newest release of Ubuntu is a little bit various than earlier incarnations. So, let’s see what occurs when we undertake the course of action of putting in the newest model of ownCloud onto the newest model of Ubuntu Server. The course of action just isn’t terribly complicated, at least not when you know what dependencies to put in.

Let us get chaotic.

What you may need

Certainly, you may need a functioning occasion of Ubuntu Server 18.04. I will think you have that up and jogging. I will also think you set up Ubuntu Server with the normal LAMP offer offering—so Apache, MySQL, and PHP will currently be up and jogging. One of the biggest differences between putting in ownCloud on Ubuntu sixteen.04 and 18.04 will be the PHP packages. I’ll display you how to get all over that hurdle.

You will also need to download the newest model of ownCloud. This can be performed with the command wget URL (wherever URL for the newest downloadable offer can be uncovered listed here). So for model 10..8, you would situation the command:


Putting in dependencies

The first point you need to do is put in the essential PHP dependencies. As I said just before, this can be tough. You first need to obtain out what model of PHP is set up on your machine. To do this, situation the command php -v. On my set up of Ubuntu 18.04, the PHP release is PHP 7.two-7-one. The important element is the 7.two. So we need to make positive all of our PHP modules are of the 7.two flavor. For this, we will situation the command:

sudo apt put in php7.two libapache2-mod-php7.two php7.two-typical php7.two-mbstring php7.two-xmlrpc php7.two-soap php7.two-apcu php7.two-smbclient php7.two-ldap php7.two-redis php7.two-gd php7.two-xml php7.two-intl php7.two-json php7.two-imagick php7.two-mysql php7.two-cli php7.two-mcrypt php7.two-ldap php7.two-zip php7.two-curl

You may possibly obtain that some of the previously mentioned modules can’t be set up. To get all over that, simply just delete people modules from the previously mentioned command. For my set up, I experienced to take away:

  • php7.two-redis
  • php7.two-imagick
  • php7.two-mcrypt
  • php7.two-smbclient

As soon as people have been out of the command line blend, the set up went great. Just make positive to fork out focus to the output of your command and then change appropriately.

SEE: Google Cloud System: An insider’s guide (totally free PDF) (TechRepublic)

Configure PHP

Now we need to configure PHP. There are only two selections you need to deal with. Issue the command sudo nano /and many others/php/7.two/apache2/php.ini and then change the following parameters:

  • memory_restrict =
  • day.timezone =

The memory_restrict solution should really be no a lot less than 256M and the day.timezone should really be established to your area. To obtain out what timezone you should really use (and the structure of said timezone), acquire a search at this web-site.

Preserve and shut that file. Restart Apache with the command:

sudo systemctl restart apache2

Produce the databases

Now we need to develop the databases. To do this, situation the command:

sudo mysql -u root -p

You may be prompted first for your sudo password and then the MySQL root user password. I insert sudo to this command on the off-chance you are making use of MariaDB (in its place of MySQL). As soon as in the databases command prompt, develop the databases with the command:

Produce Database owncloud

Future develop a new databases user with the command:

Produce Consumer 'ownclouduser'@'localhost' Determined BY 'PASSWORD'

Where PASSWORD is a potent password for the user.

Give the new user permissions for the new databases with the command:

GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' Determined BY 'PASSWORD' WITH GRANT Possibility

Where PASSWORD is a potent password for the user.

Flush the privileges and exit the databases shell with the commands:


Unpack and move the ownCloud file

Now we need to unpack and move the ownCloud file and then give it the correct permissions. I am heading to think you downloaded the file to your house directory. With that in head, every little thing can be performed with the following commands:

cd ~/
unzip unzip owncloud-*.zip
sudo mv owncloud /var/www/html/
sudo chown -R www-knowledge:www-knowledge /var/www/html/owncloud/
sudo chmod -R 755 /var/www/html/owncloud/

Configure Apache

We now need to configure Apache so that it is informed of our new ownCloud web-site. Produce a new conf file with the command:

sudo nano /and many others/apache2/sites-readily available/owncloud.conf

The contents of that file should really be:

     ServerAdmin [email protected]
     DocumentRoot /var/www/html/owncloud/
     Alias /owncloud "/var/www/html/owncloud/"

        Choices +FollowSymlinks
        AllowOverride All
        Require all granted
            Dav off
        SetEnv Dwelling /var/www/html/owncloud
        SetEnv HTTP_Dwelling /var/www/html/owncloud

     ErrorLog $APACHE_LOG_DIR/error.log
     CustomLog $APACHE_LOG_DIR/entry.log blended

Where you see and, if you you should not need domains (and will be making use of ownCloud by IP deal with only), you can comment out these strains.

Preserve and shut that file.

Now we need to empower the web-site and the essential modules. These methods are taken care of with the following commands:

sudo a2ensite owncloud.conf
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime

Take note: Some of the previously mentioned modules may possibly currently be enabled.

Restart Apache with the command:

sudo systemctl restart apache2

The remaining phase

At this level, open up up a browser and level it to http://SERVER_IP/owncloud. You should really be greeted by the ownCloud installer (Determine A), wherever you only need to develop an admin user and enter the info for the databases.

Determine A

The browser installer is the past phase.

Click Complete set up and ownCloud will acquire treatment of every little thing. You will ultimately be prompted to log in with the admin user you just created. Congratulations, you now have a functioning ownCloud, on-premises cloud server. You can now configure it to satisfy (and exceed) your enterprise desires.

Also see

Server Set up

Proxy Server

Server Set up

Leave a Reply

Your email address will not be published.