Javier9234 Posted July 5, 2023 Share Posted July 5, 2023 Hello, I have this error when installing prestashop for the first time, I am using xampp, the prestashop version is 8.0.4, before, when I started to install it on the server, when it reached 100% it gave me an error saying that it could not change the name of index.php.temp to index.php, I did it manually but I think the problem was that it didn't have permissions, in this case I think it may be a problem with permissions again, I'm on Windows, I've given it permissions of full control to the xampp folder and much of what is inside but there are some things that tell me that it has an error to count files and that it does not Link to comment Share on other sites More sharing options...
juanrojas Posted July 5, 2023 Share Posted July 5, 2023 hello, I don't know what's wrong with you but it's better to work with wampserver 1 Link to comment Share on other sites More sharing options...
Javier9234 Posted July 5, 2023 Author Share Posted July 5, 2023 10 minutes ago, juanrojas said: hello, I don't know what's wrong with you but it's better to work with wampserver Ok thank you, i will try it Link to comment Share on other sites More sharing options...
Javier9234 Posted July 5, 2023 Author Share Posted July 5, 2023 4 hours ago, Javier9234 said: Ok thank you, i will try it I tried wampp and it was perfect, thank you so much, not even it fixed my error I didn't need to install any dll and only needed to change 1 number on php.ini, at least it worked for me Link to comment Share on other sites More sharing options...
[email protected] Posted July 12, 2023 Share Posted July 12, 2023 Hello, I got the same error while installing Prestashop 8.1. can you please tell me what you change in php.ini file? Link to comment Share on other sites More sharing options...
Javier9234 Posted July 12, 2023 Author Share Posted July 12, 2023 3 hours ago, [email protected] said: Hello, I got the same error while installing Prestashop 8.1. can you please tell me what you change in php.ini file? Hi, I've changed the memory_limit to 128MB, memory_limit = 128M, this worked for me, maybe you need to put more MBs Link to comment Share on other sites More sharing options...
Javier9234 Posted July 14, 2023 Author Share Posted July 14, 2023 On 7/12/2023 at 10:45 AM, Javier9234 said: Hi, I've changed the memory_limit to 128MB, memory_limit = 128M, this worked for me, maybe you need to put more MBs On 7/12/2023 at 6:50 AM, [email protected] said: Hello, I got the same error while installing Prestashop 8.1. can you please tell me what you change in php.ini file? I needed to install it again and I had the same error, the memory_limit didn't fix my error, I installed linux mint with xampp and it worked perfectly, I didn't need to touch anything, hope this work if the other answer didn't Link to comment Share on other sites More sharing options...
joe16 Posted July 18, 2023 Share Posted July 18, 2023 Cause: Apparently this issue happens on localhost for Windows users when installing PrestaShop 8.1 or upgrading from PS 8.0.4 to 8.1. If you check php_error.log, and you find this error: [17-Jul-2023 15:47:00 Europe/Paris] PHP Warning: openssl_pkey_export(): Cannot get key from parameter 1 in C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php on line 197 [17-Jul-2023 15:47:00 Europe/Paris] PHP Stack trace: [17-Jul-2023 15:47:00 Europe/Paris] PHP 1. {main}() C:\wamp64\www\prestashop_8.1.0\install\index.php:0 [17-Jul-2023 15:47:00 Europe/Paris] PHP 2. InstallControllerHttp::execute() C:\wamp64\www\prestashop_8.1.0\install\index.php:53 [17-Jul-2023 15:47:00 Europe/Paris] PHP 3. InstallControllerHttpProcess->process() C:\wamp64\www\prestashop_8.1.0\install\classes\controllerHttp.php:277 [17-Jul-2023 15:47:00 Europe/Paris] PHP 4. InstallControllerHttpProcess->processGenerateSettingsFile() C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php:90 [17-Jul-2023 15:47:00 Europe/Paris] PHP 5. PrestaShopBundle\Install\Install->generateSettingsFile($database_host = '127.0.0.1', $database_user = 'root', $database_password = '', $database_name = 'prestashop_8.1.0', $database_prefix = 'ps_', $database_engine = 'InnoDB') C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php:150 [17-Jul-2023 15:47:00 Europe/Paris] PHP 6. openssl_pkey_export($key = FALSE, $output = NULL) C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php:197 [17-Jul-2023 15:47:00 Europe/Paris] PHP Fatal error: Uncaught TypeError: openssl_pkey_get_details(): Argument #1 ($key) must be of type OpenSSLAsymmetricKey, bool given in C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php:198 Stack trace: #0 C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php(198): openssl_pkey_get_details(false) #1 C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php(150): PrestaShopBundle\Install\Install->generateSettingsFile('127.0.0.1', 'root', '', 'prestashop_8.1....', 'ps_', 'InnoDB') #2 C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php(90): InstallControllerHttpProcess->processGenerateSettingsFile() #3 C:\wamp64\www\prestashop_8.1.0\install\classes\controllerHttp.php(277): InstallControllerHttpProcess->process() #4 C:\wamp64\www\prestashop_8.1.0\install\index.php(53): InstallControllerHttp::execute() #5 {main} thrown in C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php on line 198 Solution: Then add a system variable OPENSSL_CONF pointing to openssl.cnf file For Wampserver : C:\wamp64\bin\apache\apache2.4.37\conf\openssl.cnf For Laragon : C:\laragon\bin\apache\httpd-2.4.54-win64-VS16\conf\openssl.cnf Important : must restart your PC in order to make it work! Resources: https://stackoverflow.com/questions/17272809/openssl-pkey-export-and-cannot-get-key-from-parameter-1 https://www.php.net/manual/en/openssl.installation.php 1 Link to comment Share on other sites More sharing options...
juanrojas Posted July 18, 2023 Share Posted July 18, 2023 hace 3 horas, joe16 dijo: Cause: Apparently this issue happens on localhost for Windows users when installing PrestaShop 8.1 or upgrading from PS 8.0.4 to 8.1. If you check php_error.log, and you find this error: [17-Jul-2023 15:47:00 Europe/Paris] PHP Warning: openssl_pkey_export(): Cannot get key from parameter 1 in C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php on line 197 [17-Jul-2023 15:47:00 Europe/Paris] PHP Stack trace: [17-Jul-2023 15:47:00 Europe/Paris] PHP 1. {main}() C:\wamp64\www\prestashop_8.1.0\install\index.php:0 [17-Jul-2023 15:47:00 Europe/Paris] PHP 2. InstallControllerHttp::execute() C:\wamp64\www\prestashop_8.1.0\install\index.php:53 [17-Jul-2023 15:47:00 Europe/Paris] PHP 3. InstallControllerHttpProcess->process() C:\wamp64\www\prestashop_8.1.0\install\classes\controllerHttp.php:277 [17-Jul-2023 15:47:00 Europe/Paris] PHP 4. InstallControllerHttpProcess->processGenerateSettingsFile() C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php:90 [17-Jul-2023 15:47:00 Europe/Paris] PHP 5. PrestaShopBundle\Install\Install->generateSettingsFile($database_host = '127.0.0.1', $database_user = 'root', $database_password = '', $database_name = 'prestashop_8.1.0', $database_prefix = 'ps_', $database_engine = 'InnoDB') C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php:150 [17-Jul-2023 15:47:00 Europe/Paris] PHP 6. openssl_pkey_export($key = FALSE, $output = NULL) C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php:197 [17-Jul-2023 15:47:00 Europe/Paris] PHP Fatal error: Uncaught TypeError: openssl_pkey_get_details(): Argument #1 ($key) must be of type OpenSSLAsymmetricKey, bool given in C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php:198 Stack trace: #0 C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php(198): openssl_pkey_get_details(false) #1 C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php(150): PrestaShopBundle\Install\Install->generateSettingsFile('127.0.0.1', 'root', '', 'prestashop_8.1....', 'ps_', 'InnoDB') #2 C:\wamp64\www\prestashop_8.1.0\install\controllers\http\process.php(90): InstallControllerHttpProcess->processGenerateSettingsFile() #3 C:\wamp64\www\prestashop_8.1.0\install\classes\controllerHttp.php(277): InstallControllerHttpProcess->process() #4 C:\wamp64\www\prestashop_8.1.0\install\index.php(53): InstallControllerHttp::execute() #5 {main} thrown in C:\wamp64\www\prestashop_8.1.0\src\PrestaShopBundle\Install\Install.php on line 198 Solution: Then add a system variable OPENSSL_CONF pointing to openssl.cnf file For Wampserver : C:\wamp64\bin\apache\apache2.4.37\conf\openssl.cnf For Laragon : C:\laragon\bin\apache\httpd-2.4.54-win64-VS16\conf\openssl.cnf Important : must restart your PC in order to make it work! Resources: https://stackoverflow.com/questions/17272809/openssl-pkey-export-and-cannot-get-key-from-parameter-1 https://www.php.net/manual/en/openssl.installation.php personally it has not worked for me in wampserver, I have restarted my computer and I really don't understand why the module has to refer to an SSL in local mode 1 Link to comment Share on other sites More sharing options...
joe16 Posted July 18, 2023 Share Posted July 18, 2023 @juanrojas Have checked that the openssl module was enabled? I assume you did. Me neither, I don't know why it happens this way. You can subscribe to this thread for further info: https://github.com/PrestaShop/PrestaShop/issues/33041 Link to comment Share on other sites More sharing options...
juanrojas Posted July 18, 2023 Share Posted July 18, 2023 what is the openssl module? Link to comment Share on other sites More sharing options...
joe16 Posted July 18, 2023 Share Posted July 18, 2023 @juanrojas it is the package that is used to generate the private key and stuff, for establishing secure communication. You can google on it to get deeper info. In our context, you have to enable it in your Wamp setup. Please find attached the php.ini content, where you can see that the openssl extension is enabled. I don't recall setting this up. I assume it was setup by default when I installed Wampserver or Laragon. If you don't find this extension enabled, your next task would be to enable it. Maybe this link would be helpful as a starting point: https://www.php.net/manual/en/openssl.installation.php. And honestly, I don't know why we need this for a localhost PrestaShop installation. I'm noticing this for the first time with PrestaShop 8.1. 1 Link to comment Share on other sites More sharing options...
mn95 Posted September 12, 2023 Share Posted September 12, 2023 Hi, I have the same problem as shown in the screen shot in the first post. I had tried both with xampp (manipulated permissions without success), then with wampserver - I've changed the memory_limit in php.ini, I've also added the OPENSSL_CONF system variable. Unfortunately, none of the solutions worked, I am unable to complete the installation. Does anyone have any more ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now