Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using ubuntu 13.10 with Apache2 , PHP5 and MySQL I'm trying to add rApache module in Apache to work as a server R.

I configured my rapache exactly how this turorial shows .


One file is created /etc/apache2/mods-available/r.conf

In this file , and put

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

<Location /RApacheInfo>
  SetHandler r-info

I add another "location"

<Location /brew>
  SetHandler r-script
  RHandler brew::brew

in /brew directory I created a file called plot.R with the code :


args <- 'brew work'


localhost/brew/plot.R if I try to access the page is loading endlessly and program files /var/log/apache2/error.log displays the error :

 Error in library(brew) : there is no package called 'brew'
  From directive RHandler on line 3 of /etc/apache2/mods-enabled/r.conf.

I 've tried to install R in the brew package


but my error keeps appearing and I can not run the script plot.R

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.