Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install a JDK. You can install openjdk with Yum (yum install java-1.6.0-openjdk) or get the JDK from Oracle.
  2. Install the Yum repository of the WOCommunity like this:

    Code Block
    languagebash
    sudo curl -o /etc/yum.repos.d/wocommunity.repo https://raw.githubgithubusercontent.com/wocommunity/wonder/master/Utilities/Linux/wocommunity.repo


  3. Once it's done, you can use Yum to install wotaskd and JavaMonitor.

    Code Block
    languagebash
    sudo yum install wotaskd; sudo yum install womonitor;


  4. To install the module for Apache httpd 2.2, run:

    Code Block
    languagebash
    sudo yum install woadaptor

    for Apache httpd 2.4:

    Code Block
    languagebash
    sudo yum install woadaptor-httpd24


  5. 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
    languagebash
    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
languagebash
titleCompiling Apache 2.4 WebObjects Adaptor
$ sudo yum install httpd httpd https-dev-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
titleFirewallD Cheat Sheet

getting help on the command line: # firewall-cmd --help

checking the state of the firewall: # firewall-cmd --state

panic: firewall-cmd --panic-on

stop panic: # firewall-cmd --panic-off

set a service to a zone for runtime (not persistent) : firewall-cmd --zone=public --add-service=https

set a service to a zone permanently: firewall-cmd --permanent --zone=public --add-service=https

setup specific ports (like for WO instances) firewall-cmd --zone=public --permanent --add-port=2000-2020/tcp

reload the configuration: firewall-cmd --reload

find out what services the zone thinks should be handled at runtime (or permanently) : # firewall-cmd (–permanent) --zone=public --list-services

go nuts and specify rules to within an inch of their lives: # firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" source address="192.168.0.4/24" service name="http" accept"

...


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:

...