简体   繁体   中英

PHP 7.1.33 in MAMP Pro doesn't go above 30 seconds in max_execution_time setting

I'm working in a Cake PHP 2 application, I'm running some big queries that require PHP's max_execution_time setting to be higher than 30 seconds. I've dumped phpinfo() on the page and can see that it's being pulled through, and if I change it from 40 to something like 5, it does exit after 5 seconds.

But anything above 30 seconds and it just exits at 30. What am I missing?

I've tried editing every PHP conf file offered by MAMP pro and still no luck. 在此处输入图像描述 在此处输入图像描述

You can take a look at the php documentation, which mentions:

Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

If you are Apache Web Server, check the Timeout directive.

refer to:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM