title: Start Minecraft_Server.jar via PHP Exec() or similar function
body: <p>I'm trying to build a script that starts <code>minecraft_server.jar</code> (location: user directory / mineserver / minecraft_server.jar ).</p>
  
  <p>I have PHP and Apache installed, and I'm trying trying to start the server JAR from <code>/var/www/html/interface.php</code>.</p>
  
  <p>Via console, the server starts fine by running: </p>
  
  <pre><code>java -Xmx1024M -Xms1024M -jar mineserver/minecraft_server.jar nogui
  </code></pre>
  
  <p>... from the user directory. So in the <code>interface.php</code> file I have the following (note location listed above): </p>
  
  <pre><code>system('java -Xmx1024M -Xms1024M -jar /home/ec2-user/mineserver/minecraft_server.jar nogui', $retval);
  </code></pre>
  
  <p>But the server never starts after I visit the file. What am I doing wrong?  </p>
  
  <h2>Thanks for any and all clues.</h2>
  
  <p>I want to say thank you for your help on Thanksgiving. While I haven't found the solution yet, I appreciate the efforts. Thanks again. </p>