Iāve installed nextcloud on Ubuntu 18.04 server using the snap package but the doc says that all I have to do is to create a virtual host with the following content:
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
Well, I never encountered such kind of vhost config and the fact is that nextclud is not in /var/www/nextcloud.
and the SetEnv HOME /var/www/nextcloud statement disturbes me a bit.
What do I have to do?
Nextcloud version (17.0.2):
Operating system and version (Ubuntu 18.04):
Apache or nginx version (Apache 2.4.25):
PHP version (7.1):
Then you have to set it to the location where you installed it instead. This is just a model that supposes that you have installed nextcloud in /var/www/nextcloud.
Yes that is one of the problem. The doc talks about snap installation or manual installation, but I donāt really see how to access nextcloud in case of snap install. I suppose I have to config apache2 to get access but in case of package install, the config is not clear to me.
if you canāt reach nextcloud via http://fqdn-or-ip-address-of-your-server/ something went wrong. but that canāt be fixed with the āmanual installationā part.
Youāre mixing two different parts of the docs. The snap install is self-contained-- you donāt need to configure Apache, and in fact you shouldnāt even have apache installed or it will claim port 80 and the snap wonāt be able to. Either uninstall Apache or configure Apache or the snap to listen on another port.