"var/www/html/config does not exist" when try to change config.php

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    AIO v10.9.0
  • Operating system and version (e.g., Ubuntu 24.04):
    Debian 12.10
  • Web server and version (e.g, Apache 2.4.25):
    • `none
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • none
  • PHP version (e.g, 8.3):
    • idk
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • startup
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Dear Nextcloud-Crowd,
im already having an issue while starting up the AIO. The problem arose when I tried to put in my nextcloud.subdomain: “DNS config is not set for this domain or the domain is not a valid domain! (It was found to be set to ‘’)”
so I tried to ad my domain in the config.php as a secure domain, but, i cant find the config.php. I checked many help threads and a lot of locations, i used the find command and of course I tried the docker mounting of the confing file (is that the right term? im really new to this):
"sudo docker run -it --rm --volume nextcloud_aio_nextcloud:/var/www/html:rw alpine sh -c "apk add --no-cache nano && nano /var/www/html/config/config.php" "
which gave me: “var/www/html/config does not exist”
i checked manually, there is no www folder in var…
I redid the setup of the AIO as explained in the GIT-hub but the same error occurred.
anyone any idee? much appreciated!

I have no logs, since the cloud didnt run at all… or at least I dont know how to get them, while the folders are missing…
:frowning:
@edit: I manually created a config.php (and the according folders) from the config.sample.php from github, and added my trusted domain like this:

array (
0=>‘cloud.domain.com.bo’,
1 => ’ “my domain” ',
)
…no change…

Hi, have you followed all the steps of the initial installation before running the command? See How to Install the Nextcloud All-in-One on Linux - Nextcloud

hej,
yes, since I am stuck at the 6th step, im pretty sure i completed everything i could.
Can i somehow verify that the docker run command (step 3) completed successfully?

You can only edit the config.php file after the whole indtallation is done inckuding finishing with step 12

I see, which leads me to my main issue, when I put in nextcloud.subdomain in step
6 i get:
“DNS config is not set for this domain or the domain is not a valid domain! (It was found to be set to ”) "
The sub domain works, I can SSH into the server via the domain, so it has to be an issue on my machine or the AIO itself…
do you have any idea where the error could come from?

@solution: very confusing: you need to put only your subdomain in the box. inside the box it says: nextcloud.yourdomain.com, thats why I always put nextcloud.XXX.YYY.com. I changed that to your XXX.YYY.com, now it works… maybe its me, but this writing seems confusing. anyhow, its running, for now :wink:

1 Like

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