Gfinfo web Posted May 9, 2023 Share Posted May 9, 2023 Hello, I am having problems with copying my prestashops 1.7 from host to local host. I copy the archives, i copy the database, make the alteration, open the admin login put my login and password and it crashes with 500 error message. I did the same process a Thousand times in prestashop 1.6 no problems. But I cant figure it out the problens in the 1.7.8.0. It is the same prestashop, just changes the host. I can make a fresh instalation on localhost no problens. If anyone can shed a light for me that would be great. Thank you for your time. - Server informtaion: server information: Linux #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 Server software version: LiteSpeed PHP version: 7.4.33 memory limit: 768M Maximum execution time: 300 Maximum file size for submission: 128M - Localhost(XAMPP) server information: Windows NT build 19044 (Windows 10) AMD64 Server software version: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.33 PHP version: 7.4.33 memory limit: 512M Maximum execution time: 120 Maximum file size for submission: 40M Link to comment Share on other sites More sharing options...
Nickz Posted May 9, 2023 Share Posted May 9, 2023 On 5/9/2023 at 12:07 PM, Gfinfo web said: I copy the archives, i copy the database, make the alteration, Expand There are severall alterations in order to make the site work on localhost. there is the SSL setting, htaccess, and dependencies. What kind of OS do you run your localhost with? Windows or Linux? Link to comment Share on other sites More sharing options...
Gfinfo web Posted May 9, 2023 Author Share Posted May 9, 2023 Hello Nickz, I am using the windows 10 on my computer. Link to comment Share on other sites More sharing options...
Nickz Posted May 9, 2023 Share Posted May 9, 2023 (edited) On 5/9/2023 at 1:16 PM, Gfinfo web said: Hello Nickz, I am using the windows 10 on my computer. Expand Ok and what happened here? The SSL setting, htaccess, and dependencies. TMP and img folders need to writeable if I'm not mistaken. Edited May 9, 2023 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
Gfinfo web Posted May 9, 2023 Author Share Posted May 9, 2023 I will be sincere, i never needed to set up SSL on XAmpp, I dont know how to do it. Is it necessary when i bring it to the localhost? Sincere question. I am not much of a developer. Link to comment Share on other sites More sharing options...
Nickz Posted May 9, 2023 Share Posted May 9, 2023 On 5/9/2023 at 1:42 PM, Gfinfo web said: i never needed to set up SSL on XAmpp Expand In the database is a ssl part which need to be 0 if it was 1. Table ps_configuration, values PS_SSL_ENABLED and PS_SSL_ENABLED_EVERYWHERE Link to comment Share on other sites More sharing options...
Gfinfo web Posted May 9, 2023 Author Share Posted May 9, 2023 Thank you I just follow the instructions. They are both in 0. But once I try to login in backoffice it still crashes in 500 error Link to comment Share on other sites More sharing options...
Nickz Posted May 9, 2023 Share Posted May 9, 2023 Hm Have you tried a lower PHP Version? Link to comment Share on other sites More sharing options...
Gfinfo web Posted May 10, 2023 Author Share Posted May 10, 2023 Follow up, I changed the php to 7.2 and no diference. Then I enabled debug mode in defines.inc to see the error message. Then it workerd! The site works in debug mode, but if I disable debug mode it crases down to 500 again. Again only in localhost Link to comment Share on other sites More sharing options...
Gfinfo web Posted June 9, 2023 Author Share Posted June 9, 2023 Solved by deleting contents of \var\cache\prod and \var\cache\dev 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