0

I am installing OpenCPU on a production RedHat 7 Server and it turned out that the path to their Apache server is not

/etc/httpd 

but something else. Apparently, OpenCPU was still referring to /etc/httpd and therefore did not work. I am wondering if there is a way to specify custom path to Apache server for OpenCPU installation (as a parameter for installation, or somewhere in the code, or after installation)?

OpenCPU version is 2.0.7, RedHat version is 7.3, Apache server version is 2.4

1 Answers1

0

Where is your Apache2 located then? Did you compile it from source?

OpenCPU depends on httpd via rapache (which has mod_R). The rApache manual has some docs about how to compile rapache from source against a custom version of R or Apache.

Once this works you can try to build OpenCPU. The default opencpu-server rpm spec is copies opencpu.conf into /etc/httpd because that is the path of the httpd package in Fedora or Enterprise Linux. I guess you could modify that if you run a non-standard version of httpd.

Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
  • The apache server is installed by the admins, I don't really know what they did, they just gave me the path and they refuse to move it. Thanks for the info, I will look into rApache manual and try reinstalling it. And in the OpenCPU spec file, do I understand correctly that I should only change paths in lines 77, 86, and 131? – Cinnamon_rekki May 04 '18 at 16:50
  • You can also try to install the rpm package as-is and manually copy `opencpu.conf` file to your local apache directory. – Jeroen Ooms May 04 '18 at 19:50