How to put in nextCloud 13 on Ubuntu eighteen.04

How to put in nextCloud 13 on Ubuntu eighteen.04

Graphic: Jack Wallen

We have protected nextCloud loads of periods here on TechRepublic. We have set up it on Ubuntu sixteen.04 by means of the normal usually means, as nicely as by means of a snap offer. But due to the fact the release of the most current Very long Term Guidance (LTS) release (eighteen.04), some matters have transformed. To that close, I want to stroll you through the method of setting up this fantastic on-premises cloud server on the most current release of Ubuntu.

Obtaining nextCloud

Ahead of we get started the set up, head more than to the nextCloud obtain website page and obtain the essential zip file (onto your Ubuntu server) with the command:


Though that is downloading (it would not take considerably time), let us head to the dependencies.

Ahead of you carry on on, you may want to make absolutely sure your Ubuntu eighteen.04 server has a static IP handle. You can set this by next my recent tutorial How to configure a static IP handle in Ubuntu Server eighteen.04.

SEE: IT job administration: 10 techniques to remain underneath budget (cost-free PDF) (TechRepublic)


Your Ubuntu server really should currently incorporate Apache, so there will be no have to have to put in this default web server. The to start with matter we have to have to do is make an Apache configuration file. Problem the command sudo nano /etc/apache2/web pages-out there/nextcloud.conf and add the next contents:

Alias /nextcloud "/var/www/html/nextcloud/"

  Solutions +FollowSymlinks
  AllowOverride All

  Dav off

 SetEnv Household /var/www/nextcloud
 SetEnv HTTP_Household /var/www/nextcloud

Build the essential symlink with the command:

sudo ln -s /etc/apache2/web pages-out there/nextcloud.conf /etc/apache2/web pages-enabled/nextcloud.conf

At last, we have to permit the essential Apache modules with the next commands:

a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime


Now we have to put in our database server. We will be working with MariaDB, so put in with the next command:

sudo apt put in mariadb-server mariadb-client

Start and permit MariaDB with the commands:

sudo systemctl get started mariadb
sudo systemctl permit mariadb

If you discover that MariaDB is not able to put in, you might have to to start with wholly take out MySQL with the command sudo apt-get take out —purge mysql*.

Safe the MariaDB set up with the command:

sudo mysql_protected_set up

Reply the essential inquiries and make absolutely sure to set a new MySQL password. After that is completed you might be completely ready to put in nextCloud.

Now we make our database. First we have to access the database prompt. Problem the command sudo mariadb and you may discover oneself at the database prompt. Build the database with the command:

make consumer [email protected] identified by 'PASSWORD'

In which PASSWORD is the password you want to use. Build the new database with the command:

make database nextcloud 

Now grant the essential permissions with the command:

grant all privileges on nextcloud.* to [email protected] identified by 'PASSWORD'

In which PASSWORD is the password you made in the former command. Finalize every thing with the commands:

flush privileges

Put in nextCloud

Put in unzip with the command sudo apt put in unzip. After that is set up, unzip the downloaded file with the command unzip nextcloud*.zip. Go that recently extracted folder with the command:

sudo mv nextcloud /var/www/html/nextcloud

Give the recently moved file the right permissions with the command:

sudo chown www-knowledge:www-knowledge /var/www/html/nextcloud/ -R

Now we have to have to put in and permit all the essential PHP modules. Put in them with the command:

sudo apt put in php7.2-gd php7.2-json php7.2-mysql php7.2-curl php7.2-mbstring php7.2-intl php-imagick php7.2-xml php7.2-zip

Restart Apache with the command:

sudo systemctl restart apache2

At that issue, you really should be able to issue your browser to http://SERVER_IP/nextcloud (In which SERVER_IP is the IP Deal with of the provide) and end up the set up (Determine A – by entering the database information and facts you made previously mentioned).

Determine A

Figure A

Finishing up our set up.

Completely ready to customize

Your nextCloud server is now up and managing, completely ready for you to set about customizing it to beautifully meet your firm requires. Take pleasure in obtaining a powerhouse cloud server on-existence. Start introducing apps to prolong the aspect set and you may discover nextCloud a remarkable resource.

Also see

Server Put in

Proxy Server

Server Put in

Leave a Reply

Your email address will not be published.