Hello,
my nextcloud was perfectly running, till I wanted to remove the index.php
I used the following instruction:
sudo vim /var/www/html/nextcloud/config/config.php
Add ‘htaccess.RewriteBase’ => ‘/nextcloud’, (where nextcloud is the location of the installation) below one of the existing configuration options and finally, from /var/www/html/nextcloud, run:
sudo -u www-data php occ maintenance:update:htaccess
And now I can´t acces any longer my nextcloud:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.18 (Ubuntu) Server at extern.mmnab.de Port 443
Any ideas?
My config: Ubuntu Server 16.04.1 with Apache, PHP7 und mariaDB
Location of Nextcloud: /var/www/nextcloud
Location of Nextcloud-data: /var/www/nextclouddata
here my config.php:
<?php $CONFIG = array ( 'instanceid' => '...', 'passwordsalt' => '...', 'secret' => '...', 'trusted_domains' => array ( 0 => 'www.nextcloudURL.com', ), 'datadirectory' => '/var/www/nextclouddata', 'overwrite.cli.url' => 'https://www.nextcloudURL.com', 'htaccess.RewriteBase' => 'var/www/nextcloud', 'dbtype' => 'mysql', 'version' => '9.1.1.5', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'DATABASEUSER', 'dbpassword' => 'PASSWORD', 'logtimezone' => 'UTC', 'installed' => true, 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'filelocking.enabled' => 'true', 'redis' => array ( 'host' => '/var/run/redis/redis.sock', 'port' => 0, 'timeout' => 0.0, ), );