You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
returns
Error updating .htaccess file, not enough permissions or "overwrite.cli.url" set to an invalid URL?
Server configuration
Operating system: Ubuntu 18.04
Web server: Apache
Database: MySQL
PHP version: 7.2
Nextcloud version: (see Nextcloud admin page) 14.0
Updated from an older Nextcloud/ownCloud or fresh install: fresh
Where did you install Nextcloud from: nextcloud.com
GitMate.io thinks possibly related issues are #9350 (Change URL with overwrite.cli.url), #10678 (Pretty urls don't work after occ upgrade), #9634 (Kerberos SSO fails after configuring pretty urls), #6271 (Theming kills pretty URL), and #7547 ([Clarification Request or Bug] Pretty Urls does not work for me).
Steps to reproduce
Expected behaviour
Pretty URLs are working
Actual behaviour
sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
returns
Error updating .htaccess file, not enough permissions or "overwrite.cli.url" set to an invalid URL?
Server configuration
Operating system: Ubuntu 18.04
Web server: Apache
Database: MySQL
PHP version: 7.2
Nextcloud version: (see Nextcloud admin page) 14.0
Updated from an older Nextcloud/ownCloud or fresh install: fresh
Where did you install Nextcloud from: nextcloud.com
If you follow the documentation here:
https://docs.nextcloud.com/server/14/admin_manual/installation/source_installation.html#pretty-urls
'overwrite.cli.url' => 'https://example.org',
'htaccess.RewriteBase' => '/',
This example is wrong, it should be https://example.org/ (with a trailing '/').
Otherwise in lib/private/Setup.php in updateHtaccess(), the parse_url($webRoot, PHP_URL_PATH) fails as there's no URL path.
The text was updated successfully, but these errors were encountered: