So my issue is that I have an AWS EC2 instance running Apache2, when a button is pressed it posts some variables which are passed to a function which then uses shell_exec() to e