The Rserve 1.7.0 post has an explanation of the port setup. So at the top of rserve.conf I added this line: http.port 8888 Then I used the start script (as root user) to run it.
This got me halfway, as http://127.0.0.1:8888/ works now, but gives me a page that says:
Error in try(.http.request("/", NULL, NULL, c(48, 6f, 73, 74, 3a, 20, : could not find function ".http.request"
The second half of the solution is to add this to the beginning of /var/FastRWeb/code/rserve.R:
library(FastRWeb) .http.request <- FastRWeb:::.http.request
Then run everything by running /var/FastRWeb/code/start . There is no default handler, so you can check it with http://127.0.0.1:8888/info . Or a more interesting example is http://127.0.0.1:8888/example1.png (for viewing a chart) or http://127.0.0.1:8888/example2 (for viewing a combination of html and a chart).
Note. I did not delete or edit any other configuration to make this work. This means that we also have listening to unix sockets. If this is not required, delete these two lines from the Rserve.conf file.
If you want it to listen on all IP addresses, not just localhost, add remote enable to your Rserve.conf file. NOTE. . Before you open a server in the world, make sure that you understand the security implications.
So, after these two changes, my /var/FastRWeb/code/Rserve.conf file looks like this:
http.port 8888 remote enable source /var/FastRWeb/code/rserve.R control enable