Skip to content

Commit

Permalink
Add a php.ini file to turn on display_errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcarlohickman committed Apr 5, 2023
1 parent 43a021c commit b450fe9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup/installers/install-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,14 @@ chmod 666 "${PHPENV_PHP_LOG_FILE}"

log_info "Enabling the PHP error log file."

# Create the error log mod file and enable it for all SAPIs.
echo "error_log=\"${PHPENV_PHP_LOG_FILE}\"" > "${PHP_VERSION_ROOT}/etc/conf.d/error_log.ini"
# Create the error log ini file and enable it for all SAPIs.
echo "error_log = \"${PHPENV_PHP_LOG_FILE}\"" > "${PHP_VERSION_ROOT}/etc/conf.d/error_log.ini"

# Create the display errors ini file and enable it for all SAPIs.
cat << EOF > "${PHP_VERSION_ROOT}/etc/conf.d/display_errors.ini"
display_errors = On
display_startup_errors = On
EOF

log_info "Configuring PHP-FPM for PHP ${PHP_VERSION_INSTALL}."

Expand Down

0 comments on commit b450fe9

Please sign in to comment.