<?php
$fm['tempdir'] = '/tmp'; // path were to store temporary data ; must be writable
$fm['mkdperm'] = 755; // default permission to set to new created directories
// set with fullpath to binary or leave empty
if(empty($pathToExternals['rar'])) // May be path already defined?
{
$pathToExternals['rar'] = '/usr/local/bin/rar';
}
if(empty($pathToExternals['zip'])) // May be path already defined?
{
$pathToExternals['zip'] = '/usr/bin/zip';
}
if(empty($pathToExternals['unzip'])) // May be path already defined?
{
$pathToExternals['unzip'] = '/usr/bin/unzip';
}
if(empty($pathToExternals['tar'])) // May be path already defined?
{
$pathToExternals['tar'] = '/usr/lib/tar';
}
if(empty($pathToExternals['gzip'])) // May be path already defined?
{
$pathToExternals['gzip'] = '/bin/gzip';
}
if(empty($pathToExternals['bzip2'])) // May be path already defined?
{
$pathToExternals['bzip2'] = '/bin/bzip2';
}
// archive mangling, see archiver man page before editing
$fm['archive']['types'] = array('rar', 'zip', 'tar', 'gzip', 'bzip2');
$fm['archive']['compress'][0] = range(0, 5);
$fm['archive']['compress'][1] = array('-0', '-1', '-9');
$fm['archive']['compress'][2] = $fm['archive']['compress'][3] = $fm['archive']['compress'][4] = array(0);
?>
De rien @boblee et merci @Diesel car c'est la dernière ligne (à rajouter) :
rm -rf /var/www/rutorrent;
git clone https://github.com/Novik/ruTorrent.git /var/www/rutorrent;
git clone https://github.com/Micdu70/rutorrent-thirdparty-plugins.git /home/boblee/PluginsRutorrent3rd;
mv /home/boblee/PluginsRutorrent3rd/filemanager /var/www/rutorrent/plugins;
Étant donné la situation, il n'y aurait pas des erreurs ? Dans le fichier config.php, il faut vérifier que la variable dénommé "$topDirectory" soit renseigner correctement.
cat /var/www/rutorrent/conf/config.php;
cat /var/www/rutorrent/plugins/filemanagert/conf.php;
PS : Au fait, je me sers quasiment jamais de ce script. Disons que je préfère la méthode manuelle car au fil du temps, mes compétences s'accumulent.
D'ailleurs il n'est pas parfait ! De temps en temps, il plante pour diverses raisons... Alors il se pourrait qu'il fonctionne normalement d'ici quelques temps (jours etc).