# Shopware 6 Installation scheitert

**URL:** <https://forum.shopware.com/t/shopware-6-installation-scheitert/100065>\
**Category:** Shopware 6 (German)\
**Created:** [13. Juni 2023 um 08:13 UTC](https://forum.shopware.com/t/shopware-6-installation-scheitert/100065 "2023-06-13T08:13:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas1910](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@Thomas1910](https://forum.shopware.com/u/Thomas1910)\
**Post date:** [13. Juni 2023 um 08:13 UTC](https://forum.shopware.com/t/shopware-6-installation-scheitert/100065/1 "2023-06-13T08:13:37Z")

</div>

Die Installation einer neuen Shopware 6 Installation auf unserem Entwicklungsserver (Ubuntu 20.04, PHP 8.1) mit dem „shopware-installer.phar.php“ Script scheitert bereits beim Aufruf mit diesem Fehler:

**Fatal error** : Uncaught Error: Class „Locale“ not found in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php:37 Stack trace: #0 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(71): Symfony\Component\Translation\LocaleSwitcher-\>setLocale() #1 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(42): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener-\>setLocale() #2 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener-\>onKernelRequest() #3 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher{closure}() #4 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher-\>callListeners() #5 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher-\>dispatch() #6 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel-\>handleRaw() #7 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/Kernel.php(184): Symfony\Component\HttpKernel\HttpKernel-\>handle() #8 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/index.php(32): Symfony\Component\HttpKernel\Kernel-\>handle() #9 /var/www/shopware6/htdocs/public/shopware-installer.phar.php(79): Phar::webPhar() #10 {main} thrown in **phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php** on line **37**

# Oops! An Error Occurred

## The server returned a „500 Internal Server Error“.

**Das Error Log zeigt dann folgende beiden Fehler vor dem Abbruch:**

[Tue Jun 13 09:29:56.389384 2023] [php:error] [pid 12884] [client 192.168.16.12:35714] PHP Fatal error: Uncaught Error: Class „Locale“ not found in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php:37\nStack trace:\n#0 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(71): Symfony\Component\Translation\LocaleSwitcher-\>setLocale()\n#1 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(42): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener-\>setLocale()\n#2 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener-\>onKernelRequest()\n#3 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()\n#4 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher-\>callListeners()\n#5 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher-\>dispatch()\n#6 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel-\>handleRaw()\n#7 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/Kernel.php(184): Symfony\Component\HttpKernel\HttpKernel-\>handle()\n#8 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/index.php(32): Symfony\Component\HttpKernel\Kernel-\>handle()\n#9 /var/www/shopware6/htdocs/public/shopware-installer.phar.php(79): Phar::webPhar()\n#10 {main}\n thrown in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php on line 37

[Tue Jun 13 09:29:56.392137 2023] [php:notice] [pid 12884] [client 192.168.16.12:35714] [critical] Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: „Error: Uncaught Error: Class „Locale“ not found in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php:37\nStack trace:\n#0 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(71): Symfony\Component\Translation\LocaleSwitcher-\>setLocale()\n#1 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(42): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener-\>setLocale()\n#2 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener-\>onKernelRequest()\n#3 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()\n#4 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher-\>callListeners()\n#5 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher-\>dispatch()\n#6 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel-\>handleRaw()\n#7 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/Kernel.php(184): Symfony\Component\HttpKernel\HttpKernel-\>handle()\n#8 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/index.php(32): Symfony\Component\HttpKernel\Kernel-\>handle()\n#9 /var/www/shopware6/htdocs/public/shopware-installer.phar.php(79): Phar::webPhar()\n#10 {main}\n thrown“ at phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php line 37

Kann mir bitte jemand sagen, was zu tun ist.

---

<div class="post-metadata">

**Author:** ![DanielK1511](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/danielk1511/32/20652_2.png) [@DanielK1511](https://forum.shopware.com/u/DanielK1511)\
**Post date:** [13. Juni 2023 um 10:30 UTC](https://forum.shopware.com/t/shopware-6-installation-scheitert/100065/2 "2023-06-13T10:30:20Z")

</div>

> [@Thomas1910](#):
>
> PHP Fatal error: Uncaught Error: Class „Locale“ not found

Schon `apt-get install php8.1-intl` probiert?

---

<div class="post-metadata">

**Author:** ![Thomas1910](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@Thomas1910](https://forum.shopware.com/u/Thomas1910)\
**Post date:** [15. Juni 2023 um 07:00 UTC](https://forum.shopware.com/t/shopware-6-installation-scheitert/100065/3 "2023-06-15T07:00:54Z")

</div>

Vielen Dank für den Tip. Hat funktioniert.

---

<div class="post-metadata">

**Author:** ![DanielK1511](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/danielk1511/32/20652_2.png) [@DanielK1511](https://forum.shopware.com/u/DanielK1511)\
**Post date:** [20. Juni 2023 um 12:38 UTC](https://forum.shopware.com/t/shopware-6-installation-scheitert/100065/4 "2023-06-20T12:38:03Z")

</div>

Hi  
Super, das freut mich. 😃  
Könntest du meinen Beitrag als Lösung markieren?  
Dann sehen das andere mit ähnlichen Problemen besser.

MFG  
Daniel

 ![Unbenannt](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/b/9/b90809f2b80411f6f96b56d40069769976a89e5a.png)
