Installing on an Oracle HTTP Server
Manually install a PingAccess agent on a RHEL system with Apache 2.4 when using an Oracle HTTP Server.
Before you begin
-
Review the RHEL agent system requirements and make sure you’re using a supported combination of agent version and RHEL version.
-
Download an
agent.propertiesfile:-
In the PingAccess admin console, go to Applications > Agents.
-
Click the Pencil icon to edit a configured agent.
If you haven’t created an agent yet, learn more about how to do so in Adding agents.
-
In the Shared Secrets section, click the Download icon to download the configuration.
The configuration file will be named
<agentname>_agent.properties.
-
This procedure assumes that:
Details
-
You’ve installed and configured either Oracle HTTP Server 12c or 14c according to Oracle’s documentation.
-
You’ve downloaded and extracted the version-appropriate
.ziparchive for your environment. For example:-
pingaccess-agent-apache24-rhel8*.zip -
pingaccess-agent-apache24-rhel9*.zip -
pingaccess-agent-apache24-rhel10*.zip
-
-
$ORACLE_HOMEand$OHS_COMPONENT_NAMEare set in the file path. -
You’ve installed the Oracle HTTP Server at the appropriate location within
$ORACLE_HOME. If you haven’t, modify the file paths specified in this procedure based on where your Oracle HTTP Server installation and configuration files are located. -
You’ve installed
libcurland PCRE or verified that they’re installed. To install these packages, run either:Choose from:
-
dnf install libcurl pcrefor RHEL 8 and RHEL 9. -
dnf install libcurl pcre2for RHEL 10.
-
Steps
-
Go to the
pingaccess-agent-apache24-<RHEL_version>-<agent_version>/<arch>/directory.These are the only valid values for OHS 12c:
-
<RHEL_version>:
rhel8,rhel9, orrhel10. -
<agent_version>:
1.5.2if using RHEL 8,3.0.0if using RHEL 9, and3.1.0if using RHEL 10. -
<arch>:
x86_64for 64-bit.
These are the only valid values for OHS 14c:
-
<RHEL_version>:
rhel8,rhel9, orrhel10. -
<agent_version>:
3.0.0if using RHEL 8 or RHEL 9, and3.1.0if using RHEL 10. -
<arch>:
x86_64for 64-bit.
Example:
cd pingaccess-agent-apache24-rhel9-3.0.0/x86_64/ -
-
Extract the package RPMs using the following command:
mkdir pkgroot cp *.rpm pkgroot/ cd pkgroot for r in *.rpm; do rpm2cpio $r | cpio -idmv; done
-
Run the
cpcommand to copy the libraries to the appropriate OHS directories.Example:
cp -av usr/lib64/*.so* $ORACLE_HOME/ohs/modules
-
Copy
mod_paa.sointo the OHS modules directory:cp -av usr/lib64/httpd/modules/mod_paa.so $ORACLE_HOME/ohs/modules
-
Copy the
10-paa.conffile to the OHS component home directory:cp -av etc/httpd/conf.modules.d/10-paa.conf $ORACLE_HOME/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/$OHS_COMPONENT_NAME/
-
Create a
conf.ddirectory if it doesn’t already exist in the OHS component home directory:mkdir $ORACLE_HOME/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/$OHS_COMPONENT_NAME/conf.d
-
Copy the
<agentname>_agent.propertiesfile to the$ORACLE_HOME/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/$OHS_COMPONENT_NAME/conf.ddirectory.This is the configuration file that you downloaded in step 3 of the prerequisites section.
-
In the
10-paa.conffile:-
OHS sets its own
LD_LIBRARY_PATHat startup to include its ownlibdirectory which takes precedence over the system level libraries. Some system level libraries might need to be explicitly set, such aslibcurlwhen using an OHS 12c server on RHEL 10, orlibcryptowhen using an OHS 14c server on RHEL 9 or 10 only. Add theLoadFiledirective followed by the path to the library to the10-paa.conffile as the firstLoadFiledirective:Choose from:
-
For OHS 12c on RHEL 10 only:
LoadFile /lib64/libcurl.so.4
-
For OHS 14c on RHEL 9 or RHEL 10 only:
LoadFile /lib64/libcrypto.so.3
-
-
Add the following lines before the
LoadModuledirective when using RHEL 8 or RHEL 9 only:LoadFile $ORACLE_HOME/ohs/modules libpgm-5.2.so.0 LoadFile $ORACLE_HOME/ohs/modules libzmq.so.5
-
Add the following lines after the existing
LoadFiledirective but before theLoadModuledirective when using RHEL 10 only:LoadFile $ORACLE_HOME/ohs/modules/libpgm-5.2.so.0 LoadFile $ORACLE_HOME/ohs/modules/libunwind.so.8 LoadFile $ORACLE_HOME/ohs/modules/libsodium.so.26 LoadFile $ORACLE_HOME/ohs/modules/libzmq.so.5
-
Update the
LoadModuledirective to the correct path formod_paa.so:LoadModule paa_module $ORACLE_HOME/ohs/modules/mod_paa.so
-
Update the values for
PaaPropertyFilesandPaaCertificateDirto point to your OHSconf.ddirectory.
-
-
In the
$ORACLE_HOME/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/$OHS_COMPONENT_NAME/admin.conffile, disable the PingAccess agent in the virtual host configuration to prevent PingAccess from protecting the OHS admin host:<VirtualHost 127.0.0.1:9999> PaaEnabled off ...
-
In the OHS configuration file,
$ORACLE_HOME/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/$OHS_COMPONENT_NAME/httpd.conf, use the following directive to add the PingAccess agent for Apache’s module configuration to the Oracle HTTP Server:include "10-paa.conf"
-
Start the OHS service by running
$ORACLE_HOME/user_projects/domains/base_domain/bin/startComponent.sh <$OHS_COMPONENT_NAME>.