title: Execute linux command from web interface (just like in Django CMS demo generator)
body: <p>I need to create a webpage that will generate demo similar to <a href="https://django-cms.org/en/demo/" rel="nofollow">https://django-cms.org/en/demo/</a>.
  To generate demo, just click <code>Get your demo!</code></p>
  
  <p>I dont mind about the language, PHP or anything, as long as free and open source.</p>
  
  <p>When the button clicked, it will run <code>/var/testing/makesite.sh</code></p>
  
  <p>Inside <code>makesite.sh</code>, it has code <code>urlnya="$thegeneratedurl"</code>.</p>
  
  <p>If we run <code>echo http://$urlnya/</code>, it will show the full URL like <code>http://site1045.demosite.com/</code>.</p>
  
  <p>After demo website has been generated, I need it display link</p>
  
  <p>There are some PHP example to achieve this by <code>shell_exec</code>, but I scared if its not really safe, and I dont know how to show progress and return the demo URL just like in the Django CMS site.</p>