Oracle HTTP Server Fails to Start When mod_security is Enabled on RHEL or Oracle Linux 7

If mod_security is configured in Oracle HTTP Server in Red Hat Enterprise Linux (RHEL) or Oracle Linux (OL) 7, Oracle HTTP Server fails to start. This error condition occurs because there is no symbolic link /lib64/liblzma.so.0

The generated error looks like the following:

iblzma.so.0: cannot open shared object file: No such file or directory
Solution
  1. Log in as a root user.

  2. To create a symbolic link, /lib64/liblzma.so.0, run the following command:

    cd /lib64 
    ln -s liblzma.so.5.0.99 liblzma.so.0 
  3. Verify the symlink as follows:
    ls -al *liblzma*
  4. Exit root.

  5. Start Oracle HTTP Server.

    For example, startComponent.sh ohs1, where ohs1 is the Oracle HTTP Server instance you want to start.