Jump to content

Prestashop 1.7.4.2 Local - Mamp


manduka

Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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

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