Setting some php options, also session path (closes #9)

This commit is contained in:
Dennis Schwerdel 2017-06-01 10:47:09 +02:00
parent 1d57f0f321
commit 6baf0d59f9
1 changed files with 9 additions and 1 deletions

View File

@ -40,7 +40,15 @@ RUN rm /etc/apache2/sites-enabled/* \
&& a2ensite freshrss
RUN rm -rf /var/lib/php \
&& ln -s /run/php /var/lib/php
&& ln -s /run/php /var/lib/php \
&& mkdir -p /run/php/session
RUN crudini --set /etc/php/7.0/apache2/php.ini PHP upload_max_filesize 64M && \
crudini --set /etc/php/7.0/apache2/php.ini PHP post_max_size 64M && \
crudini --set /etc/php/7.0/apache2/php.ini PHP memory_limit 64M && \
crudini --set /etc/php/7.0/apache2/php.ini Session session.save_path /run/php/session && \
crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_probability 1 && \
crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_divisor 100
ADD start.sh /app/code/start.sh