# PHP max\_execution\_time für spezielles Plugin erhöhen

**URL:** <https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558>\
**Category:** Administration\
**Created:** [5. März 2018 um 15:21 UTC](https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558 "2018-03-05T15:21:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adler1860](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@adler1860](https://forum.shopware.com/u/adler1860)\
**Post date:** [5. März 2018 um 15:21 UTC](https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558/1 "2018-03-05T15:21:48Z")

</div>

Hallo,

wir haben aktuell ein Problem mit dem Export eines Plugins, dieses liefert folgenden Fehler:

**Fatal error** : Maximum execution time of 30 seconds exceeded in&nbsp; **/www/htdocs/xxxxxxx/shop/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php**  
503 Service Unavailable

Der Support unseres Hosters meinte, ich solle über die .htaccess die max\_execution\_time von 30 auf 120 erhöhen. Ich würde aber die max\_execution\_time ungern global für den ganzen Shop hochschrauben, sondern wirklich nur für dieses Plugin.

Funktioniert das in Shopware überhaupt? Und wenn ja, in welchem Verzeichnis müsste die .htaccess erstellt werden?

Habe es bereits im Ordner /engine/Shopware/Plugins/Community/Frontend/Plugin123/Controllers/Frontend/ getestet, leider ohne Erfolg. Die Fehlermeldung bleibt bestehen.

So sieht meine .htaccess-Datei aus:

```
php_value max_execution_time 300

```

Viele Grüße

Johannes

---

<div class="post-metadata">

**Author:** ![7nd1](https://avatars.discourse-cdn.com/v4/letter/7/ad7895/32.png) [@7nd1](https://forum.shopware.com/u/7nd1)\
**Post date:** [6. März 2018 um 12:23 UTC](https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558/2 "2018-03-06T12:23:00Z")

</div>

```
php_value max_execution_time 300

```

**weitere mögliche Einstellungen**

```
php_value post_max_size 5M
php_value upload_max_filesize 5M
php_value memory_limit 128M
php_value max_execution_time 300
php_value max_input_time 300
php_value session.gc_maxlifetime 1200
```

---

<div class="post-metadata">

**Author:** ![7nd1](https://avatars.discourse-cdn.com/v4/letter/7/ad7895/32.png) [@7nd1](https://forum.shopware.com/u/7nd1)\
**Post date:** [6. März 2018 um 12:25 UTC](https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558/3 "2018-03-06T12:25:31Z")

</div>

Die .htaccess kommt in den root-ordner deiner Shopware-Installation

---

<div class="post-metadata">

**Author:** ![adler1860](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@adler1860](https://forum.shopware.com/u/adler1860)\
**Post date:** [6. März 2018 um 12:50 UTC](https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558/4 "2018-03-06T12:50:17Z")

</div>

Vielen Dank schon mal, aber das bedeutet ja, dass ich die max\_execution\_time für den kompletten Shop erhöhe.

Ich wollte diese eigentlich nur für ein einziges Plugin anpassen, ist das auch möglich?

---

<div class="post-metadata">

**Author:** ![ruppert](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@ruppert](https://forum.shopware.com/u/ruppert)\
**Post date:** [20. November 2020 um 14:15 UTC](https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558/5 "2020-11-20T14:15:20Z")

</div>

Die Frage ist zwar schon drei Jahre her aber…

mit “ini\_set(“max\_execution\_time”,“300”);” scheint es zu funktionieren.

---

<div class="post-metadata">

**Author:** ![Eichmanns](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@Eichmanns](https://forum.shopware.com/u/Eichmanns)\
**Post date:** [20. November 2020 um 14:47 UTC](https://forum.shopware.com/t/php-max-execution-time-fur-spezielles-plugin-erhohen/51558/6 "2020-11-20T14:47:08Z")

</div>

If you are receiving errors due to PHP scripts timing out when manipulating large amounts of data, such as a large import or export [paygoonline](https://www.paygonline.vip/), you may need to increase the max execution time in PHP. In this article, we will show you how to do so.
