#!/bin/bash

ROOT=/opt/rh/httpd24/root/usr
SYSTEM_APR=

export APU_CONFIG="${SYSTEM_APR}/bin/apu-1-config"
export HTTPD="${ROOT}/sbin/httpd"
export APXS2="${ROOT}/bin/apxs"
export PATH="$PATH:${ROOT}/bin:${ROOT}/sbin:${ROOT}/lib64/httpd/build/"
export LD_LIBRARY_PATH="${ROOT}/lib64"

/opt/alt/ruby21/bin/ruby bin/passenger-install-apache2-module --apxs2-path="${ROOT}/bin/apxs" \
                                                --apr-config-path="${SYSTEM_APR}/bin/apr-1-config" \
                                                --languages='python,ruby,nodejs' \
                                                --auto
