# Localhost/nextcloud 404 Not Found and 403 Forbidden on Pop!\_OS 20.04 after Nextcloud Snap installation

**URL:** <https://help.nextcloud.com/t/localhost-nextcloud-404-not-found-and-403-forbidden-on-pop-os-20-04-after-nextcloud-snap-installation/82273>\
**Category:** ℹ️ Support\
**Tags:** snap, nc18-nextcloud-hub\
**Created:** [May 21, 2020, 6:25am UTC](https://help.nextcloud.com/t/localhost-nextcloud-404-not-found-and-403-forbidden-on-pop-os-20-04-after-nextcloud-snap-installation/82273 "2020-05-21T06:25:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cilyrik](https://help.nextcloud.com/letter_avatar/cilyrik/32/6_449c533f586939b6e5f246632a46421f.png) [@cilyrik](https://help.nextcloud.com/u/cilyrik)\
**Post date:** [May 21, 2020, 6:25am UTC](https://help.nextcloud.com/t/localhost-nextcloud-404-not-found-and-403-forbidden-on-pop-os-20-04-after-nextcloud-snap-installation/82273/1 "2020-05-21T06:25:26Z")

</div>

Trying to install [Nextcloud Snap](https://snapcraft.io/nextcloud) on [Pop!\_OS 20.04](https://pop.system76.com/), and I’m stuck on the initial configuration step.

Right after I installed Nextcloud I went to check out local links described in documentation. `localhost` is showing **Apache2 Ubuntu Default Page** , but `localhost/nextcloud` was responding with 404 Not Found.

After some digging I figured out that Nextcloud Snap incorrectly configured `/etc/apache2/sites-available/nextcloud.conf` on installation (maybe it’s because Pop!\_OS doesn’t support Snaps out of the box).

I modified every `/var/www/nextcloud/` in the config to `/var/snap/nextcloud/`, because this is where Nextcloud files are located in this case. **“404 Not Found”** changed to **“403 Forbidden”**. And remains **403** even after `sudo chown-R www-data:www-data /var/snap/nextcloud`.

How do I troubleshoot it further?

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 4:48pm UTC](https://help.nextcloud.com/t/localhost-nextcloud-404-not-found-and-403-forbidden-on-pop-os-20-04-after-nextcloud-snap-installation/82273/2 "2024-09-23T16:48:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:00am UTC](https://help.nextcloud.com/t/localhost-nextcloud-404-not-found-and-403-forbidden-on-pop-os-20-04-after-nextcloud-snap-installation/82273/3 "2024-12-12T07:00:50Z")

</div>


