I wanted to add my domain in trusted domains in config.php (using WinSCP), but I can’t download, modify, or replace config.php. “scp: config.php: Permission denied”
The config.php (rw-r-----) is located on the server in /var/www/html/config
I wanted to add my domain in trusted domains in config.php (using WinSCP), but I can’t download, modify, or replace config.php. “scp: config.php: Permission denied”
The config.php (rw-r-----) is located on the server in /var/www/html/config
The file is (and needs to be so don’t change it) owned by the user is that your web server runs under. Generally it’s www-data or apache.
You can ssh it and make the change using an editor like nano or vi via sudo.
P.S. I assuming you’re not in an outsourced shared hosting environment. If you were that file - along with the rest of your Nextcloud files - would generally already be owned by you.