Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit b8d0f1f

Browse files
committed
ISSUE 69: Restructured to improve readability.
1 parent 4fdaac0 commit b8d0f1f

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

var/www/app-bin/php-wrapper

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,17 @@ PHP_VHOST_OPTIONS=${3}
1616
# Set path to php.ini
1717
export PHPRC=/etc
1818

19-
export PHP_FCGI_MAX_REQUESTS=15000
20-
21-
# PHP child process management (PHP_FCGI_CHILDREN) should always be disabled
22-
# with mod_fcgid
19+
# PHP child process management should always be disabled with mod_fcgid
2320
export PHP_FCGI_CHILDREN=0
21+
export PHP_FCGI_MAX_REQUESTS=15000
2422

2523
export REDIRECT_STATUS=200
24+
export TMP="${APACHE_CONTENT_ROOT}/var/tmp"
25+
export TEMP=${TMP}
26+
export TMPDIR=${TMP}
2627

2728
X_NICE=/bin/nice
28-
NICENESS_PHP_CGI=15
29-
30-
# Default to the default distribution version
29+
X_PHP_CGI_NICENESS=15
3130
X_PHP_CGI=/usr/bin/php-cgi
3231

3332
if [[ ${PHP_PACKAGE_NAME} == rh-php56 ]] \
@@ -62,10 +61,6 @@ if [[ ${DB_MYSQL_PORT_3306_TCP_PORT} == '${DB_MYSQL_PORT_3306_TCP_PORT}' ]]; the
6261
unset DB_MYSQL_PORT_3306_TCP_PORT
6362
fi
6463

65-
export TMP="${APACHE_CONTENT_ROOT}/var/tmp"
66-
export TEMP=${TMP}
67-
export TMPDIR=${TMP}
68-
6964
PHP_OPTIONS_DISABLE_FUNCTIONS="system,exec,passthru,shell_exec,proc_open,show_source,popen,pcntl_fork,pcntl_exec,escapeshellarg,escapeshellcmd,openlog,closelog,uname,php_uname"
7065
PHP_OPTIONS_OPEN_BASE_DIR="${APACHE_CONTENT_ROOT}"
7166

@@ -178,7 +173,7 @@ PHP_OPTIONS="
178173

179174
# FastCGI-enabled PHP executable
180175
exec ${X_NICE} \
181-
-n ${NICENESS_PHP_CGI} \
176+
-n ${X_PHP_CGI_NICENESS} \
182177
${X_PHP_CGI} \
183178
${PHP_OPTIONS} \
184179
${PHP_VHOST_OPTIONS}

0 commit comments

Comments
 (0)