Dependencies not found and other errors

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).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.3
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • nginx 1.30.2
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.30.2
  • PHP version (e.g, 8.3):
    • 8.5
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When I tried to run mydomain/setup-nextcloud.php
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Web installer
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

[Dependencies not found.
Can’t write to the current directory. Please fix this by giving the webserver user write access to the directory.]

Steps to replicate it (hint: details matter!):

  1. Move setup-nextcloud.php to my website directory

  2. Enter “mydomain.com/setup-nextcloud.php” into the address bar of Firefox

  3. Click on the Next button

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

The resource at “https://nextcloud.com/wp-content/themes/next/assets/img/common/favicon.png” was blocked by OpaqueResponseBlocking. Reason: “after sniff: status code is not in allowed range”.

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

2026/05/24 22:42:29 [error] 330738#330738: *19226 "/usr/share/nginx/nextcloud/index.php" is not found (2: No such file or directory), client: 192.168.1.1, server: nextcloud.mydomain.com, request: "GET / HTTP/2.0", host: "nextcloud.mydomain.com"

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

Not yet installed

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hi, that sounds like you haven’t granted permissions for the directory where you want to install Nextcloud.

Therefore, I am asking specifically.

  1. Have you already installed everything you need? (PHP, MariaDB, or MySQL)
  2. Have you created the database for Nextcloud?
  3. Have you created a virtual host in Nginx for your Nextcloud?

If all of this has been completed, you must also assign access permissions to the installation directory.

Here is an example, assuming Nextcloud is located in the ‘Nextcloud’ folder within the web directory:

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

Then you can access the page and begin the installation.

I have installed php8.5, nginx, and MariaDB. Those are there. There is a virtual host for Nextcloud in nginx. Currently, there is no Nextcloud directory, as the installation has stalled at Step 1. Do I need to create the Nextcloud directory manually?

This is the method I use. But be careful: if you use a subdirectory, you naturally have to adjust Nginx as well.

sudo mkdir /var/www/nextcloud

cd /var/www/nextcloud

sudo wget https://download.nextcloud.com/server/installer/setup-nextcloud.php

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

sudo chmod -R 755 /var/www/nextcloud/

And once everything is configured—as you mentioned it already is—you can access the page and run the actual installation process.

http://localhost/nextcloud/setup-nextcloud.php

In any case, it is not advisable to place the files directly into the www directory.

Tried this and got a 503 Bad Gateway error.

Is there a way to run setup-nextcloud.php from the command line?

See GitHub - nextcloud/web-installer: 💊 The web installer for Nextcloud · GitHub

P.S. The script you’re using is primarily intended for shared hosting environments.

And that brings us back to the beginning of this post.

That’s what I did, and I got the results I posted.

Which Nginx web server config did you use?

Is it the one in the Admin Manual?

What’s the FPM handler path?

Etc.

As stated on the link I provided, the script you’re trying to use has a variety of requirements. And if you’re using Nginx there is an extensive configuration file that must be used with Nextcloud.

I agree with @jtr on this. This appears to be an obvious configuration error in Nginx.

Personally, I always use Apache2 here, as it is easier to configure.

I would suggest really checking everything once again.

  • Installation of all PHP modules
  • Configuring PHP in php.ini
  • Activation of all PHP modules
  • Virtual Host Configuration
  • Virtual Host Activation

Is the web server itself—that is, http://localhost---accessible?

Yes, the one in the Admin Manual. I’ve given up on the Web Installer; last night I downloaded latest.zip and installed it. Now I’m only getting the “Can’t write to config directory.” I checked, and www-data (the owner) does indeed have write permission to the Nextcloud and the config directories.

So I deleted latest and tried installing 33.0.2 just to see if it made a difference. It did not. I’m still getting the “Can’t write into config directory” even though the owner (www-data) has write permission. Does this make any sense to anyone?

A silly question, perhaps, but just as a heads-up: After you have unzipped the directory, you absolutely must reassign the permissions for the directory and its files to `www-data`.

Yes. sudo chown www-data:www-data /path/to/nextcloud/ -R

Ok, you need also this:

sudo chmod -R 755 /path/to/nextcloud/

With the first `chown` command, he is only the owner. However, you need write permissions—hence `chmod`.

All that did was take write permission away from the group. Still getting the same error.

I’m sorry, but in that case, I’m afraid I don’t know how to proceed either. I would recommend starting completely from scratch and setting up the server anew. These are not issues with Nextcloud itself, but rather configuration problems involving the server, the web server, and file system permissions.

I would also recommend—unless Nginx is an absolute requirement—switching to Apache2 as your web server. It is far easier to configure.

No can do. It’s also my mail server, and I can’t be without that.

Okay, well, that’s obviously problematic then. In that case, I hope someone else—someone with deeper expertise in the Linux system itself—can help you out. I always handle things like this on a virtual server so I don’t run into trouble with other services.

is maybe AppArmor blocking (if enabled)?