Jump to content

Installing / configuring Prestashop on local machine for development


Recommended Posts

Hi

 

I am very new to prestashop development environment.

 

I recently downloaded all my files from the server where prestashop for my ecommerce store were loaded to local Windows machine at - \xamp\htdocs. Also created a DB and appropriate users and access rights. When I type a path in browser as 'localhost/prestashop', the browser redirects it to the web address where the website is hosted. I would like it points to local machine only during development time.

 

What am I doing wrong or missed doing?

 

Also, will it work fine, if I upload all the files after development is done (e.g. uploading images, setting up modules, etc.) I upload the complete directory structure from \xamp\htdocs\prestashop to the web server or the uploading images etc needs to be done on web server only?

 

When I type localhost/prestashop/admin5713, I get below error -

 

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500 localhost
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15

 

All help is appreciated.

 

Regards,

Jayant

Edited by Jayant Bulbule (see edit history)
Link to comment
Share on other sites

You should be able to open localhost/prestashop/admin5713 log-in with existing Employee, then under Preferences -> SEO & URL's, you need to set Shop domain to localhost, SSL domain to localhost, and base URI to /prestashop/ That will make your shop's FO accessible.

But the problem is, that you can't access BO in the first place. But it's nothing to do with prestashop - there's something wrong with your server configuration. You need to check error logs and see why your server throws an 500 error.

Also, did you created fresh PS database, or did you imported all the entries from that live website?

Link to comment
Share on other sites

You should be able to open localhost/prestashop/admin5713 log-in with existing Employee, then under Preferences -> SEO & URL's, you need to set Shop domain to localhost, SSL domain to localhost, and base URI to /prestashop/ That will make your shop's FO accessible.

But the problem is, that you can't access BO in the first place. But it's nothing to do with prestashop - there's something wrong with your server configuration. You need to check error logs and see why your server throws an 500 error.

Also, did you created fresh PS database, or did you imported all the entries from that live website?

I created a fresh PS database on local machine and created the users as they are on web server.

Link to comment
Share on other sites

I created a fresh PS database on local machine and created the users as they are on web server.

This way, you won't be able to log-in to BO, if you are using all the files from live website, because Prestashop uses unique Cookie key and Cookie IV for encoding passwords and they differs on each installation, and those values are defined in config/settings.inc.php

The only workaround would be to copy ps_employee table from that live website.

Edited by DrunkBug (see edit history)
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...