Hi,
I've leased a dedicated server for seedboxing and all this stuff is new for me. When pointing a browser to https://serverip:61359/rutorrent I get this error:
Code:
Bad response from server: (404 [error,list]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>404 - Not Found</title> </head> <body> <h1>404 - Not Found</h1> </body> </html>This is what I've done so far:
1. Installed packages:
Code:
libsigc++20, libtorrent, rtorrent, subversion (+dependencies), lighttpd, lighttpd-fastcgi, php, php-gd, php-mysql, rutorrent from svn I probably don't need php-mysql, right?
2. ~/.rtorrent.rc:
Code:
download_rate = 12500
upload_rate = 12500
directory = /home/david/torrents/
session = /home/david/.session/
schedule = low_diskspace,5,60,close_low_diskspace=100M
ip = serverip
port_range = 55365-55365
encryption = allow_incoming,try_outgoing,enable_retry
dht = disable
peer_exchange = no
system.file_allocate.set = yes
execute_nothrow=rm,/tmp/php-fastcgi-1.socket
scgi_local = "/tmp/php-fastcgi-1.socket"
encoding_list = UTF-8
execute = {sh,-c,/usr/bin/php /srv/www/lighttpd/rutorrent/php/initplugins.php david &}3. /etc/lighttpd/lighttpd.conf:
Code:
server.port = 62543
server.username = "david"
server.groupname = "david"
$SERVER["socket"] == ":61359" {
ssl.engine = "enable"
ssl.pemfile = "/home/david/cacert.pem"
}4. /etc/lighttpd/modules.conf
Uncommented include "conf.d/fastcgi.conf"
5. /etc/lighttpd/conf.d/fastcgi.conf:
Code:
fastcgi.server = ( ".php" =>
( "php-local" =>
(
"socket" => "/tmp/php-fastcgi-1.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 1,
"broken-scriptfilename" => "enable",
)
),
( "php-tcp" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable",
"broken-scriptfilename" => "enable",
)
),
( "php-num-procs" =>
(
"socket" => "/tmp/php-fastcgi-2.socket",
"bin-path" => "/usr/bin/php-cgi",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000",
),
"max-procs" => 5,
"broken-scriptfilename" => "enable",
)
),
)6. /etc/php.ini
memory_limit = -1
doc_root = "/srv/www/lighttpd/"
user_dir = "/srv/www/lighttpd/"
open_basedir line removed
/etc/php.d/lighttpd.ini
cgi.fix_pathinfo = 1 was already uncommented
8. echo '<?php phpinfo(); ?>' >> /srv/www/lighttpd/index.php
echo 'TestMe!' >> /srv/www/lighttpd/index.html
chown -R david:david /var/log/lighttpd/
chmod -R 755 /var/log/lighttpd/
9. /srv/www/lighttpd/rutorrent/conf.d/config.php:
Code: [Select]
$scgi_port = 0;
$scgi_host = "unix:///tmp/php-fastcgi-1.socket";
$XMLRPCMountPoint = "/srv/www/lighttpd/rutorrent/RPC2";
10. chown -R david:david /srv/
chmod -R 755 /srv/
From rutorrent directory:
find share/ -type d -exec chmod 777 {} \;
find share/ -type f -exec chmod 666 {} \;
I can successfully open the .php and .html test files in my browser. No plugins for rutorrent currently installed.
System: CentOS 6.3 x64
lighttpd 1.4.28
php 5.3.3
libtorrent 0.12.9
rtorrent 0.8.9
rutorrent (latest revision from svn) 2096
Thank you for your time.
I've leased a dedicated server for seedboxing and all this stuff is new for me. When pointing a browser to https://serverip:61359/rutorrent I get this error:
Code:
Bad response from server: (404 [error,list]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>404 - Not Found</title> </head> <body> <h1>404 - Not Found</h1> </body> </html>This is what I've done so far:
1. Installed packages:
Code:
libsigc++20, libtorrent, rtorrent, subversion (+dependencies), lighttpd, lighttpd-fastcgi, php, php-gd, php-mysql, rutorrent from svn I probably don't need php-mysql, right?
2. ~/.rtorrent.rc:
Code:
download_rate = 12500
upload_rate = 12500
directory = /home/david/torrents/
session = /home/david/.session/
schedule = low_diskspace,5,60,close_low_diskspace=100M
ip = serverip
port_range = 55365-55365
encryption = allow_incoming,try_outgoing,enable_retry
dht = disable
peer_exchange = no
system.file_allocate.set = yes
execute_nothrow=rm,/tmp/php-fastcgi-1.socket
scgi_local = "/tmp/php-fastcgi-1.socket"
encoding_list = UTF-8
execute = {sh,-c,/usr/bin/php /srv/www/lighttpd/rutorrent/php/initplugins.php david &}3. /etc/lighttpd/lighttpd.conf:
Code:
server.port = 62543
server.username = "david"
server.groupname = "david"
$SERVER["socket"] == ":61359" {
ssl.engine = "enable"
ssl.pemfile = "/home/david/cacert.pem"
}4. /etc/lighttpd/modules.conf
Uncommented include "conf.d/fastcgi.conf"
5. /etc/lighttpd/conf.d/fastcgi.conf:
Code:
fastcgi.server = ( ".php" =>
( "php-local" =>
(
"socket" => "/tmp/php-fastcgi-1.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 1,
"broken-scriptfilename" => "enable",
)
),
( "php-tcp" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable",
"broken-scriptfilename" => "enable",
)
),
( "php-num-procs" =>
(
"socket" => "/tmp/php-fastcgi-2.socket",
"bin-path" => "/usr/bin/php-cgi",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000",
),
"max-procs" => 5,
"broken-scriptfilename" => "enable",
)
),
)6. /etc/php.ini
memory_limit = -1
doc_root = "/srv/www/lighttpd/"
user_dir = "/srv/www/lighttpd/"
open_basedir line removed
/etc/php.d/lighttpd.ini
cgi.fix_pathinfo = 1 was already uncommented
8. echo '<?php phpinfo(); ?>' >> /srv/www/lighttpd/index.php
echo 'TestMe!' >> /srv/www/lighttpd/index.html
chown -R david:david /var/log/lighttpd/
chmod -R 755 /var/log/lighttpd/
9. /srv/www/lighttpd/rutorrent/conf.d/config.php:
Code: [Select]
$scgi_port = 0;
$scgi_host = "unix:///tmp/php-fastcgi-1.socket";
$XMLRPCMountPoint = "/srv/www/lighttpd/rutorrent/RPC2";
10. chown -R david:david /srv/
chmod -R 755 /srv/
From rutorrent directory:
find share/ -type d -exec chmod 777 {} \;
find share/ -type f -exec chmod 666 {} \;
I can successfully open the .php and .html test files in my browser. No plugins for rutorrent currently installed.
System: CentOS 6.3 x64
lighttpd 1.4.28
php 5.3.3
libtorrent 0.12.9
rtorrent 0.8.9
rutorrent (latest revision from svn) 2096
Thank you for your time.