WebUI accidentally disabled

I’ve accidentally disabled the webUI by unchecking the nc-webui option.
Now I can’t reach nextcloud pi in my local network.
The SSH was unactivated too.
How can I restart the webUI?

my details:
nextcloud 13 installed on raspberry pi with raspbian stretch