Installing openCPU with exotic path to Apache - apache

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

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.

Related

How to get mod_jk.so/mod_jk.dll file for windows?

I am configuring httpd in windows server for load balancing. One of the step in configuration is to download tomcat connector for windows and put mod_jk.so file into modules folder.
I downloaded latest connector of windows from https://tomcat.apache.org/download-connectors.cgi
But after extracting, I could not find this file. I found some steps to build it on some sites, but those steps are of linux environments.
How to get mod_jk.so for windows environment ?
If you want mod_jk for Windows/httpd, then you should get it from the same place you got your binary distribution of httpd.
You probably got it from ApacheLounge, which BTW is not directly-affiliated with the Apache Software Foundation, but has been providing Windows binaries for quite some time and seems to be reputable. YMMV.

How to install mod_wsgi from lfd in 2015

How can I install mod_wsgi from lfd website as it has wheel extension.Whenever I am searching how to install mod_wsgi on wamp the resources tell me to install binary from this site and then keep the mod_wsgi.so file in my wamp directory.
On the lfd page is a link to:
https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst
You may want to read that.
The official mod_wsgi download area has binaries as .so files as explained in that link.
You can still use the whl versions when you work out how to install them, but the .so option does still exist.
The WHL files from LFD (http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi) DO contain the pre-built WSGI module, but for obscure reasons it is called mod_wsgi.pyd. You can find it in c:/python27/lib/site-packages/mod_wsgi/server/ (or whatever your Python installation or virtual environment path is).
Just rename it to mod_wsgi.so and copy it to the modules directory if Apache.
To get some initial help with setting up the Apache configuration, you may run
c:/python27/Scripts\mod_wsgi-express.exe module-config
More information about mod_wsgi on Windows and compatibility can be found here: https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst

Why does apache2.2 keeps installing instead of apache2.4?

I've been trying to set Vagrant up for local development on my machine. I see from Apache's official website that 2.4.7 is the current stable version. And I had no issues installing it on my VPS. But with Vagrant it's a different story. I'm trying with both Base64 and Base32 boxes. This is the command i'm running:
sudo apt-get install -y apache2
It should install apache 2.4.x. But it doesn't. Sometimes it installs version 2.2, sometimes 2.4. This is driving me nuts, since the whole idea of using Vagrant is to have the same Virtual machine replicated everywhere. Any ideas?
Because the Debian based distro (possibly Ubuntu) you're using is still using 2.2.x. Switching to 2.4.x from 2.2.x means all the 3rd party modules they ship have to be upgraded (or at least rebuilt) so they probably haven't made the switch yet.

how to run openlaszlo 4.9.0 in ubuntu12.04?

I am Using Ubuntu 12.04 and i want to run OpenLaszlo 4.9.0 in my system. I have read many tutorial, e.g.
http://wiki.openlaszlo.org/Installing_OpenLaszlo#Installing_the_DevKit_on_Unix.2FLinux
that say that put server in JAVA_HOME but i do not know where is JAVA_HOME in Ubuntu 12.04.
I have OpenLaszlo also . But I do not know how to start server of OpenLaszlo and where to put it? or how many things required for it? please tell me. I have Red5 server,i have install java-7-openjdk.
Thanks in advance.
JAVA_HOME is an environment variable. It stores the path to java runtime environment (jre). You can have several JVMs installed on your system, of course. So JAVA_HOME defines the default one.
Setting this variable after installing Ubuntu package from the repository is a little tricky. It is discussed, for example, here:
Jenkins, specifying JAVA_HOME,
What is the correct target for the JAVA_HOME envrionment variable for a Linux OpenJDK Debian-based distribution?
OpenLaszlo is a Web-application that should be run under some application server (usually Apache TomCat or its derivatives such as IBM WebSphere Application Server Community Edition).
It is available on the off.site as a bundle that includes TomCat and also as a .war file (a servlet) that should be deployed under your application server.
In the 1st case you can extract an archive wherever you want (read carefully about file permissions). But at the moment the server starts it needs Java system files so JAVA_HOME should be already defined.

How to upgrade Apache on a Windows server?

I have just upgraded our webserver from PHP 5.3.6 to 5.3.10, and I now want to upgrade Apache as well from 2.2.17 to 2.2.22 (on a Windows Server). How do I go about this in a good way (on a live webserver)? A little downtime is alright, but not too much.
Apache is installed via an MSI installer and I'm not sure how to upgrade safely with the least downtime.
Do I just download the latest installer and install that? And what about my config files? I don't think it's possible to have both instances installed 'next to each other'? Or is it?
For anyone else who searches for this, I found that uninstalling the old Apache (in my case, 2.2.22) from Add/Remove Programs and installing the new version (in my case, 2.2.24) kept all the previous settings.
We had locked down the httpd.conf file and had an application that modified/added files in the "htdocs" directory.
Upon uninstalling and re-installing, all of these files were left unchanged and the new version of Apache Server is reflected.
Download a latest version of apache installer.
Make the necessary config changes.
Run it on a different port, other than your live server.
If things work well, correct the port number, and replace.
It will really take a little down-time.
I did it today on windows server 2012R2, apache was installed from "source" (installer was not used-updated to 2.4.55):
1.Stop apache service
2.Rename apache directory (from C:\Apache24 to C:\Apache24-old)
3.Extract Apache24 folder from zip archive downloaded from apache web site to original location (C:\)
4.Copy conf folder from previous installation to the extracted folder (Copy C:\Apache24-old\conf to C:\Apache24\conf-overwrite)
5.(Optional), if you have any certs copy it from C:\Apache24-old\ to C:\Apache24
6.Start apache service,no issues faced