How do I change the php max_execution_time in the wordpress docker image?

I have been trying to change the max_execution_time value that wordpress sees for hours, with no luck. I am using the wordpress:5.5.0-php7.4-fpm-alpine docker image, along with the nginx:1.15.12-alpine image, which reverse proxies to wordpress.
Here is a list of the things I can remember trying so far:
wp-config.php:
ini_set('max_execution_time', 300);
set_time_limit(300);
nginx.conf:
fastcgi_param PHP_VALUE max_execution_time=300;
.htaccess
php_value max_execution_time 300
max_execution 300
.user.ini (in wordpress directory)
max_execution_time = 300
If I create a config.php which printsphpinfo()
,max_execution_time
updates when I change the .user.ini file or the PHP_VALUE in the nginx config.
However, the "max execution time" reported by wordpress (via woocommerce status page) refuses to change from 120. I cannot find any configuration that says 120 seconds, so I am completely boggled by this.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: gd library extension not available with this php installation.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.