You don't have permission to access /UI on this server

When I add the local net info there’s no error, cat wdnas-ui.conf shows edits…
However when I service apache2 restart I get an error
“-sh: service:not found”
Should I be in a different location in the shh session before using the restart command? When I use the reboot command it reboots the drive, and the modification made to the wdnas-ui is no longer there.

When at root, doing “/etc/apache2 restart”
I get a “Permission denied” error message .

I’m on the current version 2.21.111