Closed dausruddin closed 9 years ago
This is a apache config error. Do a check to enabled website, under /etc/apache2/sites-enabled/
and look for rutorrent.conf
and/or 000-default.conf
file. A reboot of apache service is needed after changing the configurations.
For more info look here http://askubuntu.com/a/458645 and here http://stackoverflow.com/a/19357641
I already did anything that I know. I check owner of /var/www/rutorrent, it is www-data.
Then I edit rutorrent.conf to enable php.
Yep, I even restarted apache several times already. Still got 403 forbidden error in rutorrent log. I wonder why it cant read rutorrent/php/getsettings.php
, it is already chowned to www-data.
Do a ls -hall
at the rutorrent folder. This can help.
I used ls -lah
before, to see the user and permission. I guess it just the same as ls -hall
right?
Btw, I suspect the permission is the problem.
Currently files and folder are chmodded to -rwxrwxr-x (775)
I chmodded 755 to folder and 644 to files, but still got Forbidden error
Im out of idea. If anyone know what permission I need to set, tell me and let me try.
Try to change permission of rutorrent folder to root or another user with root privileges.
Problem solved!!!! I was thinking it is all about chmod and chown, I wasnt thinking about permission in apache config. Below is my rutorrent.conf
which solved my problem.
<VirtualHost *:80>
ServerName sub.example.com
ServerAlias www.sub.example.com
DocumentRoot /var/www/rutorrent
CustomLog /var/log/apache2/rutorrent.log vhost_combined
ErrorLog /var/log/apache2/rutorrent_error.log
SCGIMount /rutorrent/RPC2 127.0.0.1:5000
<Directory "/var/www/rutorrent">
AuthName "Tits or GTFO"
AuthType Basic
Require valid-user
AuthUserFile /var/www/rutorrent/.htpasswd
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
</Directory>
</VirtualHost>
Regarding this question answered => https://github.com/Kerwood/rtorrent.auto.install/issues/121
I installed rutorrent on my Ubuntu 14.04 with virtualmin installed. Now I have 2 issues so far. First, php doesnt work on
/var/www/rutorrent
. So I modified rutorrent.conf to enable php. Then now I got a new problem./var/www/rutorrent
already chowned recursively to www-data. I dont know what is the problem.This is error apache2 error log