Adjust memory limit for file_uploads.
This commit is contained in:
@@ -13,10 +13,13 @@ RUN apt-get clean && \
|
||||
ENV APACHE_DOCUMENT_ROOT /var/www
|
||||
ENV APACHE_RUN_USER www-data
|
||||
|
||||
RUN sed -ri -e 's!/var/www/html!/var/www!g' /etc/apache2/sites-available/*.conf
|
||||
RUN sed -ri -e 's!/var/www/!/var/www!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
RUN sed -ri -e 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/*.conf
|
||||
RUN sed -ri -e 's!/var/www/!/var/www/public!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
RUN sed -ri -e 's!AllowOverride None!AllowOverride All!g' /etc/apache2/apache2.conf
|
||||
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
RUN sed -ri -e 's!upload_max_filesize = 2M!upload_max_filesize = 8M!g' $PHP_INI_DIR/php.ini
|
||||
|
||||
RUN a2enmod rewrite
|
||||
|
||||
ARG UNAME=www-data
|
||||
|
||||
Reference in New Issue
Block a user