From b450fe9fb055a4ab60127aa0459569a93e5d5b16 Mon Sep 17 00:00:00 2001 From: Patrick Carlo-Hickman Date: Wed, 5 Apr 2023 19:26:00 -0400 Subject: [PATCH] Add a php.ini file to turn on display_errors. --- setup/installers/install-php.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup/installers/install-php.sh b/setup/installers/install-php.sh index 4468698..f747c51 100755 --- a/setup/installers/install-php.sh +++ b/setup/installers/install-php.sh @@ -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}."