Adding max_input_vars for moodle.
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
fae9a1f952
commit
8015c56158
|
@ -1,4 +1,6 @@
|
||||||
FROM php:8.3-apache
|
FROM php:8.3-apache
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
|
@ -7,13 +9,14 @@ RUN apt-get update && apt-get install -y \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
vim \
|
vim \
|
||||||
libicu-dev \
|
libicu-dev \
|
||||||
fcgiwrap \
|
fcgiwrap \
|
||||||
mariadb-client \
|
mariadb-client \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
git && \
|
git && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install PHP extensions
|
||||||
RUN docker-php-ext-configure intl && \
|
RUN docker-php-ext-configure intl && \
|
||||||
docker-php-ext-install intl && \
|
docker-php-ext-install intl && \
|
||||||
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
||||||
|
@ -21,16 +24,15 @@ RUN docker-php-ext-configure intl && \
|
||||||
docker-php-ext-install mysqli zip pdo_mysql bcmath && \
|
docker-php-ext-install mysqli zip pdo_mysql bcmath && \
|
||||||
docker-php-ext-install opcache
|
docker-php-ext-install opcache
|
||||||
|
|
||||||
RUN docker-php-ext-configure intl && \
|
# Download Composer
|
||||||
docker-php-ext-install intl && \
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
|
||||||
docker-php-ext-install -j$(nproc) gd && \
|
|
||||||
docker-php-ext-install mysqli zip pdo_mysql bcmath && \
|
|
||||||
docker-php-ext-install opcache
|
|
||||||
|
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=compo
|
|
||||||
|
|
||||||
|
# Create session directory
|
||||||
RUN mkdir /var/www/sessions && \
|
RUN mkdir /var/www/sessions && \
|
||||||
chmod 777 /var/www/sessions
|
chmod 777 /var/www/sessions
|
||||||
|
|
||||||
RUN a2enmod rewrite
|
# Enable Apache mod_rewrite
|
||||||
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
|
# Set max_input_vars in PHP configuration
|
||||||
|
RUN echo "max_input_vars = 6000" > /usr/local/etc/php/conf.d/max_input_vars.ini
|
||||||
|
|
Loading…
Reference in New Issue