Page 1 of 1

config.php nextcloud

Posted: 17 Aug 2023, 07:36
by oscar1412
Hi, good, I have a problem. I access the nextcloud config.php configuration but I can't save it. What key is to save the file? I don't know how to save it and exit the vi editor.

trusted_domains" in config/config.php like the example in config.sample.php.

Re: config.php nextcloud

Posted: 19 Aug 2023, 15:38
by TMRyan
When editing a file with the vi command, you can save and exit by following these steps:

1. Press the Esc key on your keyboard to make sure you are in Command mode.
2. Enter a colon (:) to go to the CLI.
3. In the command line mode, Enter wq and press Enter. This means "write save and exit".
a) If you just want to save the file without exiting vi, you can use the command "w", that is, type w and press Enter.
b) If you want to exit the file without saving any changes, you can use the command "q!"That is, enter q! Then press Enter.
4. vi will save your changes and exit the editor.