Hi friends, first time attempting something like this before. I believe I have followed the installation instructions as accurately as possible, however, the end part relating to writefreely.service is throwing me off big time.
First question: Do I simply save the text file as writefreely.service? That is what I have done currently.
Second: when the bolded text says /var/www/example.com, is the example.com the domain I own? Also, what is /var/www? Very new to Ubuntu so any guidance would be helpful.
Thanks for the assistance!
Edit 1 So I think I’m making progress: I believe I need to include my domain in the /var/www/example.com. I have done so by creating a folder in /www/ and have then dragged and dropped the writefreely folder into it.
However, I am now I’m encountering an error when trying to run
sudo journalctl -f -u writefreely
It produces the following error:
-- Logs begin at Wed 2020-04-08 00:01:21 BST. --
Apr 08 14:51:03 AMCosyClub systemd[4925]: writefreely.service: Failed to execute command: Permission denied
Apr 08 14:51:03 AMCosyClub systemd[4925]: writefreely.service: Failed at step EXEC spawning /var/www/amcosy.club/writefreely: Permission denied
Apr 08 14:51:03 AMCosyClub systemd[1]: writefreely.service: Main process exited, code=exited, status=203/EXEC
Apr 08 14:51:03 AMCosyClub systemd[1]: writefreely.service: Failed with result 'exit-code'.
Apr 08 14:51:03 AMCosyClub systemd[1]: writefreely.service: Service hold-off time over, scheduling restart.
Apr 08 14:51:03 AMCosyClub systemd[1]: writefreely.service: Scheduled restart job, restart counter is at 5.
Apr 08 14:51:03 AMCosyClub systemd[1]: Stopped WriteFreely Instance.
Apr 08 14:51:03 AMCosyClub systemd[1]: writefreely.service: Start request repeated too quickly.
Apr 08 14:51:03 AMCosyClub systemd[1]: writefreely.service: Failed with result 'exit-code'.
Apr 08 14:51:03 AMCosyClub systemd[1]: Failed to start WriteFreely Instance.