S
S
Sevastoporn2019-04-29 14:58:43
linux
Sevastoporn, 2019-04-29 14:58:43

Why did the service stop working after renaming the NextCloud Pi host?

I installed NextCloud Pi on my 3rd raspberry
By default, the hostname is nextcloudpi
Recently I wanted to rename it to a more convenient name via /etc/hostname
After rebooting, the web interface gives an error:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Reverting the hostname to default doesn't help.
The apache service itself - works
Where to dig, where to look?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fixid, 2019-04-29
@Fixid

Take a look at /etc/hosts and config.php
There, too, you need to rename.
And for good it was necessary to use the standard functionalityhostnamectl set-hostname 'newname'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question