HEX
Server: Apache
System: Linux b87bae7b6fa1 6.14.0-1013-aws #13~24.04.1-Ubuntu SMP Tue Sep 2 23:08:25 UTC 2025 x86_64
User: daemon (1)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /opt/bitnami/scripts/apache/start.sh
#!/bin/bash
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

# shellcheck disable=SC1091

set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace # Uncomment this line for debugging purposes

# Load libraries
. /opt/bitnami/scripts/libapache.sh
. /opt/bitnami/scripts/libos.sh
. /opt/bitnami/scripts/liblog.sh

# Load Apache environment variables
. /opt/bitnami/scripts/apache-env.sh

error_code=0

if is_apache_not_running; then
    "${APACHE_BIN_DIR}/httpd" -f "$APACHE_CONF_FILE"
    if ! retry_while "is_apache_running"; then
        error "apache did not start"
        error_code=1
    else
        info "apache started"
    fi
else
    info "apache is already running"
fi

exit "$error_code"