title: PHP - How to run commandline apps on server?
body: <p>I have been coding with PHP for a while now and have used things like FFMPEG on Windows XAMPP without any problems. Now however i have been trying to run the FFMPEG commandline on my Godaddy hosting account with PHP as i wanted to make a web based project but cannot get it working.</p>
  
  <p>On windows with ffmpeg.exe and sound.wav in the same directory this works:</p>
  
  <p>WavToMP3.php</p>
  
  <pre><code>&lt;?php
  
  exec("ffmpeg.exe -i sound.wav -ar 44100 -ac 2 -c:a libmp3lame -b:a 320k sound.mp3");
  
  ?&gt;
  </code></pre>
  
  <p>Yet it does not run on Godaddy, i know they use linux though so i tried this:</p>
  
  <p><a href="http://download1.rpmfusion.org/free/fedora/releases/25/Everything/x86_64/os/repoview/ffmpeg-compat.html" rel="nofollow noreferrer">http://download1.rpmfusion.org/free/fedora/releases/25/Everything/x86_64/os/repoview/ffmpeg-compat.html</a></p>
  
  <p>I downloaded: </p>
  
  <p><a href="http://download1.rpmfusion.org/free/fedora/releases/25/Everything/x86_64/os/Packages/f/ffmpeg-compat-0.6.7-9.fc25.i686.rpm" rel="nofollow noreferrer">http://download1.rpmfusion.org/free/fedora/releases/25/Everything/x86_64/os/Packages/f/ffmpeg-compat-0.6.7-9.fc25.i686.rpm</a></p>
  
  <p>Then in the script i changed "ffmpeg.exe" to just "ffmpeg" but it still did not work. </p>
  
  <p>I have no idea about running linux commandlines as i have only ever used Windows in the past. </p>
  
  <p>What are the instructions needed that can get the above PHP code or a modified version to generate a .mp3 file using my Godaddy hosting account?</p>