"can't access external program (php)" errors for one user in multi-user setup

randac56

Member
May 25, 2018
915
0
16
I've configured rutorrent for multi-user mode using web authentication and am having an odd problem where for one user alone I'm getting errors like "can't access external program" and "can't access php interpreter". Other users in the same multi-user setup are not getting this error message.

Error log:
Code:
[14.10.2012 11:59:01] WebUI started.
[14.10.2012 11:59:02] history: Plugin will not work. rTorrent user can't access external program (php).
[14.10.2012 11:59:02] autotools: Plugin will not work. rTorrent user can't access external program (php).
[14.10.2012 11:59:02] trafic: Plugin will not work. rTorrent user can't access external program (php).
[14.10.2012 11:59:03] DataDir plugin: rTorrent user can't access php interpreter. Plugin will not work.
Permissions for the rutorrent install are as follows:

Code:
$ ls -l /var/www/rutorrent/
total 56
drwxr-xr-x 4 root root 4096 Sep 16 00:55 conf
drwxr-xr-x 3 root root 4096 Sep 16 00:55 css
-rw-r--r-- 1 root root 5430 Sep 16 00:55 favicon.ico
drwxr-xr-x 3 root root 4096 Sep 16 00:55 images
-rw-r--r-- 1 root root 12717 Sep 16 00:55 index.html
drwxr-xr-x 3 root root 4096 Sep 16 00:55 js
drwxr-xr-x 3 root root 4096 Sep 16 00:55 lang
drwxr-xr-x 3 root root 4096 Sep 16 00:55 php
drwxr-xr-x 15 root root 4096 Sep 16 02:53 plugins
drwxrwxr-x 6 www-data rtorrent 4096 Oct 13 20:11 share

Permissions within the share directory for the user having the error:

Code:
$ ls -l /var/www/rutorrent/share/users/antrix/
total 8
drwxrwx--- 4 www-data rtorrent 4096 Oct 13 20:46 settings
drwxrwx--- 2 www-data rtorrent 4096 Oct 13 20:33 torrents

Groups that the rTorrent user belongs to:

Code:
$ id antrix
uid=1002(antrix) gid=1003(rtorrent) groups=1003(rtorrent),1002(antrix)

Check if php5-cli is installed:

Code:
$ aptitude show php5-cli
Package: php5-cli
State: installed
Automatically installed: yes
Version: 5.3.3-7+squeeze14

Check if rtorrent user can execute php:

Code:
~$ whoami
antrix
Code:
~$ which php
/usr/bin/php
Code:
~$ php -v
PHP 5.3.3-7+squeeze14 with Suhosin-Patch (cli) (built: Aug 6 2012 14:18:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

Version info:
1. rutorrent v3.4 (r2014)
2. rtorrent 0.9.2/libtorrent 0.13.2
3. OS is Debian 6 "Squeeze".

Please help!
 

peshua19

Member
May 25, 2018
897
0
16
Have you got the path to PHP set in the /conf/users/username/config.php file?

Something like
Code:
"php" => '/usr/bin/php',