Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
431 views
in Technique[技术] by (71.8m points)

php - set max_execution_time on joomla docker

i need to increase max_execution_time on an docker running joomla. I modified my php.ini and pass it to the docker by volume:

cat /data/php.ini

upload_max_filesize = 101M
post_max_size = 101M
max_execution_time = 666

my run docker run

docker run -d 
    --name myjoomla 
    -p 80:80 
    -e JOOMLA_DB_NAME=dbname 
    -e JOOMLA_DB_USER=user 
    -e JOOMLA_DB_PASSWORD=pass 
    -e JOOMLA_DB_HOST=host 
    -v /data/www/html:/var/www/html 
    -v /data/php.ini:/usr/local/etc/php/conf.d/php.ini 
    --restart=always 
    joomla:latest

for the other variables it works but not for max_execution_time

$ docker exec -it myjoomla php -i | grep max_
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 => 1000 => 1000
post_max_size => 101M => 101M
upload_max_filesize => 101M => 101M
ldap.max_links => Unlimited => Unlimited
memcached.sess_lock_max_wait => not set => not set
memcached.sess_lock_wait_max => 150 => 150
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited
session.gc_maxlifetime => 1440 => 1440

There are any other settings to do? Did i miss anything? thanks carlo

question from:https://stackoverflow.com/questions/65869998/set-max-execution-time-on-joomla-docker

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Try to create a custom.ini file inside /usr/local/etc/php/conf.d with required parameters instead of putting it directly to php.ini

...
-v /data/custom.ini:/usr/local/etc/php/conf.d/custom.ini
...

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...