Запустил aria2web под apache, но файлы не скачиваются. В логе Apache следующее:
Код: Выделить всё
[Sun Nov 21 13:53:19 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Nov 21 13:53:20 2010] [notice] Apache/2.2.15 (Linux/SUSE) mod_ssl/2.2.15 OpenSSL/1.0.0 PHP/5.3.3 configured -- resuming normal operations
[Sun Nov 21 13:55:32 2010] [error] [client 127.0.0.1] PHP Notice: Undefined index: xml_rpc_user in /home/xandry/public_html/auth.php on line 14
[Sun Nov 21 13:55:32 2010] [error] [client 127.0.0.1] PHP Notice: Undefined index: xml_rpc_pass in /home/xandry/public_html/auth.php on line 15
[Sun Nov 21 13:55:32 2010] [error] [client 127.0.0.1] PHP Notice: Undefined index: xml_rpc_user in /home/xandry/public_html/actions.php on line 18
[Sun Nov 21 13:55:37 2010] [error] [client 127.0.0.1] PHP Notice: Undefined index: xml_rpc_user in /home/xandry/public_html/auth.php on line 14, referer: http://localhost/~xandry/
[Sun Nov 21 13:55:37 2010] [error] [client 127.0.0.1] PHP Notice: Undefined index: xml_rpc_pass in /home/xandry/public_html/auth.php on line 15, referer: http://localhost/~xandry/
[Sun Nov 21 13:55:37 2010] [error] [client 127.0.0.1] PHP Notice: Undefined index: xml_rpc_user in /home/xandry/public_html/actions.php on line 18, referer: http://localhost/~xandry/
[Sun Nov 21 13:55:37 2010] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'XML_RPC2_ReceivedInvalidStatusCodeException' with message 'Curl returned non 200 HTTP code: 401. Response body:' in /home/xandry/public_html/XML/RPC2/Util/HTTPRequest.php:224\nStack trace:\n#0 /home/xandry/public_html/XML/RPC2/Backend/Xmlrpcext/Client.php(111): XML_RPC2_Util_HTTPRequest->sendRequest()\n#1 [internal function]: XML_RPC2_Backend_Xmlrpcext_Client->remoteCall___('system_multical...', Array)\n#2 /home/xandry/public_html/XML/RPC2/Client.php(233): call_user_func_array(Array, Array)\n#3 /home/xandry/public_html/actions.php(47): XML_RPC2_Client->__call('system_multical...', Array)\n#4 /home/xandry/public_html/actions.php(47): XML_RPC2_Backend_Xmlrpcext_Client->system_multicall(Array)\n#5 /home/xandry/public_html/index.php(25): require_once('/home/xandry/pu...')\n#6 {main}\n thrown in /home/xandry/public_html/XML/RPC2/Util/HTTPRequest.php on line 224, referer: http://localhost/~xandry/В самом низу при этом виднеется надпись "No connection to an Aria2 instance established.".
Скриншот:
aria2c запущена в качестве демона посредством выполнения команды aria2c --conf-path=.aria2/aria2.conf
Содержимое ~/.aria2/aria2.conf:
Код: Выделить всё
daemon
check-certificate=false
dir=/home/xandry/web-downloader
enable-xml-rpc=true
file-allocation=prealloc
log=/home/xandry/web-downloader/aria2.log
log-level=warn
max-concurrent-downloads=1
check-integrity=true
disable-ipv6=true
#xml-rpc-passwd=test
#xml-rpc-user=testПорт прослушивается:
Код: Выделить всё
> netstat -tulpn|grep 6800
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:6800 0.0.0.0:* LISTEN 9628/aria2cСам в php ничего не понимаю, поэтому надеюсь на помощь.