Peter.31 Posted November 25, 2020 Share Posted November 25, 2020 Can anyone advise me how to proceed correctly when connecting the eshop (PrestaShop v1.7.6.1) to the database in the localhost? I downloaded the whole e-shop and the database from the web to the PC. I copied everything to localhost, including the database I imported in phpmyadmin. In the parameters.php file I set the necessary parameters for connecting to the database. In the database, I changed these PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL values in the ps_configuration table (I changed it from local "my web address" to localhost). I also changed the domain, domain_ssl, physical_uri values in the ps_shop_url table. (Check image). Despite all these changes, the e-shop in localhost does not work for me. After entering the page into the web browser localhost/web writes This site is unavailable. Link to comment Share on other sites More sharing options...
JBW Posted November 26, 2020 Share Posted November 26, 2020 You need to regenrate .htacess and delete /var/cache and browser caches Link to comment Share on other sites More sharing options...
ClassyDevs Posted November 26, 2020 Share Posted November 26, 2020 Please log in your shop admin then , got to your site seo option and disable seo friendly url, and save . After that enable the seo friendly url and clear cache. It will regenerated the .htaccess file and also cache. Then your site work fine. Thank you Link to comment Share on other sites More sharing options...
Peter.31 Posted November 26, 2020 Author Share Posted November 26, 2020 Do I have to go to the admin on the website or to the localhost admin? I can't log in to admin localhost. Link to comment Share on other sites More sharing options...
JBW Posted November 26, 2020 Share Posted November 26, 2020 43 minutes ago, Peter.31 said: I can't log in to admin localhost. Why not? Same error as above? Can you access any html/php file that you add to /web/ ? Have you deleted cache as mentioned above? Link to comment Share on other sites More sharing options...
Peter.31 Posted November 26, 2020 Author Share Posted November 26, 2020 The prestashop admin in localhost doesn't work for me, and the localhost web page doesn't work for me either. I can't log in to admin prestashop localhost. Link to comment Share on other sites More sharing options...
JBW Posted November 26, 2020 Share Posted November 26, 2020 You didn't answer any of the 4 questions? 25 minutes ago, JBW said: Why not? Same error as above? Can you access any html/php file that you add to /web/ ? Have you deleted cache as mentioned above? Link to comment Share on other sites More sharing options...
Peter.31 Posted November 26, 2020 Author Share Posted November 26, 2020 I have access to html. Should I delete the cache on a web page or in a localhost? Link to comment Share on other sites More sharing options...
Peter.31 Posted November 26, 2020 Author Share Posted November 26, 2020 How do I generate a new .htaccess file? Link to comment Share on other sites More sharing options...
ClassyDevs Posted November 26, 2020 Share Posted November 26, 2020 What is the admin url of your site? Do you know that prestashop regenerate the admin folder name after installation? Go to the installation folder and then check the admin folder name. Then hit with that url. Link to comment Share on other sites More sharing options...
Peter.31 Posted November 26, 2020 Author Share Posted November 26, 2020 My page on localhost is: localhost/web and the admin page is localhost/web/admin192xt8y3nm Link to comment Share on other sites More sharing options...
Peter.31 Posted November 28, 2020 Author Share Posted November 28, 2020 Now everything works fine. I had my eshop installed in the localhost via "Wampserver", so it could not be started. I installed "XAMPP" and it can now be run in localhost. There was a error, probably a wrong setting of Wampserver. 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