Git Product home page Git Product logo

Comments (6)

moufmouf avatar moufmouf commented on May 22, 2024 1

Weird... I'll look into it tomorrow.

from docker-images-php.

tworzenieweb avatar tworzenieweb commented on May 22, 2024

I was also surprised. I went through all the ini config. I also changed the values directly in the container. What was important that there were local and global values for this directive (for web version of phpinfo()) and global was correct, but local was always zero.

Greping for the directive string in filesystem didn't also bring the answer.

from docker-images-php.

moufmouf avatar moufmouf commented on May 22, 2024

Ok, got it. It's not a bug, it's a feature :)

Out of the box, PHP puts the max_exection_time setting to 0 in CLI. This is part of the doc: http://php.net/manual/en/info.configuration.php#ini.max-execution-time

The parameter should work ok in Apache or PHP-FPM though.

In CLI mode, you can still set it manually in your PHP script as explained here: https://stackoverflow.com/questions/5874950/set-max-execution-time-in-php-cli

from docker-images-php.

vangelier-visma avatar vangelier-visma commented on May 22, 2024

I have the same problem here.

php-fpm@12594ded1044:/usr/local/etc/php/conf.d$ cat php.ini
date.timezone = "Europe/Amsterdam"
upload_max_filesize=40M
post_max_size=40M
max_execution_time=600
memory_limit=256M
max_input_vars=100000
output_buffering = 4096
max_input_time = 600

Additional .ini files parsed => /usr/local/etc/php/conf.d/docker-fpm.ini,
/usr/local/etc/php/conf.d/docker-php-ext-exif.ini,
/usr/local/etc/php/conf.d/docker-php-ext-gd.ini,
/usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini,
/usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini,
/usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini,
/usr/local/etc/php/conf.d/docker-php-ext-redis.ini,
/usr/local/etc/php/conf.d/docker-php-ext-soap.ini,
/usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
/usr/local/etc/php/conf.d/docker-php-ext-zip.ini,
/usr/local/etc/php/conf.d/error_reporting.ini,
/usr/local/etc/php/conf.d/max_exec_time.ini,
/usr/local/etc/php/conf.d/php.ini

php -i
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 100000 => 100000
max_multipart_body_parts => -1 => -1
memory_limit => 256M => 256M
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
output_handler => no value => no value
post_max_size => 40M => 40M

from docker-images-php.

vangelier-visma avatar vangelier-visma commented on May 22, 2024

/usr/local/etc/php/conf.d/max_exec_time.ini has max_execution_time=600

from docker-images-php.

vangelier-visma avatar vangelier-visma commented on May 22, 2024

Through PHP file with phpinfo();

root@7406ce04e462:/var/www/api# php phpinfo.php | grep max
/usr/local/etc/php/conf.d/max_exec_time.ini,
log_errors_max_len => 1024 => 1024
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 100000 => 100000
max_multipart_body_parts => -1 => -1
post_max_size => 40M => 40M
upload_max_filesize => 40M => 40M
zend.exception_string_param_max_len => 15 => 15
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
session.gc_maxlifetime => 1440 => 1440
unserialize_max_depth => 4096 => 4096

from docker-images-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.