Fatal error: Maximum execution time of 400 seconds exceeded

眉间皱痕 提交于 2019-12-01 21:11:50

As Ignacio says, something may be overriding the php.ini setting. You can definitively set the timeout for that script using set_time_limit

set_time_limit(600);

You can also set it to 0, which removes any time restriction - although this is not best practice.

400 seconds is a huge amount of time for a query - have you looked into adding indexes on commonly used columns in your db?

You need to restart your web server for PHP to re-parse your config file.

Something in either a .htaccess file or within a PHP script is probably resetting it back to 400 seconds.

Having said that, 400 seconds is still an excessive amount of time for a query. You should consider farming the task off to another process if it really needs to take that long.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!