拿RPI做BT下載器(rtorrent+rutorrent)且有替RPI更新php-fpm的夥伴們
明明rtorrent是正常運作,但是rutorrent卻連不到
啟動測試頁面
http:// [RPI's IP] /info.php
可能會遇到下面文字問題
"The page you are looking for is temporarily unavailable. Please try again later. "
這並不是nginx出錯,而是php5-fpm內的權限發生錯誤
那該怎麼辦呢?
明明rtorrent是正常運作,但是rutorrent卻連不到
啟動測試頁面
http:// [RPI's IP] /info.php
可能會遇到下面文字問題
"The page you are looking for is temporarily unavailable. Please try again later. "
這並不是nginx出錯,而是php5-fpm內的權限發生錯誤
那該怎麼辦呢?
其因是nginx沒有權限導致不能正常利用FastCGI執行PHP
那就修改FastCGI的權限吧
首先查詢FastCGI路徑在哪
可以利用nginx目前架設的設定檔來找
打開終端機(putty之類的)
$cat /etc/nginx/sites-available/rutorrent
或其他設定檔
找到"fastcgi_pass unix:/var/run/php5-fpm.sock;"
那就可以得知FastCGI的位置了
增加寫入的權限
$sudo chmod o+w /var/run/php5-fpm.sock
如果不行,那就試試看
$sudo chmod 662 /var/run/php5-fpm.sock
再次打開測試頁面
http:// [RPI's IP] /info.php
看是否正常
那就修改FastCGI的權限吧
首先查詢FastCGI路徑在哪
可以利用nginx目前架設的設定檔來找
打開終端機(putty之類的)
$cat /etc/nginx/sites-available/rutorrent
或其他設定檔
找到"fastcgi_pass unix:/var/run/php5-fpm.sock;"
那就可以得知FastCGI的位置了
增加寫入的權限
$sudo chmod o+w /var/run/php5-fpm.sock
如果不行,那就試試看
$sudo chmod 662 /var/run/php5-fpm.sock
再次打開測試頁面
http:// [RPI's IP] /info.php
看是否正常