Comments (6)
Weird... I'll look into it tomorrow.
from docker-images-php.
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.
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.
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.
/usr/local/etc/php/conf.d/max_exec_time.ini has max_execution_time=600
from docker-images-php.
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)
- Add environment variable to change Apache ports HOT 1
- Add decimal extension
- Cannot run Composer binaries without path anymore HOT 9
- Add uopz extension HOT 2
- Add libvips HOT 2
- Lots of `<defunct>` processes when using Cron HOT 2
- No rebuild with Composer 2.6.2? HOT 3
- Publishing image on other container registries HOT 4
- Docker fails when using non-privileged user HOT 2
- Add PHP 8.3 images HOT 15
- Extra extentions loading not working for BitBucket pipeline HOT 4
- Building image from php:8.2-v4-apache or php:8.3-v4-apache fails with modified php.ini query HOT 3
- Redis missing from fat image HOT 5
- Missing "gd" PHP extension HOT 3
- Composer 2.7 and CVE-2024-24821 HOT 1
- Extension opentelemetry HOT 1
- Install SQL Server (sqlsrv) and PDO_SQLSRV (pdo_sqlsrv) HOT 2
- GItlab ci: Composer cache permission denied HOT 3
- Outdated PHP versions for most 8.3 images HOT 2
- How do I get SSL working? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-images-php.