Jump to content

HTTP 500 - error -


Recommended Posts

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

 

 

2.PNG

1.PNG

Link to comment
Share on other sites

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

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

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:

  • Like 1
Link to comment
Share on other sites

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:

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

 

  • Like 1
Link to comment
Share on other sites

@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.

php-ext_openssl.png

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...