Good day all, hate to have my first post asking for help but here I am... I'm working on a school project where I need to make a web GUI for omxplayer (I know there are already some but it's just what I have to do). So what I thought was I'd get a webserver running, which I did using nginx , and I also installed php7. I went about doing this by using shell_exec(), which works perfectly for commands that doesn't output to the screen, but anything like omxplayer, which I need to launch on the host, simply doesn't work. Echoing the output from the shell_exec() gives 'have a nice day' like if it was working, but it doesn't play anything. I'm rather new to the raspi and linux in general so I apologize in advance for any misconceptions.
Just as a side note, other GUI applications like pcmanfm wouldn't launch either, so I'm assuming it's something with the desktop display? (I also tried booting in command line mode but omxplayer didn't play anything still). I really don't know where to go from here, so any help is greatly appreciated. Thank you.