...
- Install a JDK. You can install openjdk with Yum (yum install java-1.6.0-openjdk) or get the JDK from Oracle.
Install the Yum repository of the WOCommunity like this:
Code Block language bash sudo curl -o /etc/yum.repos.d/wocommunity.repo https://raw.githubusercontent.com/wocommunity/wonder/master/Utilities/Linux/wocommunity.repo
Once it's done, you can use Yum to install wotaskd and JavaMonitor.
Code Block language bash sudo yum install wotaskd; sudo yum install womonitor;
To install the module for Apache httpd 2.2, run:
Code Block language bash sudo yum install woadaptor
for Apache httpd 2.4:
Code Block language bash sudo yum install woadaptor-httpd24
If SELinux is enabled on your system, wotaskd won't be reachable due to its preventing Apache from opening TCP connections. If you're comfortable with allowing Apache to connect to any TCP ports (including external hosts), you can run the following:
Code Block language bash sudo setsebool -P httpd_can_network_connect=1
Alternatively, Steven Klassen has written a blog post (Custom SELinux Port Access) that outlines how to create and install a wotaskd SELinux module that specifically allows connections to port 1085.
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ sudo yum install httpd httpd-devel $ #I had to use: sudo yum install httpd24 httpd24-devel $ # get the latest wonder source $ git clone https://github.com/wocommunity/wonder.git $ cd wonder/Utilities/Adaptors $ # thanks to alextu for these commands to fix the make.config file $ # (from his docker recipe) $ sed -ri 's/ADAPTOR_OS = MACOS/ADAPTOR_OS = LINUX/g' make.config $ sed -ri 's/ADAPTORS = CGI Apache2.2/ADAPTORS = Apache2.4/g' make.config $ make $ # move the compiled module to the modules directory (check your apache config If you get error about make not found, install dev tools $ sudo yum install gcc make $ # If you get error about redhat-hardened-cc1: No such file or directory $ sudo yum install redhat-rpm-config # # $ # but the default on CentOS7 is /usr/lib64/httpd/modules $ sudo cp Apache2.4/mod_WebObjects.so /usr/lib64/httpd/modules/ |
...
Panel | ||
---|---|---|
| ||
getting help on the command line: checking the state of the firewall: panic: stop panic: set a service to a zone for runtime (not persistent) : set a service to a zone permanently: setup specific ports (like for WO instances) reload the configuration: find out what services the zone thinks should be handled at runtime (or permanently) : go nuts and specify rules to within an inch of their lives: |
...
SELinux
As is mentioned in https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat,+CentOS+or+Amazon+Linux,
you can open up apache to network connections using the command:
...