ruTorrent serves share/ and its tracker credentials from the document root unless you move $profilePath
Yet another web front-end for rTorrent
At a glance
- What is it?
- ruTorrent is a PHP and JavaScript web front-end for the rTorrent client, installed by unpacking files under a web server. This article covers the exposed profile directory, the bundled environment checker, the two RPC timeouts, reverse proxy feed links and the contribution rules.
- Who is it for?
- Run ruTorrent if you already operate rTorrent on a server and want a plugin-based web UI that installs by copying files. Do not run it with its defaults on a public host: move $profilePath outside the document root first and give nginx the rules from nginx-example.conf.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 2 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- Novik/ruTorrent2,198 ★ · +13
| Repository | 2026-10-08 | 2026-11-25 |
|---|---|---|
| Novik/ruTorrent | 2.2k | 2.2k |
13 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The share/ directory holds tracker credentials and sits under the document root by default
ruTorrent has no installer. The sources are cloned or unpacked into a directory, and that directory becomes the document root of the web server you choose. That simplicity carries the project's main hazard.
share/ holds the profile data: settings, stored torrents, and the tracker credentials that the loginmgr plugin keeps. By default it sits under the document root, so a web server that serves everything serves it too. conf/ and tests/ belong in the same group and must also stay out of what the server delivers.
The strongest fix is to move the data. Point $profilePath in conf/config.php at a directory outside the document root, such as /var/lib/rutorrent. The README calls this the one measure that does not depend on anything else being right, which is a fair summary: every other defence relies on a web server rule being correct.
The fallback is server rules. Apache denies the three directories through the .htaccess file already placed in each of them. nginx and lighttpd do not read .htaccess, so they need the rules in nginx-example.conf, written for the prefix the install is served under and placed before the .php handler. The consequence of getting this wrong is not a broken page. It is a readable directory of credentials, and nothing on screen warns you.
Where the web UI stops and rTorrent begins
ruTorrent is a front-end for the Bittorrent client rtorrent. It does not download anything by itself. The server side is described as lightweight, so it can be installed on old and low-end servers and even on some SOHO routers. The page that you see in the browser is JavaScript in js/, with PHP in php/ and a rpc2.php endpoint that talks to rTorrent.
The supported rtorrent versions are narrow. The 0.9.8 baseline and the 0.16.x series are supported, and the README says other versions may or may not work. A distribution that ships something in between is your problem to test.
PHP 7.4 or newer is required, with the json and pcre extensions. The simplexml, curl, mbstring and zlib extensions are recommended, because some plugins and the XMLRPC proxy need them. The php, curl and gzip command-line programs are recommended as well.
The interface is extensible. Several plugins exist, anyone can write their own, and the plugins/ directory holds the bundled ones. The consequence is that part of what your instance does depends on which plugins you enable, and each one adds its own PHP requirements and its own exposure.
env_check.php answers whether the install is sound and exits 1 when it is not
A checker ships inside the project. Run it from the command line, from inside your ruTorrent directory:
php env_check.phpIt verifies the PHP version and extensions, and the external programs that plugins rely on. It looks for common mistakes in conf/config.php. It also connects to rtorrent to report and classify its version, and checks that ruTorrent's event handlers are registered with it.
The exit status is the part that matters for automation. It returns 0 when everything required passes and 1 otherwise, so a deployment script can stop on failure. For safety it only runs on the command line and refuses to run under a web server, which means you cannot open it in a browser to look at your setup.
The limit is that the checker validates the environment, not your exposure. The README does not say it checks whether share/ is reachable over HTTP, so confirm that separately with a request to the directory from outside. A passing run proves PHP and rtorrent are ready, not that the profile data is protected.
Two timeouts bound an RPC call and neither can be unlimited
ruTorrent talks to rTorrent over SCGI, and two settings bound that exchange. $rpcTimeOut bounds the connection to rTorrent, and a missing or unusable value means 30 seconds. $rpcTransferTimeOut bounds the complete request write and response read together.
Its default is null, and so is any value that is not a finite positive number. In that case the budget is the greater of the connection timeout and PHP's finite positive default_socket_timeout, or 60 seconds if that is not set. Byte-by-byte progress cannot extend the total, and a request that runs out of budget is logged along with the setting to raise. For a large response over a slow connection, set a finite positive value. The README's example is 180 for a transfer expected to take 80 seconds, and PHP and the web server need enough time as well.
Both timeouts are capped at 2147483 seconds, and there is no unlimited transfer setting. env_check.php reports unusable values.
The README also explains the older failure. The previous rpc2.php reader handled a delayed response inconsistently: on PHP 8 it could return HTTP 200 with an empty body, while PHP 7.4 could wait without a bound. A silent empty 200 is the kind of symptom that wastes an afternoon, so know that the timeout settings are the first place to look on a slow seedbox.
$rpcMaxResponseBytes caps replies at 100 MiB and spills past 1 MiB to a temp directory
$rpcMaxResponseBytes limits the declared response body. The default is 100 MiB, the largest response rTorrent itself sends. A smaller positive integer makes ruTorrent refuse larger responses. A larger value, or one that is unusable, still means 100 MiB, and env_check.php reports that as a configuration mistake.
A response above 1 MiB is not held in memory. It is collected in the configured $tempDirectory. When that is unset, the WebUI uses ruTorrent's own temporary-directory detection, and rpc2.php uses PHP's system temporary directory. A world-writable directory without the sticky bit is not used.
The practical cost lands on disk and permissions. A user with thousands of torrents can produce large listings, and each one lands in a temp directory that must exist, be writable by the PHP user and be safe. A cap you set below the size of your own listing would make the interface refuse to load, so do not lower it without checking how big your replies are.
The rules for the temporary directory continue in the README beyond the sticky bit sentence, so read that part before relying on this section for a locked-down host.
Behind a reverse proxy the feeds plugin needs an explicit public URL
When a reverse proxy changes the application host or path prefix, the feeds plugin cannot guess the right public address. Set the full public application URL in conf/config.local.php:
<?php
$publicURL = 'https://example.org/torrents/';A nonempty RU_PUBLIC_URL environment variable overrides this setting, while an empty or unset variable lets the local value apply. The URL must be absolute HTTP or HTTPS, without credentials, query or fragment.
Without an explicit setting, feed links use the request's host, scheme and actual script path. That works for a direct install and breaks for a proxy that rewrites the path. The README is explicit that X-Forwarded-Host does not select the prefix, so setting that header at the proxy does not fix feed links.
The symptom is concrete: channel, image and download links in generated feeds point to an address a feed reader cannot reach. If you serve ruTorrent under a prefix such as /torrents/ and only the interface works, check this setting first.
Pull requests go to master, and generated patches must be read and run by their author
Contribution rules are unusually direct. Pull requests target master. There is no develop branch, because it was retired, and a release is simply a tag on master. The latest releases, v5.3.20, v5.3.19 and v5.3.18, are dated 2026-10-30, 2026-10-24 and 2026-10-18, and the last push to the repository was on 2026-10-25.
The README permits AI tooling for writing a patch and forbids opening the output unread. Three duties apply to the author. Read the whole diff. A PR that reformats files it had no reason to touch, or contains changes you cannot explain in your own words, is closed rather than reviewed. Vouch for it by running it on a real ruTorrent instance you actually use, with your torrents and plugins, left long enough to see it behave. A container spun up to show the diff applies does not count as a test. And answer review comments personally, since replies that are generated and unread end the PR.
Keep the diff scoped. Whitespace churn, unrelated reformatting and rewritten vendored files make a patch unreviewable.
The repository states GPLv3 in its README and points to LICENSE.md, while GitHub's own metadata shows NOASSERTION, so read the file directly if licensing matters to you.
Editorial conclusion
Run ruTorrent if you already operate rTorrent on a server and want a plugin-based web UI that installs by copying files. Do not run it with its defaults on a public host: move $profilePath outside the document root first and give nginx the rules from nginx-example.conf. Then run php env_check.php, which exits 1 on any required failure.
Frequently asked questions
What is ruTorrent?
ruTorrent is a web front-end for the Bittorrent client rtorrent. Its server side is lightweight and extensible through plugins, and it is released under GPLv3.
How to install ruTorrent?
There is no installation routine or compilation. Clone or unpack the sources into a directory set up as the document root of your web server, then configure ruTorrent using the wiki articles.
Is ruTorrent safe to run on a public server?
Only after you keep share/, conf/ and tests/ out of what the web server serves. share/ holds settings, stored torrents and tracker credentials, so point $profilePath at a directory outside the document root.
What is the difference between rTorrent and ruTorrent?
rtorrent is the Bittorrent client. ruTorrent is a web front-end for it and does not replace it, and the supported rtorrent versions are 0.9.8 and the 0.16.x series.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/novik-rutorrent)Star history chart for your README
[](https://hysenlabs.com/projects/novik-rutorrent)Was this useful?