ERR_TOO_MANY_REDIRECTS on Prestashop 1.7.0.4 Installation with LAMP
Trouble shooting for ERR_TOO_MANY_REDIRECTS error when installing Prestashop with LAMP environment.
Problem:
- Encounters ERR_TOO_MANY_REDIRECTS error when installing Prestashop 1.7.0.4 on LAMP / LNMP
- Searched relative solutions, but nothing works ( last search : 2017/02/05 )
- closest one with no response yet : https://www.prestashop.com/forums/topic/574791-too-many-redirects-using-xampp-prestashop-1702/
Workaround Solution:
- Installing Prestashop 1.7 on WAMP in another Windows machine or virtual machine
- Migrate Prestashop 1.7 on WAMP to LAMP in your target machine
- Check out migration procedure in another post : Migrating fresh Prestashop from WAMP to LAMP
上午11:30 | 標籤: LAMP, PHP, Prestashop | 2 Comments
Migrating fresh Prestashop from WAMP to LAMP
Original package and environment :
- Prestashop 1.7.0.4
- WAMP server 64 bit 3.0.6
- Windows 10
Target package and environment :
- Prestashop 1.7.0.4 (the same as original package)
- LAMP - Ubuntu 16.04, Apache2.4, MySQL 5.7.17, PHP 7
Migration procedure :
- Exporting Prestashop database from WAMP as .sql or whatever format you prefer
- Importing Prestashop database into LAMP
- Make sure your Prestashop database on LAMP allows the same access permisson as that of Prestashop on WAMP
- Packing Prestashop installation folder from WAMP as .zip or whatever format you prefer
- Unzip and deploy Prestashop in LAMP (ex. /var/www/html/prestashop )
- Turn on the development mode of Prestashop
- Edit prestashop/config/defines.inc.php, alter define('_PS_MODE_DEV_', false) to true
- Start LAMP and browsing your migrated Prestashop website
- It is possible that some PHP module needs to be installed and turned on. Just following the error messages and do what you have to do.
- If you encounter an issue that front-end shows empty pages :
- remove .htaccess in your /var/www/html/prestashop
- enter your Prestashop backend, find friendly URL option in configure => shop parameters => traffic => SEO, slide down, turn off friendly URL option, and save to regenerate .htaccess
- If you encounter an issue that your connection is always redirected to localhost :
- enter your Prestashop MySQL DB, alter PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL from localhost to specified IP or domain
- enter your Prestashop backend, find configure => shop parameters => traffic => SEO, slide down, alter domain and domain_ssl from localhost to specified IP or domain
- Done
上午10:39 | 標籤: LAMP, PHP, Prestashop, WAMP | 0 Comments
訂閱:
文章 (Atom)