I\'m relatively new to R and very new to the Linux (Ubuntu) command line. I\'m trying to write a page in PHP that contains a command I would like to execute in R and then pa
Whatever user apache is running as may not have the same environment variables, or permissions as when you ran it from the shell by hand. Find out what user apache runs as, and make sure it has the right permissions and environment variables.