aspendigital / docker-octobercms

Dockerized October CMS: PHP, Composer, October core and dependencies
MIT License
150 stars 54 forks source link

how to set PHP max_execution_time ? #31

Closed iamike closed 4 years ago

iamike commented 4 years ago

how can I increase this php params ? because I want upload some big file on backend. is there any elegant way like just set: "PHP_POST_MAX_SIZE","PHP_MEMORY_LIMIT","PHP_UPLOAD_MAX_FILESIZE" ?

thanks

截屏2020-03-23下午7 48 27
petehalverson commented 4 years ago

While I have made a few PHP config variable triggers, I hadn't intended it to be all encompassing.

See the README notes for PHP Configuration.

You could use a volume mount to add a custom config to your container or extend the image itself and append your custom setting to the existing PHP config:

FROM aspendigital/octobercms:latest
RUN echo 'max_execution_time=90' >> /usr/local/etc/php/conf.d/docker-oc-php.ini
petehalverson commented 4 years ago

I am open to adding trigger variables for this and other settings should more users show interest.