title: shell script: can't cd to
body: <p>i need an help, i want to make a webpage that allow to start/stop/restart a program on the server where there is the website.</p>
  
  <p>my html:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;tr&gt;
    &lt;td&gt;JTS&lt;/td&gt;
    &lt;td&gt;
     &lt;form action="JTSstart.php"&gt;
     &lt;input type="submit" value="START"&gt;
     &lt;/form&gt;
    &lt;/td&gt;
      &lt;td&gt;
     &lt;form action="JTSres.php"&gt;
     &lt;input type="submit" value="RESTART"&gt;
     &lt;/form&gt;
    &lt;/td&gt;
      &lt;td&gt;
     &lt;form action="JTSstop.php"&gt;
     &lt;input type="submit" value="STOP"&gt;
     &lt;/form&gt;
    &lt;/td&gt;
   &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>my php:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  echo shell_exec('sh JTSres.sh');
  sleep(5);
  header("Location: 5ondimba.html");
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and my sh:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>#!/bin/bash
  cd ~/home/otaku/JTS_HostingEdition
  ./jts_startscript.sh restart</code></pre>
  </div>
  </div>
  </p>
  
  <p>now.. when i click on one of all button's nothing happens and on the error.log in /var/log/apache2, it say:</p>
  
  <pre><code>JTSres.sh: 2: cd: can't cd to /home/otaku/JTS_HostingEdition
  </code></pre>
  
  <p>i try to search something on stackoverflow but nothing can help me.
  what i can try to do?
  thanks for all!</p>