I set up nextcloud 12 on my server.
And I want to access the system by subdirectory.
So I rename ‘nextcloud/’ to ‘somedir/’.
However, I try to login next cloud on http://example.com/path/to/somedir , I can’t login but redirect to login page.
What should I do?
this is my
$CONFIG = array (
'instanceid' => 'instanceid',
'passwordsalt' => 'salt',
'secret' => 'secret',
0 => 'example.com',
'datadirectory' => '/var/www/path/to/somedir/data',
'overwrite.cli.url' => 'http://example.com/path/to/some/dir',
'dbtype' => 'pgsql',
'version' => '220.127.116.11',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'dbuser',
'dbpassword' => 'dbpass',
'installed' => true,
There’s nothing really we can help you with here. Feel free to edit your post with more information.
I posted in the middle of editing…
Cool, so you’ll need to update your
config.php file to reflect any change you’ve made to the URL too.
Should I need to edit other params?
You wouldn’t edit datadirectory for a URL… that’s likely broken it further.
I tried to install again.
The Installation might be success, but I cannot use nextcloud.
It shows ‘This content failed to load.’ in modal window on
mv nextcloud somedir
- access to http://example.com/path/to/somedir
- input authentication data
- click ‘complete setup’
If you’re going to start again, here’s a guide to follow.
Otherwise you’ll need to output logs - Nextcloud, Apache…
Recheck your webserver configuration as it should contain some location directive to
/path/to/nextcloud/ which should be not valid anymore.
In cases the
.user.ini files might contain some path information, too. You can try to update them by
sudo -u www-data php /path/to/nextcloud/occ maintenance:update:htaccess.
I checked some settings and reinstalled according to the guide.
I could access correctly
Thanks a lot!