debian wheezy上的Rapache不适用于R 3.1.2

时间:2015-12-15 05:23:36

标签: php r debian rapache

我试图在debian上安装rapache已经很久了。我确实遵循了这个教程:http://blog.binfalse.de/2011/05/28/r-for-the-web/并且我使用旧的R(1.2.5)并且我确实以完全相同的方式重复安装,但使用R(3.1.2)并且我有“内部服务器”错误“当我键入”localhost / R / myfile.R“时。但是,当我键入“localhost / RApacheInfo”时,它可以正常工作!!这是我的文件“r.conf”

func play (index: Int) {
    if !player.isEmpty && index >= 0 && index < player.count {
        player[index].play()
    }
    if index == 4{
        let randomNumber =  Int(arc4random_uniform (4) + 0)
        player[randomNumber].play()
    }

这是我的error.log apache文件。我只接受它的结尾,因为它太长了:

<Location /RApacheInfo>
SetHandler r-info
</Location>
<Location /R>
SetHandler r-script
RHandler sys.source
</Location>

当我尝试输入一些php / html代码时,只要不在localhost / R中,它就能正常工作。我放在这里的每个代码都给我这个“内部服务器错误”。我已经尝试过从0开始安装两次,结果相同。希望你能帮助我:)。

1 个答案:

答案 0 :(得分:0)

我终于找到了如何让它发挥作用!! 你可以在这篇文章中找到它: https://groups.google.com/forum/#!topic/rapache/axLb5PsS9LY 很高兴 :) 解决