I'm trying to use wakeonlan to send a magic packet. However, It only works if I use sudo:
sudo wakeonlan xx:xx:xx:xx:xx:xx
When I don't use sudo the output says the magic packet has sent, but the server never wakes up. Is there a way to run this command without sudo? I need to do so in order to run the command in a php script. Thanks!