mirror of
https://github.com/linuxserver/docker-nextcloud.git
synced 2026-02-19 23:03:50 +08:00
Merge pull request #45 from linuxserver/php_fixes
sed php.ini for opcache requirements
This commit is contained in:
commit
07e3b39ccd
13
Dockerfile
13
Dockerfile
@ -81,8 +81,17 @@ RUN \
|
||||
# configure php and nginx for nextcloud
|
||||
echo "extension="smbclient.so"" > /etc/php7/conf.d/00_smbclient.ini && \
|
||||
sed -i \
|
||||
's/;always_populate_raw_post_data = -1/always_populate_raw_post_data = -1/g' \
|
||||
/etc/php7/php.ini && \
|
||||
-e 's/;opcache.enable.*=.*/opcache.enable=1/g' \
|
||||
-e 's/;opcache.interned_strings_buffer.*=.*/opcache.interned_strings_buffer=8/g' \
|
||||
-e 's/;opcache.max_accelerated_files.*=.*/opcache.max_accelerated_files=10000/g' \
|
||||
-e 's/;opcache.memory_consumption.*=.*/opcache.memory_consumption=128/g' \
|
||||
-e 's/;opcache.save_comments.*=.*/opcache.save_comments=1/g' \
|
||||
-e 's/;opcache.revalidate_freq.*=.*/opcache.revalidate_freq=1/g' \
|
||||
-e 's/;always_populate_raw_post_data.*=.*/always_populate_raw_post_data=-1/g' \
|
||||
/etc/php7/php.ini && \
|
||||
sed -i \
|
||||
'/opcache.enable=1/a opcache.enable_cli=1' \
|
||||
/etc/php7/php.ini && \
|
||||
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
|
||||
|
||||
# cleanup
|
||||
|
||||
@ -81,6 +81,7 @@ If updating to nextcloud 12 you will need to comment out line `add_header X-Fram
|
||||
|
||||
## Versions
|
||||
|
||||
+ **15.10.17:** Sed php.ini for opcache requirements in newer nextcloud versions.
|
||||
+ **20.09.17:** Bump default install to 12.0.3.
|
||||
+ **19.08.17:** Bump default install to 12.0.2.
|
||||
+ **25.05.17:** Rebase to alpine 3.6.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user