Skip to content
Prev 281145 / 398513 Next

HELP!! - PHP calling R to execute a r-code file (*.r)

----------------------------------------
I've run into lots of problems like this. Generally first check the php error log file, I have noidea where it is on your machine, and see if you can get your script to dump output somewhere,possibly with absolute path so you know where to look for it LOL. Often the change in user?creates unexpected problems with file permissions and libraries and paths. You need to checkthe specific direcories for permissions not just top level.?
I would also point out that there is Rapache available as well as Rserver.?Curious if people are using R with any other unique situations server side. We?have a java webserver which I use to invoke R via bash scripts and generate rathercomplicated files. These could take very long to generate but if you have flexible caching system,it can be easy to re use output files or even generate them ahead of time. Starting "R" or any otherprocess is not instantaneous and often image generation is quite time consuming. Thereare a lot of issues making it work well in a server setting in real time. Scale up?has also been an issue. Apache threading or process model is quite expensive if you careabout performance. We were able to use "netty" front end and so far that has worked very well.PHP AFAIK is not thread safe however.?
[[elided Hotmail spam]]