Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (2022)

This tutorial will be showing you how to install NextCloud on Ubuntu 20.04 LTS with Apache web server.

What’s NextCloud?

NextCloud is a free open-source self-hosted cloud storage solution. It’s functionally similar to Dropbox. Proprietary cloud storage solutions (Dropbox, Google Drive, etc) are convenient, but at a price: they can be used to collect personal data because your files are stored on their computers. If you worry about privacy, you can switch to NextCloud, which you can install on your private home server or on a virtual private server (VPS). You can upload your files to your server via NextCloud and then sync those files to your desktop computer, laptop or smartphone. This way you have full control of your data.

NextCloud Features

  • Free and open-source
  • End-to-end encryption, meaning files can be encrypted on client devices before uploaded to the server, so even if someone steals your server, they can not read your files.
  • Can be integrated with an online office suite (Collobora Online, OnlyOffice) so you can create and edit your doc, ppt, xls files directly from NextCloud.
  • The app store contains hundreds of apps to extend functionality (like calendar app, contacts app, note-taking app, video conferencing app, etc).
  • The sync client is available on Linux, macOS, Windows, iOS and android.

Prerequisites

NextCloud is written in PHP programing language. To follow this tutorial, you first need to install LAMP stack on Ubuntu 20.04. If you haven’t already done so, please check out the following tutorial.

  • How to Install LAMP Stack (Apache, MariaDB, PHP7.4-FPM) on Ubuntu 20.04

You can install NextCloud on your home server or a VPS (virtual private server). You also need a domain name, so later on your will be able to enable HTTPS to encrypt the HTTP traffic. I registered my domain name from NameCheap because the price is low and they give whois privacy protection free for life. Nextcloud can be installed without a domain name, but it really doesn’t make sense if you don’t encrypt the HTTP connection to prevent snooping. I recommend buying a domain name, if you really want to tinker with server software and use them to the fullest potential.

Now let’s install NextCloud.

Step 1: Download NextCloud on Ubuntu 20.04

Log into your Ubuntu 20.04 server. Then download the NextCloud zip archive onto your server. The latest stable version is 21.0.1 at time of this writing. You may need to change the version number. Go to https://nextcloud.com/install and click the download for server button to see the latest version.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (1)

You can run the following command to download it on your server.

wget https://download.nextcloud.com/server/releases/nextcloud-21.0.1.zip

You can always use the above URL format to download NextCloud. If a new version comes out, simply replace 21.0.1 with the new version number.

Once downloaded, extract the archive with unzip.

sudo apt install unzipsudo unzip nextcloud-21.0.1.zip -d /var/www/

The -d option specifies the target directory. NextCloud web files will be extracted to /var/www/nextcloud/. Then we need to change the owner of this directory to www-data so that the web server (Apache) can write to this directory.

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

Step 2: Create a Database and User for Nextcloud in MariaDB Database Server

Log into MariaDB database server with the following command. Since MariaDB is now using unix_socket plugin to authentication user login, there’s no need to enter MariaDB root password. We just need to prefix the mysql command with sudo.

sudo mysql

Then create a database for Nextcloud. This tutorial name the database nextcloud. You can use whatever name you like.

create database nextcloud;

Create the database user. Again, you can use your preferred name for this user. Replace your-password with your preferred password.

create user nextclouduser@localhost identified by 'your-password';

Grant this user all privileges on the nextcloud database.

grant all privileges on nextcloud.* to nextclouduser@localhost identified by 'your-password';

Flush privileges and exit.

flush privileges;exit;

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (2)

Step 3: Create an Apache Virtual Host for Nextcloud

Create a nextcloud.conf file in /etc/apache2/sites-available/ directory, with a command-line text editor like Nano.

sudo nano /etc/apache2/sites-available/nextcloud.conf

Copy and paste the following text into the file. Replace nextcloud.example.com with your own preferred sub-domain. Don’t forget to create DNS A record for this sub-domain in your DNS zone editor. If you don’t have a real domain name, I recommend going to NameCheap to buy one. The price is low and they give whois privacy protection free for life.

<VirtualHost *:80> DocumentRoot "/var/www/nextcloud" ServerName nextcloud.example.com ErrorLog ${APACHE_LOG_DIR}/nextcloud.error CustomLog ${APACHE_LOG_DIR}/nextcloud.access combined <Directory /var/www/nextcloud/> Require all granted Options FollowSymlinks MultiViews AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud Satisfy Any </Directory></VirtualHost>

Save and close the file. (To save a file in Nano text editor, press Ctrl+O, then press Enter to confirm. To exit, press Ctrl+X.)

Then enable this virtual host.

sudo a2ensite nextcloud.conf

Run the following command to enable required Apache modules.

sudo a2enmod rewrite headers env dir mime setenvif ssl

Then test Apache configuration.

sudo apache2ctl -t

If the syntax is OK, reload Apache for the changes to take effect.

sudo systemctl restart apache2

Step 4: Install and Enable PHP Modules

Run the following commands to install PHP modules required or recommended by NextCloud.

sudo apt install imagemagick php-imagick libapache2-mod-php7.4 php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-bcmath php7.4-gmp

Reload Apache to use these modules.

sudo systemctl reload apache2

Step 5: Enable HTTPS

Now you can access the Nextcloud web install wizard in your web browser by entering the domain name for your Nextcloud installation.

nextcloud.example.com

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (3)

(Video) Install LAMP on Ubuntu 20.04

If the web page can’t load, you probably need to open port 80 in firewall.

sudo iptables -I INPUT -p tcp --dport 80 -j ACCEPT

And port 443 as well.

sudo iptables -I INPUT -p tcp --dport 443 -j ACCEPT

Before entering any sensitive information, we should enable secure HTTPS connection on Nextcloud. We can obtain a free TLS certificate from Let’s Encrypt. Install Let’s Encrypt client (certbot) from Ubuntu 20.04 repository.

sudo apt install certbot python3-certbot-apache

Python3-certbot-apache is the Apache plugin. Next, run the following command to obtain a free TLS certificate using the Apache plugin.

sudo certbot --apache --agree-tos --redirect --staple-ocsp --email [emailprotected] -d nextcloud.example.com

Where:

  • –apache2: Use the Apache authenticator and installer
  • –agree-tos: Agree to Let’s Encrypt terms of service
  • –redirect: Enforce HTTPS by adding 301 redirect.
  • –staple-ocsp: Enable OCSP Stapling.
  • –email: Email used for registration and recovery contact.
  • -d flag is followed by a list of domain names, separated by comma. You can add up to 100 domain names.

You will be asked if you want to receive emails from EFF(Electronic Frontier Foundation). After choosing Y or N, your TLS certificate will be automatically obtained and configured for you, which is indicated by the message below.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (4)

I found that Certbot can’t automatically add HSTS header in the Apache config file for Nextcloud. If you would like to enable HSTS (HTTP Strict Transport Security), then edit the file.

sudo nano /etc/apache2/sites-enabled/nextcloud-le-ssl.conf

We can then add the following line in the SSL server block to enable HSTS header.

Header always set Strict-Transport-Security "max-age=31536000"

Like below.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (5)

Save and close the file. Then text Apache configurations.

sudo apache2ctl -t

If the test is successful, reload Apache for the change to take effect.

sudo systemctl reload apache2

The above configuration will get A+ score on SSL test.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (6)

Step 6: Finish the Installation in your Web Browser

Now you can access the Nextcloud web install wizard using HTTPS connection.

https://nextcloud.example.com

To complete the installation, you need to create an admin account, enter the path of Nextcloud data folder, enter database details you created in step 2. You can use the default localhost as host address, or you can enter localhost:3306, as MariaDB listens on port 3306.

The data folder is where users’ files are stored. For security, it’s best to place the data directory outside of Nextcloud webroot directory. So instead of storing users’ files under /var/www/nextcloud/data/, we can change it to /var/www/nextcloud-data. which can be created with the following command:

sudo mkdir /var/www/nextcloud-data

Then make sure Apache user (www-data) has write permission to the data directory.

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

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (7)

Click the Finish Setup button, you will see the Web interface of Nextcloud. Congrats! You can start using it as your private cloud storage.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (8)

How to Set up NextCloud Email Notification

If your NextCloud instance will be used by more than one person, it’s important that your NextCloud server can send transactional emails, such as password-resetting email. First, you should set an email address for your own account. Go to Settings -> Personal Info and set an email address for your account.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (9)

Then go to Settings -> Basic settings. You will find the email server settings. There are two send modes: sendmail and smtp. You can choose the sendmail mode if your NextCloud host has an SMTP server running.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (10)

If you would like to use an SMTP server running on another host, then choose smtp mode and enter the SMTP server address and login credentials like below. Choose STARTTLS for encryption.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (11)

For how to set up an email server, please check out the following tutorial. Note that I highly recommend running iRedMail mail server on a fresh clean OS. Installing iRedMail on an OS that has other web applications can fail, and likely break existing applications.

(Video) instalasi Nextcloud Di VPS Ubuntu 20.04

  • How to easily set up a full-featured mail server on Ubuntu 20.04 with iRedMail

How to Reset Nextcloud User Password From Command Line

If you lost your admin account password, and you didn’t set up email delivery in Nextcloud, then you need to reset the password by running the following command on your server. Replace nextcloud_username with your real username.

sudo -u www-data php /var/www/nextcloud/occ user:resetpassword nextcloud_username

There are also other commands you might find useful. List available commands with:

sudo -u www-data php /var/www/nextcloud/occ

or

sudo -u www-data php /var/www/nextcloud/console.php

How to Move the Data Directory

In case you need to move the NextCloud data directory, there are 4 steps to accomplish this. First, you need to use the cp command to copy the data directory to the new directory. For example, the mount point of my external hard drive is /media/linuxbabe/b43e4eea-9796-4ac6-9c48-2bcaa46353731. I create the new data directory on the external hard drive.

sudo mkdir /media/linuxbabe/b43e4eea-9796-4ac6-9c48-2bcaa46353731/nextcloud-data/

Then I copy the original data directory to the new data directory. -R flag means the copy operation is recursive.

sudo cp /var/www/nextcloud-data/* /media/linuxbabe/b43e4eea-9796-4ac6-9c48-2bcaa46353731/nextcloud-data/ -R

You also need to copy the .ocdata file.

sudo cp /var/www/nextcloud-data/.ocdata /media/linuxbabe/b43e4eea-9796-4ac6-9c48-2bcaa46353731/nextcloud-data/

Next, you need to set www-data (Apache user) as the owner.

sudo chown www-data:www-data /media/linuxbabe/b43e4eea-9796-4ac6-9c48-2bcaa46353731/nextcloud-data/ -R

Lastly, you need to edit the config.php file.

sudo nano /var/www/nextcloud/config/config.php

Find the following line and change the value of datadirectory.

'datadirectory' => '/var/www/nextcloud-data',

Save and close the file. Reload NextCloud web page and you are done.

Step 7: Increase PHP Memory Limit

The default PHP memory limit is 128MB. NextCloud recommends 512MB for better performance. To change PHP memory limit, edit the php.ini file.

sudo nano /etc/php/7.4/apache2/php.ini

Find the following line. (line 409)

memory_limit = 128M

Change the value.

memory_limit = 512M

Save and close the file. Alternatively, you can run the following command to change the value without manually opening the file.

sudo sed -i 's/memory_limit = 128M/memory_limit = 512M/g' /etc/php/7.4/apache2/php.ini

Then reload Apache for the changes to take effect.

sudo systemctl reload apache2

If your server has the /etc/php7.4/fpm/php.ini file, that means your server also runs PHP-FPM. I recommend changing the memory_limit in PHP-FPM as well.

sudo nano /etc/php/7.4/fpm/php.ini

Find the memory_limit parameter and change the value. After saving the file, reload PHP-FPM for the change to take effect.

sudo systemctl reload php7.4-fpm

Step 8: Configure Redis Cache for NextCloud

If you go to your NextCloud settings -> overview page, you might see the following warning:

No memory cache has been configured. To enhance your performance please configure a memcache if available.

We will enable memory caching for nextCloud by using Redis. Run the following command to install Redis server from Ubuntu repository.

sudo apt install redis-server

You can check the version with:

redis-server -v

Sample output:

Redis server v=5.0.7 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=636cde3b5c7a3923

Now we can check if redis server is running.

systemctl status redis

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (12)

Hint: If the above command didn’t quit immediately, you can press the Q key to gain back control of the terminal.

From the above screenshot, we can see that it’s running and auto-start is enabled. If for any reason it’s not running, execute the following command:

sudo systemctl start redis-server

And if auto-start at boot time is not enabled, you can use the following command to enable it:

sudo systemctl enable redis-server

In order to configure Redis as a cache for nextCloud, we need to install the PHP extension for interfacing with Redis.

sudo apt install php-redis

Check if the extension is enabled.

(Video) Bikin Cloud Sampai Bisa Videomeet ? Tutorial Instalasi Cloud Storage (NextCloud) Pada VM IdCloudHost

php --ri redis

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (13)

We can see that Redis extension is enabled. If it’s not enabled, run the following command:

sudo phpenmod redis

You may also need to reload Apache if the redis extension is still not enabled.

sudo systemctl reload apache2

Next, edit nextCloud configuration file.

sudo nano /var/www/nextcloud/config/config.php

Add the following lines above the ending ); line.

'memcache.distributed' => '\OC\Memcache\Redis','memcache.local' => '\OC\Memcache\Redis','memcache.locking' => '\OC\Memcache\Redis','redis' => array( 'host' => 'localhost', 'port' => 6379, ),

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (14)

Save and close the file. Then restart Apache and PHP-FPM.

sudo systemctl restart apache2 php7.4-fpm

Now go to NextCloud settings -> overview page again and refresh the web page, the warning about memory caching should be gone.

Adding Missing Indexes

If you see the following message in the NextCloud Settings -> Overview page,

The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically.

Then you need to manually add those indexes. Change to the Nextcloud webroot directory.

cd /var/www/nextcloud/

Run the following command to add indexes to the Nextcloud database.

sudo -u www-data php occ db:add-missing-indices

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (15)

Now if you refresh the NextCloud Settings -> Overview page, the warning about missing indexes should be gone.

Conversion to Big Int

If you see the following message in the NextCloud Settings -> Overview page,

Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically.

Then you need to manually change the column type. Change to the Nextcloud webroot directory.

cd /var/www/nextcloud/

Change your Nextcloud into maintenance mode to prevent users from logging in and making changes.

sudo -u www-data php occ maintenance:mode --on

Then run the following command to change the column type.

sudo -u www-data php occ db:convert-filecache-bigint

Once it’s done, switch off the maintenance mode.

sudo -u www-data php occ maintenance:mode --off

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (16)

Now if you refresh the NextCloud Settings -> Overview page, the warning about big int should be gone.

How to Install NextCloud Client on Ubuntu 20.04 Desktop

Run the following commands on Ubuntu 20.04 desktop to install the client from the default repository.

sudo apt install nextcloud-client

NextCloud Client on Ubuntu 20.04

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (17)

Client software for macOS, Windows, Android and iOS can be found on the Nextcloud download page.

How to Enable OnlyOffice/Collabora Online

By default, Nextcloud ships with support for OnlyOffice, which an online office suite that allows you to edit your doc, ppt, xls files directly from NextCloud. We only need to install an app to use this feature. Go to Nextcloud Apps -> Office & Text. Find and enable the community document server app.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (18)

Now when you click the add button (+) in Nextcloud, you will be able to create Word, spreadsheet and presentation documents right from your Nextcloud server.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (19)

(Video) Config and Install LEMP Stack on Ubuntu 20.04 Server/Desktop GNU/Linux

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (20)

However, I found this app isn’t very reliable. And the community edition allows only 20 users at most. You need to purchase an enterprise edition if you have more than 20 users. There’s another open-source LibreOffice-based online office suite called Collabora Online that has the same functionality, but without the limitation on the number of users. You can read the following article to integrate it with Nextcloud.

  • Integrate Collabora Online with Nextcloud on Ubuntu with Docker

Increase Upload File Size Limit

If you use the Apache PHP module to run PHP script, then there’s no upload file size limit. If you use PHP-FPM to run PHP script, you need to change the file size limit. The default maximum file size for uploading in PHP-FPM is 2MB. To increase the upload size limit, edit the PHP configuration file.

sudo nano /etc/php/7.4/fpm/php.ini

Find the following line (line 846).

upload_max_filesize = 2M

Change the value like below:

upload_max_filesize = 1024M

Save and close the file. Alternatively, you can run the following command to change the value without manually opening the file.

sudo sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 1024M/g' /etc/php/7.4/fpm/php.ini

Then restart PHP-FPM.

sudo systemctl restart php7.4-fpm

Enabling HTTP/2 Protocol

HTTP/2 protocol can greatly improve page loading speed. You can read the following guide to enable HTTP/2 protocol on Apache.

  • How to Enable HTTP/2 Protocol with Apache on Ubuntu 20.04

Adding Local DNS Entry

It’s recommended to edit the /etc/hosts file on your Nextcloud server and add the following entry, so that Nextcloud itself won’t have to query the public DNS, which can improve the overall stability. If your Nextcloud server can’t resolve the nextcloud.example.com hostname, then you may encounter a 504 gateway time out error.

127.0.0.1 localhost nextcloud.example.com

An IP address in the /etc/hosts file can have multiple hostnames, so if you have other applications installed on the same box, you can also add other hostnames or sub-domains on the same line like this:

127.0.0.1 localhost focal ubuntu nextcloud.example.com collabora.example.com

Using Cron to Run Background Jobs

By default, Nextcloud uses AJAX to execute one task with each page load. You can use the more efficient system cron service to run background jobs. Go to Nextcloud Settings -> Basic Settings and select Cron.

Install NextCloud on Ubuntu 20.04 with Apache (LAMP Stack) - LinuxBabe (21)

Next, edit the www-data user’s crontab file.

sudo -u www-data crontab -e

Add the following line in this file, so the cron job will run every 5 minutes.

*/5 * * * * php7.4 -f /var/www/nextcloud/cron.php

Save and close the file.

Troubleshooting Tips

If you encounter errors, you can check one of the following log files to find out what’s wrong.

  • Apache error log: /var/log/apache2/error.log
  • Apache error log for the Nextcloud virtual host: /var/log/apache2/nextcloud.error
  • Nextcloud application log: /var/www/nextcloud/data/nextcloud.log

For example, I once had an “Internal Server Error” on my Nextcloud instance and the /var/log/nginx/nextcloud.error file told me that

FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught OC\HintException: [0]: Memcache \OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)

It turned out that because I used the ppa:ondrej/php PPA on my Ubuntu server, I also need to install php7.4-redis in addition to the php-redis package.

If you see the following error message in the nextcloud.log file, you can ignore it.

Could not detect any host in https:///data/htaccesstest.txt

Upgrading Nextcloud

It’s important to keep your Nextcloud server up to date with the latest security and bug fixes. Read the tutorial below to learn how to upgrade Nextcloud.

Wrapping Up

I hope this tutorial helped you install NextCloud on Ubuntu 20.04 server with Apache. As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks. Take care 🙂

Rate this tutorial

[Total: 17 Average: 5]

FAQs

How do I install Nextcloud on Ubuntu with Apache? ›

How to Install NextCloud on Ubuntu 20.04 with Apache
  1. Step 1: Install LAMP server. ...
  2. Step 2: Install additional PHP modules. ...
  3. Step 3:Create a database for NextCloud. ...
  4. Step 4: Download and configure NextCloud. ...
  5. Step 5: Create a configuration file for NextCloud. ...
  6. Step 5: Complete the NextCloud setup.

Does Nextcloud run on Apache? ›

In case you prefer installing from the source tarball, you can setup Nextcloud from scratch using a classic LAMP stack (Linux, Apache, MySQL/MariaDB, PHP).

How do I install Nextcloud on Ubuntu desktop? ›

Instructions
  1. Install Apache and the required PHP modules. ...
  2. Install and set up MariaDB. ...
  3. Download and unzip Nextcloud's files. ...
  4. Create a Nextcloud configuration file. ...
  5. Create a symlink for nextcloud.conf. ...
  6. Enable Apache Modules. ...
  7. Make sure that the Nextcloud installation files are web accessible.

Can I install LAMP on Ubuntu desktop? ›

Here are the steps to be followed for installing LAMP on Ubuntu 20.04. 1. LAMP stands for Linux, Apache, MySQL, and PHP. LAMP setup on your desktop can enable your local web development, whereas in server facilitate you to host your web contents.

How do I install Nextcloud on Ubuntu 20.04 server? ›

Example installation on Ubuntu 20.04 LTS
  1. Go to the Nextcloud Download Page.
  2. Go to Download Nextcloud Server > Download > Archive file for server owners and download either the tar. ...
  3. This downloads a file named nextcloud-x.y.z.tar. ...
  4. Download its corresponding checksum file, e.g. nextcloud-x.y.z.tar.

What is the best way to install Nextcloud? ›

Web installer. The Web Installer is the easiest way to install Nextcloud on a web space. It checks the dependencies, downloads Nextcloud from the official server, unpacks it with the right permissions and the right user account. Finally, you will be redirected to the Nextcloud installer.

Which Linux is best for Nextcloud? ›

We strongly recommend using the latest version of your operating system to get the full and most stable experience out of our clients.
  • Windows 8.1+
  • macOS Lion (10.7)+ (64-bit only)
  • Linux (CentOS 6.5+, Ubuntu 14.04+, Fedora 21+, openSUSE 13, SUSE Linux Enterprise 11 SP3+, Debian 8 (Jessie)+, Red Hat Enterprise Linux 7)

Can I install Nextcloud on Ubuntu server? ›

Step 1 – Installing Nextcloud

This packaging system, available on Ubuntu 22.04 by default, allows organizations to ship software, along with all associated dependencies and configuration, in a self-contained unit with automatic updates.

How do I self host on Nextcloud? ›

Installing Nextcloud
  1. First of all, open this link and switch to 'Web Installer' tab (at the bottom of the page), and download the file mentioned in the first step.
  2. Go to your server's dashboard and open the file manager. ...
  3. Once in the file manager, click the upload button. ...
  4. Now select the file 'setup-nextcloud.
Aug 14, 2020

How do I install Nextcloud on a virtual machine? ›

Instructions
  1. Import the OVA/VHDX into: VMware Player (PC & Linux users) VMware Fusion (Mac users) Hyper-V (Windows users) ...
  2. Login and become root in Ubuntu Server. [sudo] password for ncadmin: nextcloud.
  3. Run the script to do the final setup.
  4. Enjoy your Nextcloud installation!

What port does Nextcloud use? ›

For Nextcloud, you need the https-port (default: 443), and perhaps port 80 (which is then redirected to https).

What is difference between xampp and LAMP? ›

LAMP is an acronym for Linux (operating system), Apache HTTP Server, MySQL (database software), and PHP. If you're running Windows the acronym is WAMP. XAMPP is a package you can use to easily install and configure a (in your case) WAMP or LAMP setup.

How do I check if a LAMP is installed Ubuntu? ›

1) Find file with name "apache2" in your pc. It will return list of path where a file name called "apache2" exists. You can then cross examine it further. 2) Run the above same command to find file "mysql" and follow the same procedure further.

What is LAMP server Ubuntu? ›

LAMP installations (Linux + Apache + MySQL + PHP/Perl/Python) are a popular setup for Ubuntu servers. There is a plethora of Open Source applications written using the LAMP application stack. Some popular LAMP applications are Wiki's, Content Management Systems, and Management Software such as phpMyAdmin.

Which is better ownCloud or Nextcloud? ›

Nextcloud and ownCloud both sell a support service. However, beyond support, the biggest difference between the two platforms is that Nextcloud is completely free while in order to have full access to all of ownCloud's features, you need to subscribe to their Enterprise pack, which adds additional features.

Where is Nextcloud installed Linux? ›

Nextcloud: Complete Setup Guide - YouTube

Is Nextcloud free for home use? ›

Nextcloud is free, open source and you can get involved in making it better!

Is Nextcloud a NAS? ›

Going forward, Nextcloud Hub will be officially supported on TrueNAS systems with easy install of the official Nextcloud Hub app requiring just a few clicks. Together, Nextcloud and TrueNAS provide an extremely versatile and reliable collaboration and data storage platform.

How secure is Nextcloud? ›

Nextcloud uses industry-standard SSL/TLS encryption for data in transfer. Additionally, data at rest in storage can be encrypted using a default military grade AES-256 encryption with server-based or custom key management.

What is my Nextcloud server address? ›

In the first screen to open (Figure A), enter the full address of your Nextcloud server. For my instance, that address is https://192.168.1.228/nextcloud. Once the information is entered, click Next. If your server is using SSL, depending upon your setup, you might see an untrusted certificate warning.

Which Linux OS is best for cloud computing? ›

Ubuntu. Ubuntu is one of the most widely used Debian-based Linux distributions. It is an extremely popular choice as a Desktop distribution, cloud server OS for different cloud providers, as a base OS for Kubernetes and OpenStack platforms.

Which Linux is best for DevOps? ›

Best Linux distributions for DevOps
  • Ubuntu. Ubuntu is often, and for good reason, considered at the top of the list when this topic is discussed. ...
  • Fedora. Fedora is another option for RHEL centered developers. ...
  • Cloud Linux OS. ...
  • Debian.
May 13, 2020

How do I install snap on Nextcloud? ›

To download the Nextcloud snap package and install it on the system, type: sudo snap install nextcloud.

How do I use Nextcloud on Ubuntu? ›

How to Install Nextcloud Hub 21 on Ubuntu 20.04 - YouTube

How do I install and configure Nextcloud Hub 21? ›

How to Install and Configure Nextcloud Hub 21
  1. Install Apache & MySQL.
  2. Prepare MySQL database.
  3. Install PHP for Nextcloud.
  4. Download Nextcloud Hub 21.
  5. Configure Apache for Nextcloud.
  6. Nextcloud Configuration.
  7. Fixing Installation Issues. Update PHP Configuration. Set up Cronjob for Nextcloud. ...
  8. Install ONLYOFFICE.
Mar 7, 2021

How do I install Nextcloud Hub 22? ›

How to install Nextcloud Hub 22 on Ubuntu 20.04 with postgreSQL 13 php8. 0-fpm Apache2 and HTTP/2
  1. Requirements: ...
  2. Step 1: Install Firewall. ...
  3. Step 2: Install postgreSQL 13. ...
  4. Step 3: Install Apache2. ...
  5. Step 4: Install php8.0-fpm an recommended moduls. ...
  6. Step 5: Configure Apache2 and php8.0-fpm. ...
  7. Step 6: Install Certbot and other tools.
Jul 8, 2021

Do I need a domain for Nextcloud? ›

A domain name is not required to access Nextcloud from the Internet, but you will need to put your IP address in the trusted_domains field in config.

Does Nextcloud collect data? ›

We collect information from you when you subscribe to a newsletter, fill out a form or enter information on our site. Our apps only communicate with your own Nextcloud server and do not sent any data to us.

Where is Nextcloud data stored? ›

Background. As seen '/path/to/nextcloud/data' is default value/location, if it is not changed during Nextcloud installation process. Nextcloud stores the data directory location and all it's files locations inside it's database, that can be chosen during installation as well.

How do I install Nextcloud on virtualbox? ›

Create Your Own Free Private Cloud With NextCloud 22 - YouTube

How do I access my Nextcloud remotely? ›

Run the TUI ( nextcloud-config ) or use the WebUI.
  1. Navigate to no-ip in the TUI or the WebUI.
  2. Change ACTIVE to yes .
  3. Change USER with your user name.
  4. Change PASS with your password.
  5. Change DOMAIN with your (sub)Domain Name.
  6. Change TIME with the interval time you want to update the DNS record. ...
  7. Click Run or Start.

How do I remove Ubuntu desktop GUI? ›

How to disable GUI on boot in Ubuntu 20.04 step by step instructions
  1. The following command will disable GUI on boot hence upon the reboot the system will boot into multi user target: $ sudo systemctl set-default multi-user.
  2. Reboot or log out from a current session to exit GUI: $ gnome-session-quit.
Apr 30, 2020

Does Nextcloud use TCP or UDP? ›

The transfer itself is initiated and carried out over udp. They just implemented their own protocol, kind of tcp within udp if you like to call it so.

Does Nextcloud need SSL? ›

Nextcloud can set up and manage a free, trusted SSL certificate from Let's Encrypt if your server has a domain name. If not, Nextcloud can set up a self-signed SSL certificate that can encrypt connections, but won't be trusted by default in web browsers.

How do I change my Nextcloud port? ›

That said:
  1. Edit /etc/apache2/ports.conf. a. Change the port numbers as required or add new.
  2. Edit /etc/apache2/sites-available/yournextcloud.conf. a. Change 80/443 there to the ports in <VirtualHost *:80> (or 443) to what you specified in 1a.
  3. Restart Apache: sudo service apache2 restart.

Which is better LAMP or WAMP? ›

WAMP uses PHP (a script-based programming language) for development and testing. Unlike other similar local servers, LAMP is multi-lingual in terms of development. It supports coding done in PHP, Perl, and Python. XAMPP uses MariaDB, which is a relational database management system.

What is better WAMP or XAMPP? ›

XAMPP is more powerful and resource taking than WAMP. WAMP provides support for MySQL and PHP. XAMPP also has SSL feature while WAMP doesnt. If your applications need to deal with native web apps only, Go for WAMP.

What is a XAMPP stack? ›

XAMPP (/ˈzæmp/ or /ˈɛks. æmp/) is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages.

How do I run a LAMP server in Ubuntu? ›

How to Setup a LAMP Server on a Local Ubuntu Linux Machine or VM
  1. Install the necessary packages. You will need to install the following packages for the LAMP server. ...
  2. Change permissions to the /var/www/html. ...
  3. Create a symbolic link to phpMyAdmin. ...
  4. Restart Apache and test.
Jan 28, 2020

What is a LAMP stack in Linux? ›

A “LAMP” stack is a group of open source software that is typically installed together in order to enable a server to host dynamic websites and web apps written in PHP. This term is an acronym which represents the Linux operating system with the Apache web server.

How do you install a LAMP stack? ›

How to install LAMP stack web server on Ubuntu 20.04
  1. Step 1: Preparing your Ubuntu server. To begin with, you need a cloud server to run the LAMP stack software. ...
  2. Step 2: Installing and testing Apache2. ...
  3. Step 3: Installing and testing PHP 7.4. ...
  4. Step 4: Installing and securing MariaDB. ...
  5. Conclusions.
May 22, 2022

What can I do with a LAMP server? ›

One of the oldest and most utilized software development methods, the LAMP stack allows web developers to build, deploy, and manage web applications. LAMP is an acronym that stands for Linux, Apache, MySQL, and PHP, and provides the components needed to host and manage web content.

What is LAMP stack and mean stack? ›

js. LAMP refers to Linux Operating System, Apache, MySQL, PHP. 02. MEAN Stack Developer is an IT professional develops a web application using a collection of Java Script technologies i.e. MEAN. LAMP stack developer is an IT professional who develops web applications using Linux OS, Apache, MySQL, PHP i.e. LAMP.

How do I know if my LAMP server is installed? ›

Go to http://localhost:80 on your web browser. A page saying your Apache server is running properly should show up. If this isn't working, confirm your apache service is running and restart it if necessary by running service apache2 restart .

Can I install Nextcloud on Ubuntu Server? ›

Step 1 – Installing Nextcloud

This packaging system, available on Ubuntu 22.04 by default, allows organizations to ship software, along with all associated dependencies and configuration, in a self-contained unit with automatic updates.

Which Linux is best for Nextcloud? ›

We strongly recommend using the latest version of your operating system to get the full and most stable experience out of our clients.
  • Windows 8.1+
  • macOS Lion (10.7)+ (64-bit only)
  • Linux (CentOS 6.5+, Ubuntu 14.04+, Fedora 21+, openSUSE 13, SUSE Linux Enterprise 11 SP3+, Debian 8 (Jessie)+, Red Hat Enterprise Linux 7)

How do I install Nextcloud on server? ›

Installation via web installer on a VPS or web space
  1. Get the file from the installation page.
  2. Upload setup-nextcloud. php to your web space.
  3. Point your web browser to setup-nextcloud. php on your webspace.
  4. Follow the instructions and configure Nextcloud.
  5. Login to your newly created Nextcloud instance!

1. Cara Instalasi Nextcloud Server dan Klient di Linux Mint 20.1
(Salim Mulyana)

Top Articles

Latest Posts

Article information

Author: Mr. See Jast

Last Updated: 12/20/2022

Views: 6156

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.