title: Executing .sh scripts via PHP
body: <p>I have a few game servers that that I need to run shell scripts for frequality. I'm trying to figure out how to run these scripts via a webpage on the same server. It's a Ubuntu Dedicated server.</p>
  
  <p>The website files are located via <code>/var/www/...</code> The .sh files I need to manually run are located in <code>/home/amservers/.../start.sh</code>.</p>
  
  <p>I've looked at other answers and I still can't figure it out. How do locate the files and store it and then run exec()?</p>