Cannot find config.php/ cannot acces webui

Hey guys,

I cannot access my webserver from 192.168.x.x. I want to add my ip to trusted domains in config.php but i only do find config.sample.php in the config foler. And if scroll further down the page i get this…

Does someone know how to fix this ?

Thanks in advance

Hello @Mike_milkshake !
Welcome in the community.

Have you tried with root access ?

hi thank you @didi44

yes i did. I’ve looked in /var/www/nextcloud/config/ with root but cant find config.php. But in config.sample.php it says installed=false. And i dont know how to fix this.

Ok, you can create it and don’t forget to give the right rights to the file with : chown www-data:www-data config.php

Sorry but this didnt help me any further to acces the web interface @didi44

Why ?
I don’t know why you don’t have the config.php. It is a fresh installation or a backup ?

but create it and edit it :

<?php
$CONFIG = array (
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'studio',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'installed' => true,
);

I tried but it didn’t do the trick and btw this is an fresh install @didi44
when i go to 192.168.x.x/nextcloud/index.php nothing displays

Did you add it to the ‘trusted_domains’ array?

$CONFIG = array (
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'studio',
    2 => '192.168.x.x',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'installed' => true,
);```
1 Like

Welcome @Mike_milkshake

Hello !!


@Mike_milkshake Did you get this web page after the installation ?

Have you tried 192.168.x.x/index.php ?

[SOLVED]

Srry guys for my late response…
For some reason i couldn’t acces the web interface from the LAN (192.168.x.x/index.php). But when i tried to access it from WAN side it worked. So the config.php generates only when you walked through the webui installation.

still thank you big time guys @didi44 @sturtz_nate