diff --git a/php/7.2/fpm-alpine-develop-xdebug/Dockerfile b/php/7.2/fpm-alpine-develop-xdebug/Dockerfile index aec5701..6c73fd0 100644 --- a/php/7.2/fpm-alpine-develop-xdebug/Dockerfile +++ b/php/7.2/fpm-alpine-develop-xdebug/Dockerfile @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \ && docker-php-ext-enable xdebug \ && apk del pcre-dev ${PHPIZE_DEPS} -COPY conf/php.ini /usr/local/etc/php/ +COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d USER app:app diff --git a/php/7.2/fpm-alpine-develop-xdebug/conf/php.ini b/php/7.2/fpm-alpine-develop-xdebug/conf/php.ini deleted file mode 100644 index 8d089af..0000000 --- a/php/7.2/fpm-alpine-develop-xdebug/conf/php.ini +++ /dev/null @@ -1,68 +0,0 @@ -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Stock PHP Settings -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -; This sets the maximum amount of memory in bytes that a script is allowed to allocate. -; This helps prevent poorly written scripts for eating up all available memory on a server. -; Note that to have no memory limit, set this directive to -1. -memory_limit = 4G - -; This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. -; This helps prevent poorly written scripts from tying up the server. -; The default setting is 30. When running PHP from the command line the default setting is 0. -max_execution_time = 30 - -date.timezone = UTC - -; The maximum size of an uploaded file. When an integer is used, the value is measured in bytes. -; Shorthand notation may also be used. -upload_max_filesize = 20M - -; Sets max size of post data allowed. This setting also affects file upload. To upload large files, -; this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be -; larger than post_max_size. When an integer is used, the value is measured in bytes. Shorthand notation may also be used. -post_max_size = 20M - -; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, -; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. -; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. -zlib.output_compression = On - -display_errors = stderr -error_log = /dev/stderr -display_startup_errors = On -log_errors = On - -; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail. -; configure does an honest attempt of locating this one for you and set a default, -; but if it fails, you can set it here. -sendmail_path = ${PHP_SENDMAIL_PATH} - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Xdebug Settings -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Selects the host where the debug client is running, you can either use a host name, IP address, or 'unix:///path/to/sock' -; for a Unix domain socket. This setting is ignored if xdebug.remote_connect_back is enabled. -xdebug.remote_host = ${XDEBUG_REMOTE_HOST} - -; The port to which Xdebug tries to connect on the remote host. Port 9000 is the default for both Xdebug and the Command -; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged. -xdebug.remote_port= ${XDEBUG_REMOTE_PORT} - -; This switch controls whether Xdebug should try to contact a debug client which is listening on the host and port as set -; with the settings xdebug.remote_host and xdebug.remote_port. If a connection can not be established the script will -; just continue as if this setting was 0. -xdebug.remote_enable = 1 - -; Normally you need to use a specific HTTP GET/POST variable to start remote debugging (see Step Debugging). When this -; setting is set to 1, Xdebug will always attempt to start a remote debugging session and try to connect to a client, -; even if the GET/POST/COOKIE variable was not present. -xdebug.remote_autostart = 1 - -; If this setting is set to false, then Xdebug will not set-up internal structures to allow code coverage. -; This speeds up Xdebug quite a bit, but of course, Code Coverage Analysis won't work. -xdebug.coverage_enable = 0 - -; If this setting is 1, then stacktraces will be shown by default on an error event. You can disable showing stacktraces -; from your code with xdebug_disable(). -xdebug.default_enable = 0 \ No newline at end of file diff --git a/php/7.3/fpm-alpine-develop-xdebug/conf/php.ini b/php/7.2/fpm-alpine-develop-xdebug/conf/x-debug-php.ini similarity index 55% rename from php/7.3/fpm-alpine-develop-xdebug/conf/php.ini rename to php/7.2/fpm-alpine-develop-xdebug/conf/x-debug-php.ini index b987780..b29f425 100644 --- a/php/7.3/fpm-alpine-develop-xdebug/conf/php.ini +++ b/php/7.2/fpm-alpine-develop-xdebug/conf/x-debug-php.ini @@ -2,35 +2,37 @@ ;; Stock PHP Settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; This sets the maximum amount of memory in bytes that a script is allowed to allocate. -; This helps prevent poorly written scripts for eating up all available memory on a server. -; Note that to have no memory limit, set this directive to -1. -memory_limit = 4G +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. +error_reporting = E_ALL -; This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. -; This helps prevent poorly written scripts from tying up the server. -; The default setting is 30. When running PHP from the command line the default setting is 0. -max_execution_time = 30 - -date.timezone = UTC - -; The maximum size of an uploaded file. When an integer is used, the value is measured in bytes. -; Shorthand notation may also be used. -upload_max_filesize = 20M - -; Sets max size of post data allowed. This setting also affects file upload. To upload large files, -; this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be -; larger than post_max_size. When an integer is used, the value is measured in bytes. Shorthand notation may also be used. -post_max_size = 20M +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; OPcache Settings +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; +; Determines if Zend OPCache is enabled +opcache.enable = 0 ; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, ; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. ; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. zlib.output_compression = On +; This determines whether errors should be printed to the screen as part of the output +; or if they should be hidden from the user. display_errors = stderr + +; Name of the file where script errors should be logged. The file should be writable by the web server's user. +; If the special value syslog is used, the errors are sent to the system logger instead +; On Unix, this means syslog(3) and on Windows it means the event log error_log = /dev/stderr + +; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed. +; It's strongly recommended to keep display_startup_errors off, except for debugging. display_startup_errors = On + +; Tells whether script error messages should be logged to the server's error log or error_log. +; This option is thus server-specific. log_errors = On ; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail. @@ -49,5 +51,6 @@ xdebug.client_host = ${XDEBUG_CLIENT_HOST} ; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged. xdebug.client_port= ${XDEBUG_CLIENT_PORT} - +; This setting controls which Xdebug features are enabled. +; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode xdebug.mode = ${XDEBUG_MODE} \ No newline at end of file diff --git a/php/7.3/fpm-alpine-develop-xdebug/Dockerfile b/php/7.3/fpm-alpine-develop-xdebug/Dockerfile index 6087d2d..2dbf382 100644 --- a/php/7.3/fpm-alpine-develop-xdebug/Dockerfile +++ b/php/7.3/fpm-alpine-develop-xdebug/Dockerfile @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \ && docker-php-ext-enable xdebug \ && apk del pcre-dev ${PHPIZE_DEPS} -COPY conf/php.ini /usr/local/etc/php/ +COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d USER app:app diff --git a/php/7.4/fpm-alpine-develop-xdebug/conf/php.ini b/php/7.3/fpm-alpine-develop-xdebug/conf/x-debug-php.ini similarity index 55% rename from php/7.4/fpm-alpine-develop-xdebug/conf/php.ini rename to php/7.3/fpm-alpine-develop-xdebug/conf/x-debug-php.ini index b987780..b29f425 100644 --- a/php/7.4/fpm-alpine-develop-xdebug/conf/php.ini +++ b/php/7.3/fpm-alpine-develop-xdebug/conf/x-debug-php.ini @@ -2,35 +2,37 @@ ;; Stock PHP Settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; This sets the maximum amount of memory in bytes that a script is allowed to allocate. -; This helps prevent poorly written scripts for eating up all available memory on a server. -; Note that to have no memory limit, set this directive to -1. -memory_limit = 4G +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. +error_reporting = E_ALL -; This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. -; This helps prevent poorly written scripts from tying up the server. -; The default setting is 30. When running PHP from the command line the default setting is 0. -max_execution_time = 30 - -date.timezone = UTC - -; The maximum size of an uploaded file. When an integer is used, the value is measured in bytes. -; Shorthand notation may also be used. -upload_max_filesize = 20M - -; Sets max size of post data allowed. This setting also affects file upload. To upload large files, -; this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be -; larger than post_max_size. When an integer is used, the value is measured in bytes. Shorthand notation may also be used. -post_max_size = 20M +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; OPcache Settings +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; +; Determines if Zend OPCache is enabled +opcache.enable = 0 ; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, ; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. ; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. zlib.output_compression = On +; This determines whether errors should be printed to the screen as part of the output +; or if they should be hidden from the user. display_errors = stderr + +; Name of the file where script errors should be logged. The file should be writable by the web server's user. +; If the special value syslog is used, the errors are sent to the system logger instead +; On Unix, this means syslog(3) and on Windows it means the event log error_log = /dev/stderr + +; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed. +; It's strongly recommended to keep display_startup_errors off, except for debugging. display_startup_errors = On + +; Tells whether script error messages should be logged to the server's error log or error_log. +; This option is thus server-specific. log_errors = On ; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail. @@ -49,5 +51,6 @@ xdebug.client_host = ${XDEBUG_CLIENT_HOST} ; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged. xdebug.client_port= ${XDEBUG_CLIENT_PORT} - +; This setting controls which Xdebug features are enabled. +; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode xdebug.mode = ${XDEBUG_MODE} \ No newline at end of file diff --git a/php/7.4/fpm-alpine-develop-xdebug/Dockerfile b/php/7.4/fpm-alpine-develop-xdebug/Dockerfile index 83e1823..ae49b42 100644 --- a/php/7.4/fpm-alpine-develop-xdebug/Dockerfile +++ b/php/7.4/fpm-alpine-develop-xdebug/Dockerfile @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \ && docker-php-ext-enable xdebug \ && apk del pcre-dev ${PHPIZE_DEPS} -COPY conf/php.ini /usr/local/etc/php/ +COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d USER app:app diff --git a/php/8.1/fpm-alpine-develop-xdebug/conf/php.ini b/php/7.4/fpm-alpine-develop-xdebug/conf/x-debug-php.ini similarity index 55% rename from php/8.1/fpm-alpine-develop-xdebug/conf/php.ini rename to php/7.4/fpm-alpine-develop-xdebug/conf/x-debug-php.ini index b987780..b29f425 100644 --- a/php/8.1/fpm-alpine-develop-xdebug/conf/php.ini +++ b/php/7.4/fpm-alpine-develop-xdebug/conf/x-debug-php.ini @@ -2,35 +2,37 @@ ;; Stock PHP Settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; This sets the maximum amount of memory in bytes that a script is allowed to allocate. -; This helps prevent poorly written scripts for eating up all available memory on a server. -; Note that to have no memory limit, set this directive to -1. -memory_limit = 4G +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. +error_reporting = E_ALL -; This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. -; This helps prevent poorly written scripts from tying up the server. -; The default setting is 30. When running PHP from the command line the default setting is 0. -max_execution_time = 30 - -date.timezone = UTC - -; The maximum size of an uploaded file. When an integer is used, the value is measured in bytes. -; Shorthand notation may also be used. -upload_max_filesize = 20M - -; Sets max size of post data allowed. This setting also affects file upload. To upload large files, -; this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be -; larger than post_max_size. When an integer is used, the value is measured in bytes. Shorthand notation may also be used. -post_max_size = 20M +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; OPcache Settings +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; +; Determines if Zend OPCache is enabled +opcache.enable = 0 ; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, ; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. ; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. zlib.output_compression = On +; This determines whether errors should be printed to the screen as part of the output +; or if they should be hidden from the user. display_errors = stderr + +; Name of the file where script errors should be logged. The file should be writable by the web server's user. +; If the special value syslog is used, the errors are sent to the system logger instead +; On Unix, this means syslog(3) and on Windows it means the event log error_log = /dev/stderr + +; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed. +; It's strongly recommended to keep display_startup_errors off, except for debugging. display_startup_errors = On + +; Tells whether script error messages should be logged to the server's error log or error_log. +; This option is thus server-specific. log_errors = On ; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail. @@ -49,5 +51,6 @@ xdebug.client_host = ${XDEBUG_CLIENT_HOST} ; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged. xdebug.client_port= ${XDEBUG_CLIENT_PORT} - +; This setting controls which Xdebug features are enabled. +; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode xdebug.mode = ${XDEBUG_MODE} \ No newline at end of file diff --git a/php/8.1/cli-alpine/conf/php.ini b/php/8.1/cli-alpine/conf/php.ini index db31a66..dbbbe85 100644 --- a/php/8.1/cli-alpine/conf/php.ini +++ b/php/8.1/cli-alpine/conf/php.ini @@ -2,6 +2,8 @@ ;; Stock PHP Settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +date.timezone = UTC + ; This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user. ; Value "stderr" sends the errors to stderr instead of stdout. display_errors = Off diff --git a/php/8.1/fpm-alpine-develop-xdebug/Dockerfile b/php/8.1/fpm-alpine-develop-xdebug/Dockerfile index e49af17..ba2372b 100644 --- a/php/8.1/fpm-alpine-develop-xdebug/Dockerfile +++ b/php/8.1/fpm-alpine-develop-xdebug/Dockerfile @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \ && docker-php-ext-enable xdebug \ && apk del pcre-dev ${PHPIZE_DEPS} -COPY conf/php.ini /usr/local/etc/php/ +COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d USER app:app diff --git a/php/8.1/fpm-alpine-develop-xdebug/conf/x-debug-php.ini b/php/8.1/fpm-alpine-develop-xdebug/conf/x-debug-php.ini new file mode 100644 index 0000000..b29f425 --- /dev/null +++ b/php/8.1/fpm-alpine-develop-xdebug/conf/x-debug-php.ini @@ -0,0 +1,56 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Stock PHP Settings +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +; This directive informs PHP of which errors, warnings and notices you would like +; it to take action for. +error_reporting = E_ALL + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; OPcache Settings +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; +; Determines if Zend OPCache is enabled +opcache.enable = 0 + +; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, +; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. +; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. +zlib.output_compression = On + +; This determines whether errors should be printed to the screen as part of the output +; or if they should be hidden from the user. +display_errors = stderr + +; Name of the file where script errors should be logged. The file should be writable by the web server's user. +; If the special value syslog is used, the errors are sent to the system logger instead +; On Unix, this means syslog(3) and on Windows it means the event log +error_log = /dev/stderr + +; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed. +; It's strongly recommended to keep display_startup_errors off, except for debugging. +display_startup_errors = On + +; Tells whether script error messages should be logged to the server's error log or error_log. +; This option is thus server-specific. +log_errors = On + +; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail. +; configure does an honest attempt of locating this one for you and set a default, +; but if it fails, you can set it here. +sendmail_path = ${PHP_SENDMAIL_PATH} + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Xdebug Settings +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; Selects the host where the debug client is running, you can either use a host name, IP address, or 'unix:///path/to/sock' +; for a Unix domain socket. This setting is ignored if xdebug.remote_connect_back is enabled. +xdebug.client_host = ${XDEBUG_CLIENT_HOST} + +; The port to which Xdebug tries to connect on the remote host. Port 9003 is the default for both Xdebug and the Command +; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged. +xdebug.client_port= ${XDEBUG_CLIENT_PORT} + +; This setting controls which Xdebug features are enabled. +; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode +xdebug.mode = ${XDEBUG_MODE} \ No newline at end of file