I have changed php.ini
settings and max timeout
in http-default.conf
under apache but still I get the following error:
Maximum execution timeout of 300 seconds
I have even added set_time_limit
and ini_set
to the php script but still I get this error.
How do I resolve this?
Note:
I tried the options in Fatal error: Maximum execution time of 300 seconds exceeded .
Change Maximum Execution Time
php.ini
max_execution_time = 30
From Code
Start your code with,
ini_set('MAX_EXECUTION_TIME', 3600);
.htaccess
php_value max_execution_time 3600
No matter which option you choose, restart Apache service.
使用下面的东西,我认为会起作用
set_time_limit(0);
Conditions:
If you are using phpMyadmin to import large sql files and you have increased max_execution time, max file upload limit and everything needed And If none of the above answers work for you come here
Go to your server (xampp or wamp) folder, in my case here is the relative path to the file that I need to modify: C:\\xampp\\phpMyAdmin\\libraries\\config.default.php
/**
* maximum execution time in seconds (0 for no limit)
*
* @global integer $cfg['ExecTimeLimit']
* by defautlt 300 is the value
* change it to 0 for unlimited
* time is seconds
* Line 709 for me
*/
$cfg['ExecTimeLimit'] = 0;
In php.ini you must check mysql.connect_timeout either. So, for example, change it to:
mysql.connect_timeout = 1000
That time will be always counted in seconds
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.