If you're on a Fedora 16/17 system that uses systemd to start Apache - this is your solution.
TL;DR version: edit /lib/systemd/system/httpd.service and change the value PrivateTmp to 'no'.
This is an informational post, in which I ran into a problem that I couldn't find ANYWHERE on here or google. I was running into the "Can't access id" problem many others were having, but mine is unique. Below are the symptoms and some of the areas I checked:
RTORRENT:
[22.03.2012 02:17:12] rTorrent user can't access 'id' program. Some functionality will be unavailable.
APACHE:
[Thu Mar 22 01:42:02 2012] [error] [client 192.168.1.1] PHP Warning: file(/tmp/rutorrent-stats-2105090364f6ae5dacf917): failed to open stream: No such file or directory in /var/www/vhosts/rutorrent/php/settings.php on line 187, referer: http://flux.example.com/
ID: (rtorrent user)
-bash-4.2$ which id
/bin/id
-bash-4.2$ id -G
100
-bash-4.2$ id -u
1002
CONFIG.PHP:
"id" => '/bin/id',
TEMP DIR:
drwxrwxrwt. 26 root root 4096 Mar 22 02:01 /tmp
-rw-rw-r-- 1 share users 21 Mar 22 20:12 rutorrent-stats-10914218994f6bea36d00fc
-bash-4.2$ cat /tmp/rutorrent-stats-10914218994f6bea36d00fc
1002
100
/home/share
Apache is where I checked next, as it looked like Apache wasn't able to access the /tmp directory. So I ran 'systemctl show httpd.service' & I noticed a line that read : PrivateTmp=yes. It seems this is the default install value for Fedora 17, not sure about 16.
I edited /lib/systemd/system/httpd.service and changed the value to PrivateTmp=no. It seems to have fixed the problem. Hope this helps.
Logan
TL;DR version: edit /lib/systemd/system/httpd.service and change the value PrivateTmp to 'no'.
This is an informational post, in which I ran into a problem that I couldn't find ANYWHERE on here or google. I was running into the "Can't access id" problem many others were having, but mine is unique. Below are the symptoms and some of the areas I checked:
RTORRENT:
[22.03.2012 02:17:12] rTorrent user can't access 'id' program. Some functionality will be unavailable.
APACHE:
[Thu Mar 22 01:42:02 2012] [error] [client 192.168.1.1] PHP Warning: file(/tmp/rutorrent-stats-2105090364f6ae5dacf917): failed to open stream: No such file or directory in /var/www/vhosts/rutorrent/php/settings.php on line 187, referer: http://flux.example.com/
ID: (rtorrent user)
-bash-4.2$ which id
/bin/id
-bash-4.2$ id -G
100
-bash-4.2$ id -u
1002
CONFIG.PHP:
"id" => '/bin/id',
TEMP DIR:
drwxrwxrwt. 26 root root 4096 Mar 22 02:01 /tmp
-rw-rw-r-- 1 share users 21 Mar 22 20:12 rutorrent-stats-10914218994f6bea36d00fc
-bash-4.2$ cat /tmp/rutorrent-stats-10914218994f6bea36d00fc
1002
100
/home/share
Apache is where I checked next, as it looked like Apache wasn't able to access the /tmp directory. So I ran 'systemctl show httpd.service' & I noticed a line that read : PrivateTmp=yes. It seems this is the default install value for Fedora 17, not sure about 16.
I edited /lib/systemd/system/httpd.service and changed the value to PrivateTmp=no. It seems to have fixed the problem. Hope this helps.
Logan