# Maximum execution time exceeded when updating

**URL:** https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673
**Category:** Installation / Getting Started (EN)
**Created:** [28. Juli 2024 um 07:44 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673 "2024-07-28T07:44:15Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)
#### Post date: [28. Juli 2024 um 07:44 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/1 "2024-07-28T07:44:15Z")

</div>

When trying to update from 6.5 to 6.6 I get this error:  
`PHP Fatal error: Maximum execution time of 300 seconds exceeded in phar:///Users/magnus/Sites/bytadiskbank/public/shopware-installer.phar.php/vendor/composer/class-map-generator/src/PhpFileParser.php on line 35`

But in the php.ini (PHP 8.2) file I have set the time to 30000 (also confirmed when checking with „phpinfo()“.

Why is it so? Anyway to force the Shopware installer to use more time? Where does the „300“ comes from?

System: MacOS with Apache and PHP installed with Homebrew.

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [28. Juli 2024 um 08:53 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/2 "2024-07-28T08:53:52Z")

</div>

We had this discussion in the German forum. You might find it via the search.

You have to remove the 300 second limit from the phar file.

---

<div class="post-metadata">

### Author: ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)
#### Post date: [28. Juli 2024 um 12:45 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/3 "2024-07-28T12:45:55Z")

</div>

Thanks @Max_Shop  
I could not find the Germany thread, but took a look inside shopware-installer.phar.php.

Changed the relevant instances of „300“ to „3000“. Started the installation, but now I get another error:

`Uncaught PharException: phar "/Users/magnus/Sites/bytadiskbank/public/shopware-installer.phar.php" SHA1 signature could not be verified: broken signature in`

Anyway to not mess up the SHA1 signature? I used my code editor (Nova) to edit the file.

/ Magnus

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [28. Juli 2024 um 21:13 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/4 "2024-07-28T21:13:31Z")

</div>

Sorry, that was my mistake 😬

You have to clone the Shopware repository, edit the source and then create the phar.

> <https://github.com/shopware/shopware/blob/trunk/src/WebInstaller/README.md>

---

<div class="post-metadata">

### Author: ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)
#### Post date: [29. Juli 2024 um 05:54 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/5 "2024-07-29T05:54:53Z")

</div>

Alright. I will try this 😬 (wish me luck!)  
Do you know if this is a bug (that will be fixed) or is it a „feature“?

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [29. Juli 2024 um 08:52 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/6 "2024-07-29T08:52:24Z")

</div>

I would not call your Mac a bug, maybe slightly outdated? 😜

On my 1 Euro/month VPS the installer needs about 30 to 60 seconds to install Shopware.  
So I guess it is either your setup up on the Mac or your internet connection that slows down the installation.

---

<div class="post-metadata">

### Author: ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)
#### Post date: [29. Juli 2024 um 12:37 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/7 "2024-07-29T12:37:40Z")

</div>

😂  
It must be my Internet connection (only 5G).  
May I ask which service (VPS) you are using?

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [29. Juli 2024 um 12:52 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/8 "2024-07-29T12:52:11Z")

</div>

It’s only for testing, not for production.

> **[netcup.de - VPS piko G11s 12M - Produktdetails](https://www.netcup.de/bestellen/produkt.php?produkt=3422)**
>
> Webhosting, Server, Domains, Managementdienste, einfach alles fuer einen erfolgreichen Internetauftritt

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)
#### Post date: [28. August 2024 um 12:52 UTC](https://forum.shopware.com/t/maximum-execution-time-exceeded-when-updating/104673/9 "2024-08-28T12:52:22Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
