Documentation - Example installation on Ubuntu 22.04 LTS

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

I spotted a small issue in the documentation while installing Nextcloud on Ubuntu Server.

(https://docs.nextcloud.com/server/25/admin_manual/installation/example_ubuntu.html)

I followed the tutorial step by step, but when I tried to access the installation page at:

Not Found The requested URL was not found on this server. Apache/2.4.58 (Ubuntu) Server at "my_private_ip" Port 80

At first, I restarted Apache and checked that all ports and services were running correctly, but everything seemed fine.

After some troubleshooting, I realized that the tutorial instructs users to run:

sudo cp -r nextcloud /var/www

However, with the default Apache configuration on Ubuntu, this does not work because Apache serves files from:

/var/www/html

Moving the Nextcloud directory to /var/www/html fixed the issue immediately.

It might be helpful to update the documentation.

Hello and welcome to the forum.

What you’re saying isn’t quite right. The description also explains why the Nextcloud folder isn’t located in the html section.

It is always safer not to have your web applications located directly in the HTML directory of the Apache web server.

The only place you need to specify the directory is in the configuration of the virtual web server, which you have to configure to access Nextcloud.

You’ve only performed a basic installation so far. This means that no further web services are possible at this stage, and you haven’t yet configured a virtual server.

Example virtual server configuration
<VirtualHost *:80>
     ServerAdmin Email@Adresse.de
     DocumentRoot /var/www/nextcloud/
     ServerName Serveradresse.de

     <Directory /var/www/nextcloud/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
          <IfModule mod_dav.c>
            Dav off
          </IfModule>
        SetEnv HOME /var/www/nextcloud
        SetEnv HTTP_HOME /var/www/nextcloud
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>
2 Likes

Perhaps you overlooked the Next steps section immediately after that?

P.S. You’re looking at ancient documentation (unless you’re installing v25). See https://docs.nextcloud.com to access the version of the manual for the version you’re deploying.