Problem with installations of Shopware 6 on local computer - XAMPP, Laragon
In downloaded the Shopware 6 archive last version from Shopware website.
Before installation Shopware shows all necessary parameters GREEN.
During installation, after DB configuration - ERROR
Slim Application Error
The application could not run because of the following error:
Details
Type: TypeError
Message: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given
File: E:\laragon\www\shopware6\public\recovery\common\src\Service\JwtCertificateService.php
Line: 30
Trace
#0 E:\laragon\www\shopware6\public\recovery\common\src\Service\JwtCertificateService.php(30): openssl_pkey_get_details(false)
#1 E:\laragon\www\shopware6\public\recovery\install\src\app.php(323): Shopware\Recovery\Common\Service\JwtCertificateService->generate()
#2 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#3 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\Handlers\Strategies\RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#4 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#5 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#6 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\Route.php(334): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\App.php(515): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 E:\laragon\www\shopware6\public\recovery\install\src\app.php(154): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#10 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#11 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#12 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#13 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#14 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\App.php(405): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#15 E:\laragon\www\shopware6\public\recovery\common\vendor\slim\slim\Slim\App.php(313): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#16 E:\laragon\www\shopware6\public\recovery\install\index.php(51): Slim\App->run()
#17 {main}
Warning: openssl_pkey_export_to_file(): cannot get key from parameter 1 in E:\laragon\www\shopware6\public\recovery\common\src\Service\JwtCertificateService.php on line 27
I tried to fix it by setting declare(strict_types=0);
in \public\recovery\common\src\Service\JwtCertificateService.php
This made possible to do the installation but after installation in backend I see this error:
{
"errors": [
{
"code": "0",
"status": "500",
"title": "Internal Server Error",
"detail": "Key path
\"file://E:\\laragon\\www\\shopware6/config/jwt/private.pem\" does
not exist or is not readable"
}
]
}
and in FrontEnd is also error:
Fatal error: Uncaught LogicException: Key path "file://E:\laragon\www\shopware6/config/jwt/private.pem" does not exist or is not readable in E:\laragon\www\shopware6\vendor\league\oauth2-server\src\CryptKey.php:48 Stack trace: #0 E:\laragon\www\shopware6\var\cache\prod_k379092f7_pd41d8cd9\ContainerQxQUHDs\srcShopware_Production_KernelProdContainer.php(3278): League\OAuth2\Server\CryptKey->__construct('file://E:\\larag...', 'shopware') #1 E:\laragon\www\shopware6\var\cache\prod_k379092f7_pd41d8cd9\ContainerQxQUHDs\srcShopware_Production_KernelProdContainer.php(2660): ContainerQxQUHDs\srcShopware_Production_KernelProdContainer->getShopware_Api_AuthorizationServerService() #2 E:\laragon\www\shopware6\var\cache\prod_k379092f7_pd41d8cd9\ContainerQxQUHDs\srcShopware_Production_KernelProdContainer.php(1870): ContainerQxQUHDs\srcShopware_Production_KernelProdContainer->getApiAuthenticationListenerService() #3 E:\laragon\www\shopware6\vendor\symfony\event-dispatcher\EventDispatcher.php(296): ContainerQxQUHDs\srcShopware_Production in E:\laragon\www\shopware6\vendor\league\oauth2-server\src\CryptKey.php on line 48
I tried to create manually the missing file config/jwt/private.pem. After that I got access to admin login page but the login and password are not accepted!! The front end is is for small devices and is broken.
A tried with different versions of PHP 7.2.22, 7.3.9 and with MySQL 5.7.24 and MariaDB 10.3.17. The problem is the same for all versions.
Is there any possibility to install on my computer Shopware 6?