Problem with Scgi Error

shwetha17

Member
May 24, 2018
785
0
16
I'm getting the scgi error alot in my rutorrent. I used Brocks installation file and it installed nicely. Here is my configs (where do I find my lighttpd configuration files by the way?)

rtorrent.rc
Code:
execute = {sh,-c,rm -f /home/test/rtorrent/session/rpc.socket}
scgi_local = /home/test/rtorrent/session/rpc.socket
execute = {sh,-c,chmod 0666 /home/test/rtorrent/session/rpc.socket}
encoding_list = UTF-8
system.umask.set = 022
port_range = 23877-23877
port_random = no
check_hash = no
directory = /home/test/downloads
session = /home/test/rtorrent/session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load_start=/home/test/rtorrent/watch/*.torrent"
#schedule = untied_directory,5,5,"stop_untied=/home/test/rtorrent/watch/*.torrent"
trackers.enable = 1
#min_peers = 40
#max_peers = 100
#min_peers_seed = 10
#max_peers_seed = 50
#max_uploads = 15
#download_rate = 0
#upload_rate = 0
use_udp_trackers = yes
dht = auto
dht_port = 6881
peer_exchange = yes
#hash_read_ahead = 10
#hash_interval = 100
#hash_max_tries = 10
execute = {sh,-c,/usr/bin/php /var/rutorrent/rutorrent/php/initplugins.php test &}

/rutorrent/rutorrent/conf/config.php
Code:
<?php
// configuration parameters

// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);

@define('RPC_TIME_OUT', 5, true); // in seconds

@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);

// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);

$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or leave blank to disable logging)

$saveUploadedTorrents = true; // Save uploaded torrents to profile/torrents directory or not
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents in profile/torrents directory or make unique name

$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;

$scgi_port = 5000;
$scgi_host = "127.0.0.1";

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";

$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!

$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => '', // Something like /usr/bin/curl. If empty, will be found in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH.
);

$localhosts = array( // list of local interfaces
"127.0.0.1",
"localhost",
);

$profilePath = '../share'; // Path to user profiles
$profileMask = 0777; // Mask for files and directory creation in user profiles.
// Both Webserver and rtorrent users must have read-write access to it.
// For example, if Webserver and rtorrent users are in the same group then the value may be 0770.

?>

Sometimes changing the scgi port in the config.php file from 5000 to localhost works sometimes for a bit but eventually the error comes back. So if someone can tell me how to find the lighttpd configuration files (if you need them to help me) let me know where to find them.

Any help would be great smiley.gif
 

shwetha17

Member
May 24, 2018
785
0
16
Anyone sad.gif?

Here is my lighttpd.conf

Code: [Select]
server.follow-symlink = "disable"
server.max-connections = 512
server.max-fds = 1024
server.max-keep-alive-idle = 15
dir-listing.activate = "disable"
server.pid-file = "/usr/local/lighttpd/logs/lighttpd.pid"
server.errorlog = "/usr/local/lighttpd/logs/error.log"
accesslog.filename = "/usr/local/lighttpd/logs/access.log"

server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"

server.username = "lighttpd"
server.groupname = "lighttpd"

server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
"mod_auth",
# "mod_status",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_secdownload",
"mod_fastcgi",
# "mod_proxy",
# "mod_cgi",
"mod_scgi",
# "mod_ssi",
# "mod_compress",
# "mod_usertrack",
# "mod_expire",
# "mod_rrdtool",
"mod_accesslog",
)

fastcgi.server = (
".php" => (
(
"socket" => "/etc/phpcgi/php-cgi.socket",
),
),
)

index-file.names = ( "index.php", "index.html", "index.htm" )
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" )
mimetype.assign = (
".html" => "text/html",
".htm" => "text/html",
".txt" => "text/plain",
".csv" => "text/plain",
".ini" => "text/plain",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".gif" => "image/gif",
".png" => "image/png",
".bmp" => "image/bmp",
".css" => "text/css",
".js" => "application/javascript",
".ico" => "image/x-icon",
".json" => "application/json",
".torrent" => "application/x-bittorrent",
".pdf" => "application/pdf",
".bz2" => "application/x-bzip2",
".gz" => "application/x-gzip",
".tar.gz" => "application/x-tgz",
".tar" => "application/x-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
".tbz" => "application/x-bzip-compressed-tar",
".tgz" => "application/x-tgz",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".flac" => "audio/x-flac",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "audio/ogg",
".wav" => "audio/x-wav",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mp4" => "video/mp4",
".wmv" => "video/x-ms-wmv",
".avi" => "video/x-msvideo",
)

server.document-root = "/var/rutorrent"
server.port = 80

$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/usr/local/lighttpd/rutorrent.pem"
}

url.access-deny = (".htaccess")
$HTTP["url"] =~ "^/rutorrent/(?:share|conf)" {
url.access-deny = ("")
}
$HTTP["url"] =~ "/\.svn" {
url.access-deny = ("")
}

auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/usr/local/lighttpd/rutorrent_passwd"
auth.require = (
"/RPC00001" => (
"method" => "basic",
"realm" => "My ruTorrent web site",
"require" => "user=test",
),
"/" => (
"method" => "basic",
"realm" => "My ruTorrent web site",
"require" => "valid-user",
),
)

scgi.server = (
# "/RPC00001" => (
# (
# "socket" => "/home/test/rtorrent/session/rpc.socket",
# "check-local" => "disable",
# "disable-time" => 0,
# ),
# ),
)
 

shwetha17

Member
May 24, 2018
785
0
16
When I go to install it I get
svn: 'httprpc' is already a working copy for a different URL
:-/