title: php shell_exec multiple commands at once in background
body: <p>I have a problem in php/linux, described below:</p>
  
  <p>I have to execute  a linux command through shell_exec (plesk cli command subscription webspace-off).</p>
  
  <p>The problem is when i do this from php it works, but restarts apache, that resulting in a blank page, while apache restarts.</p>
  
  <p>To get rid of the problem i have to call that shell_exec in background, with a delay (Expected result: the web page loads, and after 4 sec. runs the linux script.)</p>
  
  <p>I have done some tryings  like:</p>
  
  <pre><code>shell_exec("sleep 4 &amp;&amp; /var/www/vhosts/site.com/httpdocs/wrapper2 3  --webspace-off ".$domain_name." &amp;");
  </code></pre>
  
  <p>but php will wait for response.</p>
  
  <p>Somehow i need to sleep the execution of a linux command , and all this has to run in bg.,
  and dont wait for response.</p>
  
  <p>Thanks</p>