nextcloud icon indicating copy to clipboard operation
nextcloud copied to clipboard

Cannot add 'htaccess.RewriteBase' => '/', to config.php

Open cjoy opened this issue 9 years ago • 1 comments

I am using the collabora docker-compose example. I managed to add: 'htaccess.RewriteBase' => '/' to config.php, but I need to manually update the .htaccess file using "sudo php /var/www/html/occ maintance:update:html

Can you tell me how I would accomplish this?

Cheers

cjoy avatar Nov 07 '16 02:11 cjoy

I have tried: docker exec e5b5540f5be7 sudo -u www-data php /var/www/html/occ but sudo is not installed and can't be installed in the nextcloud container and I get the following error rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"sudo\\\": executable file not found in $PATH\"\n"

I had to manually run via docker exec

apt-get update apt-get install sudo sudo -u www-data php /var/www/html/occ maintance:update:htaccess

and then restart all conainers via docker-compose

in order to just add the rebase configuration.

cjoy avatar Nov 07 '16 02:11 cjoy