LINUX.ORG.RU
ФорумAdmin

помогите настроить aria2web


0

1

Ситуация такая хочу подключить web интерфейс к aria2. Сделал всё как по инструкции но не работает и логе пишет

[Wed Dec 08 18:23:07 2010] [error] [client 192.168.1.4] PHP Notice:  Undefined index: xml_rpc_user in /var/www/2/auth.php on line 14
[Wed Dec 08 18:23:07 2010] [error] [client 192.168.1.4] PHP Notice:  Undefined index: xml_rpc_pass in /var/www/2/auth.php on line 15
[Wed Dec 08 18:23:07 2010] [error] [client 192.168.1.4] PHP Notice:  Undefined index: xml_rpc_user in /var/www/2/actions.php on line 18

Запускаю так

aria2c --enable-xml-rpc --xml-rpc-user=test --xml-rpc-passwd=test

после иду в config.php там правлю

$aria2_mode = 'web'; 
$aria2_xmlrpc_host = 'localhost';
$aria2_xmlrpc_uripath = '/rpc';

$aria2_executable = '/usr/bin/aria2c'; // Location of the aria2c executable
$aria2_parameters = array();

// If aria2web is in local mode, it will try to start aria2c in XMl-RPC mode using the following additional parameters
$aria2_parameters['xml_rpc_listen_port'] = 6800;
$aria2_parameters['xml_rpc_username'] = 'test';
$aria2_parameters['xml_rpc_password'] = 'test';
$aria2_parameters['xml_rpc_listen_all'] = 'true';
$aria2_parameters['dir'] = '~/'; // The directory to store the downloaded file. 
$aria2_parameters['log'] = '~/aria2.log'; // The location of the log file.
$aria2_parameters['http_user']= ''; //Set HTTP user. This affects all URLs. 
$aria2_parameters['http_passwd']= '';//Set HTTP password. This affects all URLs. 
$aria2_parameters['load_cookies']= ''; //Load Cookies from FILE using the Firefox3 format (SQLite3) and the Mozilla/Firefox(1.x/2.x)/Netscape format. 
$aria2_parameters['user_agent']= ''; //Set user agent for HTTP(S) downloads. Default: aria2/$VERSION, $VERSION is replaced by package version. 

?>

Что делаю не так?

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.