title: Installing RAR package with PHP
body: <p>I'm trying to install the rar package. I checked php.net's installation docs and it just said to execute <code>pecl -v install rar</code></p>
  
  <p>I did it and rebooted server but its still not working. I'm not very familiar with the Linux stuff so maybe did I do something wrong?</p>
  
  <p>Phpinfo also display nothing about RAR package.</p>
  
  <p>I'm trying to execute this script, I found it on php.net docs so it should be working:</p>
  
  <pre><code>$rar_arch = RarArchive::open('dl/test.rar');
  if ($rar_arch === FALSE)
  die("Could not open RAR archive.");
  
  $rar_entries = $rar_arch-&gt;getEntries();
  if ($rar_entries === FALSE)
  die("Could retrieve entries.");
  
  echo "Found " . count($rar_entries) . " entries.\n";
  
  foreach ($rar_entries as $e) {
  echo $e;
  echo "\n";
  }
  $rar_arch-&gt;close();
  </code></pre>