manduka Posted September 21, 2018 Share Posted September 21, 2018 Hello, I downloaded all the public html from the server and put it in MAMP htdocs. I have downloaded the database from server to MAMP MySql. I deleted the HtAccess file. I opened the parameters.php file and I modified the database parameters: define ('_ DB_SERVER_', 'localhost: 8888'); define ('_ DB_NAME_', 'the name of my database'); define ('_ DB_USER_', 'root'); define ('_ DB_PASSWD_', 'root'); I changed the fields of the PS_CONFIGURATION, replacing "ilmiosito" with localhost: 8888 I changed PS_SHOP_URL: domain: localhost: 8888 domail_ssl: localhost: 8888 physical_uri: enter the path where the prestashop site is located. I try to enter the administrative panel (with CHROME) and ... strange thing ... in the page that comes out I read: The site can not provide a secure connection localhost sent an invalid response. ERR_SSL_PROTOCOL_ERROR I read around that Chrome could have this problem, read and made all the changes on Chrome (read around), NOTHING, always the same. Change the browser, this time use FireFox. With Firefox it says more or less the same thing: Secure connection failed. There was an error connecting to localhost: 8888. SSL received a package that exceeds the maximum size allowed. Error code: SSL_ERROR_RX_RECORD_TOO_LONG What's the problem? Thanks Link to comment Share on other sites More sharing options...
musicmaster Posted September 22, 2018 Share Posted September 22, 2018 It looks like you had SSL switched on on the shop you downloaded. And now on your localhost it can't do SSL and it is complaining. These are the PS_SSL_ENABLED and PS_SSL_ENABLED_EVERYWHERE entries in your ps_configuration table. You can also switch them with the Shop Rescue option of Prestools. 1 Link to comment Share on other sites More sharing options...
manduka Posted September 24, 2018 Author Share Posted September 24, 2018 I have disabled PS_SSL_ENABLED and PS_SSL_ENABLED_EVERYWHERE from MySQL, I have given value "0". But now it gives me "404 not found". And if I try to enter the backend, a file download opens. bah! :-/ Link to comment Share on other sites More sharing options...
ksaan Posted September 24, 2018 Share Posted September 24, 2018 You might need to have a look at error logs. Do you know if the prestashop you have downloaded has been modified ? Maybe you can try compare with a fresh install of a PS with same version. Link to comment Share on other sites More sharing options...
musicmaster Posted September 24, 2018 Share Posted September 24, 2018 39 minutes ago, manduka said: And if I try to enter the backend, a file download opens. Start with the backoffice. The front office has its urls changed by .htaccess (pretty urls) and SSL what makes them more vulnerable to things not working. Have a look at the content of the file that is downloaded. Do you recognize a file? Try a test file. It for example localhost/admin123/index.php is downloaded try whether a hello world localhost/admin123/test.php works Link to comment Share on other sites More sharing options...
manduka Posted September 24, 2018 Author Share Posted September 24, 2018 @KSAAN I have tried with other versions and it is the same. @MUSICA MASTER.The file that is downloaded is the "index.php" of backend (/admin123/index.php) 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