title: Phantomjs - No such file or directory (what have I missed)
body: <p>May I ask for a little help with setting up phantomjs on a shared hosting server, please?</p>
  
  <p>Let me run through what I have done and then ask my question.</p>
  
  <p>Steps taken...</p>
  
  <p>Used ‘Putty’ to check the architecture of my server, like so … </p>
  
  <pre><code>uname –m        // x86_64
  cat /etc/issue  // Debian GNU/Linux 6.0 \n \l
  </code></pre>
  
  <p>I downloaded the 64bit version of ‘phantomjs-1.9.8-linux-x86_64.tar.bz2’  from this page <a href="https://bitbucket.org/ariya/phantomjs/downloads" rel="nofollow">https://bitbucket.org/ariya/phantomjs/downloads</a></p>
  
  <p>Placed that file in a folder on my server and ran the next command in Putty …</p>
  
  <pre><code>tar -jxvf phantomjs-1.9.8-linux-x86_64.tar.bz2
  </code></pre>
  
  <p>The files extracted and created a directory structure, seemingly without errors.
  I changed to that that directory and ran ls. The phantomjs file was the only file listed.</p>
  
  <p>I inspected the file with Putty …</p>
  
  <pre><code>file phantomjs 
  </code></pre>
  
  <p>Which returned</p>
  
  <pre><code>ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
  </code></pre>
  
  <p>Entering     </p>
  
  <pre><code>echo "$PWD/phantomjs"
  </code></pre>
  
  <p>Gives me</p>
  
  <pre><code>/homepages/24/someNumber/htdocs/cabs/mySite/phantom/bin/phantomjs
  </code></pre>
  
  <p>Next I tried </p>
  
  <pre><code>/homepages/24/someNumber/htdocs/cabs/mySite/phantom/bin/phantomjs -–version
  </code></pre>
  
  <p>The result of which was the '<strong>No such file or directory</strong>' error ...</p>
  
  <pre><code>-bash: /homepages/24/someNumber/htdocs/cabs/mySite/phantom/bin/: No such file or directory
  </code></pre>
  
  <p>However, if I just enter </p>
  
  <pre><code>/homepages/24/someNumber/htdocs/cabs/mySite/phantom/bin/
  </code></pre>
  
  <p>then I get </p>
  
  <pre><code>/homepages/24/someNumber/htdocs/cabs/mySite/phantom/bin/: Is a directory
  </code></pre>
  
  <p>May a linux novice ask for some pointers on where I have gone wrong. The readme file mentions being up and running in 5 minutes. So, I have that dreadful feeling I have missed something rather basic.</p>
  
  <p>Thank you.</p>
  
  <p>EDIT</p>
  
  <p>permissions in the phantom directory</p>
  
  <pre><code>-rwxrwxrwx 1 u387xx ftpusers 38346752 Oct 24  2014 phantomjs
  </code></pre>
  
  <p>permissions in the </p>
  
  <pre><code>/homepages/24/someNumber/htdocs/cabs/mySite directory (specifically for the phantom folder)
  
  drwxr-xr-x  7 u387xx ftpusers   4096 Jul 13 11:35 phantom
  </code></pre>
  
  <p>Edit</p>
  
  <p>In Putty, whilst in the phantom/bin directory, if I run 
      ~/phantomjs</p>
  
  <pre><code>**/aHigherUpFolder**/homepages/24/someNumber/htdocs/phantomjs: No such file or directory
  </code></pre>
  
  <p>Interesting as there is another directory further up the path now. However, trying ...</p>
  
  <pre><code>/aHigherUpFolder/homepages/24/someNumber/htdocs/cabs/mySite/phantom/bin/phantomjs --version
  </code></pre>
  
  <p>Still leads me to a 'No such file ...' message.</p>