Writefreely.service fails to start

I’ve been following the guide here to install writefreely but at the final hurdle, I get: ‘writefreely.service: Failed to execute command: Permission denied’

Contents of /etc/systemd/system/writefreely.service :

[Unit]

Description=Write Freely Instance

After=syslog.target network.target


[Service]

Type=simple

StandardOutput=syslog

StandardError=syslog

WorkingDirectory=/var/www/blog.[mydomain].com/writefreely

ExecStart=/var/www/blog.[mydomain].com/writefreely/writefreely

Restart=always


[Install]

WantedBy=multi-user.target

Terminal printout :

ubuntu@ip-172-26-6-185:/$ sudo systemctl start writefreely
ubuntu@ip-172-26-6-185:/$ sudo journalctl -f -u writefreely
-- Logs begin at Thu 2020-05-21 13:58:19 UTC. --
May 21 14:34:16 ip-172-26-6-185 systemd[2567]: writefreely.service: Failed to execute comm
and: Permission denied
May 21 14:34:16 ip-172-26-6-185 systemd[2567]: writefreely.service: Failed at step EXEC sp
awning /var/www/blog.[mydomain].com/writefreely/writefreely: Permission denied
May 21 14:34:16 ip-172-26-6-185 systemd[1]: writefreely.service: Main process exited, code
=exited, status=203/EXEC
May 21 14:34:16 ip-172-26-6-185 systemd[1]: writefreely.service: Failed with result 'exit-
code'.
May 21 14:34:16 ip-172-26-6-185 systemd[1]: writefreely.service: Service hold-off time ove
r, scheduling restart.
May 21 14:34:16 ip-172-26-6-185 systemd[1]: writefreely.service: Scheduled restart job, re
start counter is at 5.
May 21 14:34:16 ip-172-26-6-185 systemd[1]: Stopped Write Freely Instance.
May 21 14:34:16 ip-172-26-6-185 systemd[1]: writefreely.service: Start request repeated to
o quickly.
May 21 14:34:16 ip-172-26-6-185 systemd[1]: writefreely.service: Failed with result 'exit-
code'.
May 21 14:34:16 ip-172-26-6-185 systemd[1]: Failed to start Write Freely Instance.

I’m using Lubuntu 18.04 LTS, Apache and MySQL. Any advice would be greatly appreciated, thanks.

Problem solved! My server is now up and running, I would have liked to detail what I did you fix it in case others have the same issue but I tried so much troubleshooting along the way that I can’t be sure what actually helped!

I have the same problem. It would be really nice if you provide any info what helped you. (:

Edit: Figured it out. I had wrong path in ExecStart=

Stupid.

But its working now.