Merge pull request #93 from tilosp-docker/recommended-opcache

Use the recommended opcache settings
This commit is contained in:
Pierre Ozoux 2017-06-10 10:59:48 +01:00 committed by GitHub
commit d022c79bea
5 changed files with 40 additions and 35 deletions

View File

@ -21,14 +21,15 @@ RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip && docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
RUN { \ RUN { \
echo 'opcache.memory_consumption=128'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.enable_cli=1'; \
echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.revalidate_freq=60'; \ echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.fast_shutdown=1'; \ echo 'opcache.memory_consumption=128'; \
echo 'opcache.enable_cli=1'; \ echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini } > /usr/local/etc/php/conf.d/opcache-recommended.ini
RUN a2enmod rewrite RUN a2enmod rewrite

View File

@ -21,14 +21,15 @@ RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip && docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
RUN { \ RUN { \
echo 'opcache.memory_consumption=128'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.enable_cli=1'; \
echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.revalidate_freq=60'; \ echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.fast_shutdown=1'; \ echo 'opcache.memory_consumption=128'; \
echo 'opcache.enable_cli=1'; \ echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini } > /usr/local/etc/php/conf.d/opcache-recommended.ini
# PECL extensions # PECL extensions

View File

@ -21,14 +21,15 @@ RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip && docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
RUN { \ RUN { \
echo 'opcache.memory_consumption=128'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.enable_cli=1'; \
echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.revalidate_freq=60'; \ echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.fast_shutdown=1'; \ echo 'opcache.memory_consumption=128'; \
echo 'opcache.enable_cli=1'; \ echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini } > /usr/local/etc/php/conf.d/opcache-recommended.ini
RUN a2enmod rewrite RUN a2enmod rewrite

View File

@ -21,14 +21,15 @@ RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip && docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
RUN { \ RUN { \
echo 'opcache.memory_consumption=128'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.enable_cli=1'; \
echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.revalidate_freq=60'; \ echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.fast_shutdown=1'; \ echo 'opcache.memory_consumption=128'; \
echo 'opcache.enable_cli=1'; \ echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini } > /usr/local/etc/php/conf.d/opcache-recommended.ini
# PECL extensions # PECL extensions

View File

@ -21,14 +21,15 @@ RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip && docker-php-ext-install gd exif intl mbstring mcrypt ldap mysqli opcache pdo_mysql pdo_pgsql pgsql zip
# set recommended PHP.ini settings # set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php # see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
RUN { \ RUN { \
echo 'opcache.memory_consumption=128'; \ echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \ echo 'opcache.enable_cli=1'; \
echo 'opcache.max_accelerated_files=4000'; \ echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.revalidate_freq=60'; \ echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.fast_shutdown=1'; \ echo 'opcache.memory_consumption=128'; \
echo 'opcache.enable_cli=1'; \ echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini } > /usr/local/etc/php/conf.d/opcache-recommended.ini
RUN a2enmod rewrite RUN a2enmod rewrite