July 6, 2021 . 1 MIN READ
I recently noticed I get the following:
Fatal error: Maximum execution time of 300 seconds exceeded in phar://C:/inetpub/wwwroot/lib/aws.phar/Guzzle/Http/Curl/CurlMulti.php on line 240
when I try uploading large files onto S3 with uploadDirectory(). How do I increase the maximum execution time here, and is there a way to change it so there is no maximum execution time?
I can unpack the phar file, go to each specific file where execution exceeds 300 seconds, and add something like:
ini_set('MAX_EXECUTION_TIME', -1);
Then pack everything back up into a phar package. But this seems like a very tedious process to do every time I want to change the max execution time.
https://forums.aws.amazon.com/thread.jspa?threadID=160533